<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>60855</bug_id>
          
          <creation_ts>2011-05-15 08:55:42 -0700</creation_ts>
          <short_desc>hyphens:auto uses only rules for system language</short_desc>
          <delta_ts>2011-08-04 13:50:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Text</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathias Nater">mnater</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>falken</cc>
    
    <cc>jshin</cc>
    
    <cc>mitz</cc>
    
    <cc>phiw2</cc>
    
    <cc>simon</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>404175</commentid>
    <comment_count>0</comment_count>
      <attachid>93582</attachid>
    <who name="Mathias Nater">mnater</who>
    <bug_when>2011-05-15 08:55:42 -0700</bug_when>
    <thetext>Created attachment 93582
Simple test case; resize window to see different hyphenation points

If I&apos;m using the CSS3-propery
    hyphens:auto;
I get rather confusing results:
On Safari on iOS all texts are hyphenated using the rules for the system language; regardless of the language of the hyphenated text.
On Webkit (Nightly 6533.21.1, r86499) hyphenation is only performed when the system language of OS X is set to &apos;English&apos;.

I&apos;d expect
a) Safari on iOS not to hyphenate text in an other language (i.e. when there&apos;s a lang-attribute with an other language).
b) Either Webkit on Mac OS X having other hyphenation patterns than just English or support for &apos;hyphenate-resource&apos; to be able to load patterns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404176</commentid>
    <comment_count>1</comment_count>
      <attachid>93582</attachid>
    <who name="Mathias Nater">mnater</who>
    <bug_when>2011-05-15 08:57:55 -0700</bug_when>
    <thetext>Comment on attachment 93582
Simple test case; resize window to see different hyphenation points

&gt;&lt;!DOCTYPE HTML&gt;
&gt;&lt;html lang=&quot;en&quot;&gt;
&gt;    &lt;head&gt;
&gt;        &lt;title&gt;Test1&lt;/title&gt;
&gt;        &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
&gt;        &lt;style type=&quot;text/css&quot;&gt;
&gt;            body {
&gt;                width:50%;
&gt;            	margin-left: 25%;
&gt;            	margin-right: 25%;
&gt;            }
&gt;            .hyphenate {
&gt;            	-webkit-hyphens:auto;
&gt;            }
&gt;        &lt;/style&gt;
&gt;        &lt;/script&gt;
&gt;    &lt;/head&gt;
&gt;    &lt;body&gt;
&gt;    	&lt;h2&gt;Paragraph with lang=&quot;de&quot; is hyphenated with english patterns&lt;/h2&gt;
&gt;		&lt;p class=&quot;hyphenate&quot; lang=&quot;en&quot;&gt;
&gt;			A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
&gt;		&lt;/p&gt;
&gt;		&lt;p class=&quot;hyphenate&quot; lang=&quot;de&quot;&gt;
&gt;			Eine wunderbare Heiterkeit hat meine ganze Seele eingenommen, gleich den sÃ¼Ãen FrÃ¼hlingsmorgen, die ich mit ganzem Herzen genieÃe.
&gt;		&lt;/p&gt;
&gt;    &lt;/body&gt;
&gt;&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404177</commentid>
    <comment_count>2</comment_count>
      <attachid>93582</attachid>
    <who name="Mathias Nater">mnater</who>
    <bug_when>2011-05-15 08:58:15 -0700</bug_when>
    <thetext>Comment on attachment 93582
Simple test case; resize window to see different hyphenation points

&gt;&lt;!DOCTYPE HTML&gt;
&gt;&lt;html lang=&quot;en&quot;&gt;
&gt;    &lt;head&gt;
&gt;        &lt;title&gt;Test1&lt;/title&gt;
&gt;        &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
&gt;        &lt;style type=&quot;text/css&quot;&gt;
&gt;            body {
&gt;                width:50%;
&gt;            	margin-left: 25%;
&gt;            	margin-right: 25%;
&gt;            }
&gt;            .hyphenate {
&gt;            	-webkit-hyphens:auto;
&gt;            }
&gt;        &lt;/style&gt;
&gt;        &lt;/script&gt;
&gt;    &lt;/head&gt;
&gt;    &lt;body&gt;
&gt;    	&lt;h2&gt;Paragraph with lang=&quot;de&quot; is hyphenated with english patterns&lt;/h2&gt;
&gt;		&lt;p class=&quot;hyphenate&quot; lang=&quot;en&quot;&gt;
&gt;			A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
&gt;		&lt;/p&gt;
&gt;		&lt;p class=&quot;hyphenate&quot; lang=&quot;de&quot;&gt;
&gt;			Eine wunderbare Heiterkeit hat meine ganze Seele eingenommen, gleich den sÃ¼Ãen FrÃ¼hlingsmorgen, die ich mit ganzem Herzen genieÃe.
&gt;		&lt;/p&gt;
&gt;    &lt;/body&gt;
&gt;&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404264</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-05-15 21:17:05 -0700</bug_when>
    <thetext>You are right that TOT WebKit does not consider the &apos;lang&apos; attribute when applying hyphenation, and does not support external hyphenation resources. In WebKit nightly builds, you can specify the &apos;-webkit-locale&apos; CSS property to control hyphenation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>439964</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-07-20 13:22:29 -0700</bug_when>
    <thetext>In OS X Lion, auto-hyphenation is supported for English (US and GB), German, French, Italian, Dutch and Russian.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446750</commentid>
    <comment_count>5</comment_count>
    <who name="Mathias Nater">mnater</who>
    <bug_when>2011-08-04 13:50:54 -0700</bug_when>
    <thetext>Nice, thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>93582</attachid>
            <date>2011-05-15 08:55:42 -0700</date>
            <delta_ts>2011-05-15 08:58:15 -0700</delta_ts>
            <desc>Simple test case; resize window to see different hyphenation points</desc>
            <filename>test1.html</filename>
            <type>text/html</type>
            <size>909</size>
            <attacher name="Mathias Nater">mnater</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxodG1sIGxhbmc9ImVuIj4KICAgIDxoZWFkPgogICAgICAgIDx0aXRs
ZT5IeXBoZW5hdG9yLmpzICZuZGFzaDsgVGVzdCA4OTwvdGl0bGU+CiAgICAgICAgPG1ldGEgaHR0
cC1lcXVpdj0iY29udGVudC10eXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTgi
PgogICAgICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgICAgICAgICAgIGJvZHkgewogICAg
ICAgICAgICAgICAgd2lkdGg6NTAlOwogICAgICAgICAgICAJbWFyZ2luLWxlZnQ6IDI1JTsKICAg
ICAgICAgICAgCW1hcmdpbi1yaWdodDogMjUlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC5o
eXBoZW5hdGUgewogICAgICAgICAgICAJLXdlYmtpdC1oeXBoZW5zOmF1dG87CiAgICAgICAgICAg
IH0KICAgICAgICA8L3N0eWxlPgogICAgICAgIDwvc2NyaXB0PgogICAgPC9oZWFkPgogICAgPGJv
ZHk+CiAgICAJPGgyPlBhcmFncmFwaCB3aXRoIGxhbmc9ImRlIiBpcyBoeXBo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