csswg/css3-text Overview.html,1.37,1.38 Overview.src.html,1.131,1.132

Update of /sources/public/csswg/css3-text
In directory hutz:/tmp/cvs-serv9636

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Add 'hyphens' property from GCPM

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-text/Overview.html,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- Overview.html	26 Jan 2011 06:11:27 -0000	1.37
+++ Overview.html	28 Jan 2011 00:47:18 -0000	1.38
@@ -83,14 +83,14 @@
 
    <h1>CSS Text Level 3</h1>
 
-   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 January
+   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 January
     2011</h2>
 
    <dl>
     <dt>This version:
 
     <dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
-     2011/01/26 06:00:06 $ (CVS $Revision$)</a> <!--<dd><a
+     2011/01/26 06:11:27 $ (CVS $Revision$)</a> <!--<dd><a
       href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->
      
 
@@ -274,21 +274,25 @@
 
    <li><a href="#hyphenation"><span class=secno>6. </span>Hyphenation</a>
     <ul class=toc>
-     <li><a href="#hyphenate-character"><span class=secno>6.1. </span>
+     <li><a href="#hyphens"><span class=secno>6.1. </span>Hyphenation
+      Control: the &lsquo;<code class=property>hyphens</code>&rsquo;
+      property</a>
+
+     <li><a href="#hyphenate-character"><span class=secno>6.2. </span>
       Hyphens: the &lsquo;<code
       class=property>hyphenate-character</code>&rsquo; property</a>
 
-     <li><a href="#hyphenate-char-limits"><span class=secno>6.2. </span>
+     <li><a href="#hyphenate-char-limits"><span class=secno>6.3. </span>
       Hyphenation Character Limits: the &lsquo;<code
       class=property>hyphenate-limit-before</code>&rsquo; and &lsquo;<code
       class=property>hyphenate-limit-after</code>&rsquo; properties</a>
 
-     <li><a href="#hyphenate-line-limits"><span class=secno>6.3. </span>
+     <li><a href="#hyphenate-line-limits"><span class=secno>6.4. </span>
       Hyphenation Line Limits: the &lsquo;<code
       class=property>hyphenate-limit-lines</code>&rsquo; and &lsquo;<code
       class=property>hyphenate-limit-last</code>&rsquo; properties</a>
 
-     <li><a href="#hyphenation-resource"><span class=secno>6.4. </span>
+     <li><a href="#hyphenation-resource"><span class=secno>6.5. </span>
       Hyphenation Resources: the &lsquo;<code
       class=css>@hyphenate-resource</code>&rsquo; rule</a>
     </ul>
@@ -1277,8 +1281,6 @@
    &lsquo;<a href="#word-break0"><code
    class=property>word-break</code></a>&rsquo; property</h3>
 
-  <p>This property specifies line break opportunities within words.
-
   <table class=propdef>
    <tbody>
     <tr>
@@ -1322,6 +1324,9 @@
      <td>specified value
   </table>
 
+  <p>This property specifies line break opportunities within words. Values
+   have the following meanings:
+
   <dl>
    <dt><dfn id=normal1 title="word-break:normal"><code>normal</code></dfn>
 
@@ -1338,10 +1343,10 @@
    <dt><dfn id=keep-all
     title="line-break:keep-all"><code>keep-all</code></dfn>
 
-   <dd>Sequences of CJK characters can no longer break on implied break
-    points. This option should only be used where the presence of word
-    separator characters still creates line-breaking opportunities, as in
-    Korean.
+   <dd>Sequences of <a href="#block-scripts">block characters can no longer
+    break on implied break points. This option is mostly used where the
+    presence of word separator characters still creates line-breaking
+    opportunities, as in Korean.</a>
 
    <dt><dfn id=hyphenate
     title="word-break:hyphenate"><code>hyphenate</code></dfn>
@@ -1351,13 +1356,11 @@
     class=css>normal</code>&rsquo;. Hyphenation requires that the user agent
     have an hyphenation resource appropriate to the language of the text
     being broken.
-    <p class=issue>This value is proposed to replace &lsquo;<code
-     class=property>hyphenate</code>&rsquo; property currently defined in <a
-     href="http://www.w3.org/TR/2007/WD-css3-gcpm-20070205/#hyphenation">Generated
-     Content for Paged Media</a> draft. Note there are other values in the
-     editor's draft, which could be added as &lsquo;<code
+    <p class=issue>This value is proposed to replace the &lsquo;<a
+     href="#hyphens0"><code class=property>hyphens</code></a>&rsquo;
+     property. Other values could be added as &lsquo;<code
      class=css>word-break: hyphenate-all</code>&rsquo; and &lsquo;<code
-     class=css>word-break: none</code>&rsquo;... are these needed?
+     class=css>word-break: none</code>&rsquo;
   </dl>
 
   <p>When shaping scripts such as Arabic are allowed to break within words
@@ -1368,14 +1371,115 @@
 
   <p>Hyphenation allows the controlled splitting of words to improve the
    layout of paragraphs. CSS3 Text does not define the exact rules for
-   hyphenation, but defines five properties and an at-rule that influence
+   hyphenation, but defines six properties and an at-rule that influence
    hyphenation.
 
-  <p>Hyphenation can be turned on or off with the &lsquo;<a
-   href="#word-break0"><code class=property>word-break</code></a>&rsquo;
-   property.
+  <p>Whether hyphenation is applied can controlled with the &lsquo;<a
+   href="#hyphens0"><code class=property>hyphens</code></a>&rsquo; property.
 
-  <h3 id=hyphenate-character><span class=secno>6.1. </span> Hyphens: the
+  <h3 id=hyphens><span class=secno>6.1. </span>Hyphenation Control: the
+   &lsquo;<a href="#hyphens0"><code class=property>hyphens</code></a>&rsquo;
+   property</h3>
+
+  <table class=propdef>
+   <tbody>
+    <tr>
+     <td>Name:
+
+     <td><dfn id=hyphens0>hyphens</dfn>
+
+    <tr>
+     <th>Value:
+
+     <td>none | manual | auto | all
+
+    <tr>
+     <th>Initial:
+
+     <td>manual
+
+    <tr>
+     <th>Applies to:
+
+     <td>all elements
+
+    <tr>
+     <th>Inherited:
+
+     <td>yes
+
+    <tr>
+     <th>Percentages:
+
+     <td>N/A
+
+    <tr>
+     <th>Media:
+
+     <td>visual
+
+    <tr>
+     <th>Computed&nbsp;value:
+
+     <td>specified value
+  </table>
+
+  <p>This property controls whether hyphenation is allowed to create more
+   break opportunities within a line of text. Values have the following
+   meanings:
+
+  <dl>
+   <dt>none
+
+   <dd>Words are not broken at line breaks, even if characters inside the
+    word suggest line break points.
+
+   <dt>manual
+
+   <dd>Words are only broken at line breaks where there are characters inside
+    the word that suggest line break opportunities. Characters can be
+    explicit or conditional.
+    <div class=example>
+     <p>In Unicode, U+00AD is a conditional "soft hyphen" and U+2010 is an
+      explicit hyphen. Unicode Standard Annex #14 describes the <a
+      href="http://unicode.org/reports/tr14/#SoftHyphen">role of soft hyphens
+      in</a> Unicode line breaking. <a href="#UAX14"
+      rel=biblioentry>[UAX14]<!--{{UAX14}}--></a>
+    </div>
+
+    <div class=example>
+     <p>In HTML, &amp;shy; represents the soft hyphen character which
+      suggests a line break opportunity.
+
+     <pre>ex&amp;shy;ample</pre>
+    </div>
+
+   <dt>auto
+
+   <dd>Words can be broken at appropriate hyphenation points either as
+    determined by hyphenation characters inside the word or as determined
+    automatically by a language-appropriate hyphenation resource (such as
+    those provided via &lsquo;<code
+    class=css>@hyphenation-resource</code>&rsquo;). Explicit hyphenation
+    characters inside a word take priority over automatic resources when
+    determining hyphenation points within the word.
+
+   <dt>all
+
+   <dd>All possible hyphenation points, as would be determined for
+    &lsquo;<code class=css>auto</code>&rsquo;, are marked. The visual
+    appearance of the mark is UA-dependent. This value is intended for
+    debugging. <span class=issue>Do we really need this value?</span>
+  </dl>
+
+  <p>Correct automatic hyphenation requires a hyphenation resource
+   appropriate to the language of the text being broken. The UA is therefore
+   only required to automatically hyphenate text for which the author has
+   declared a language (e.g. via HTML <code>lang</code> or XML
+   <code>xml:lang</code>) and for which it has an appropriate hyphenation
+   resource.
+
+  <h3 id=hyphenate-character><span class=secno>6.2. </span> Hyphens: the
    &lsquo;<a href="#hyphenate-character0"><code
    class=property>hyphenate-character</code></a>&rsquo; property</h3>
 
@@ -1439,7 +1543,7 @@
    <pre>article { hyphenate-character: "\2010" }</pre>
   </div>
 
-  <h3 id=hyphenate-char-limits><span class=secno>6.2. </span> Hyphenation
+  <h3 id=hyphenate-char-limits><span class=secno>6.3. </span> Hyphenation
    Character Limits: the &lsquo;<a href="#hyphenate-limit-before"><code
    class=property>hyphenate-limit-before</code></a>&rsquo; and &lsquo;<a
    href="#hyphenate-limit-after"><code
@@ -1547,7 +1651,7 @@
   <p class=note>Unless the UA is able to calculate a better value, it is
    suggested that &lsquo;<code class=css>auto</code>&rsquo; means 2.
 
-  <h3 id=hyphenate-line-limits><span class=secno>6.3. </span> Hyphenation
+  <h3 id=hyphenate-line-limits><span class=secno>6.4. </span> Hyphenation
    Line Limits: the &lsquo;<a href="#hyphenate-limit-lines"><code
    class=property>hyphenate-limit-lines</code></a>&rsquo; and &lsquo;<a
    href="#hyphenate-limit-last"><code
@@ -1705,7 +1809,7 @@
     </pre>
   </div>
 
-  <h3 id=hyphenation-resource><span class=secno>6.4. </span> Hyphenation
+  <h3 id=hyphenation-resource><span class=secno>6.5. </span> Hyphenation
    Resources: the &lsquo;<code class=css>@hyphenate-resource</code>&rsquo;
    rule</h3>
 
@@ -1762,7 +1866,7 @@
     rule would never be used.
   </div>
 
-  <p class=issue>Use a format specifier, like @font-face?
+  <p class=issue>Use a format specifier, like @font-face? What is the format?
 
   <p>UAs are not required to support this at-rule.
 
@@ -1977,11 +2081,12 @@
   <dl>
    <dt><dfn id=normal3 title="word-wrap:normal"><code>normal</code></dfn>
 
-   <dd>The restrictions introduced by &lsquo;<code class=css>word-break:
+   <dd>Lines may break only at allowed break points. However, the
+    restrictions introduced by &lsquo;<code class=css>word-break:
     keep-all</code>&rsquo; may be relaxed to match &lsquo;<code
-    class=css>word-break: normal</code>&rsquo; if there are no
-    otherwise-acceptable break points in the line. Otherwise lines may break
-    only at allowed break points.
+    class=css>word-break: normal</code>&rsquo; and the various hyphenation
+    limit properties may be ignored if there are no otherwise-acceptable
+    break points in the line.
 
    <dt><dfn id=break-word
     title="word-wrap:break-word"><code>break-word</code></dfn>
@@ -1997,6 +2102,11 @@
    for emergency breaking? (This would give better results than &lsquo;<code
    class=css>break-word</code>&rsquo;.)
 
+  <p class=issue>Should there be a &lsquo;<code class=css>none</code>&rsquo;
+   value, that prevents the relaxation of &lsquo;<a href="#word-break0"><code
+   class=property>word-break</code></a>&rsquo; and hyphenation limit
+   restrictions?
+
   <h2 id=justification><span class=secno>8. </span> Alignment and
    Justification</h2>
 
@@ -3821,7 +3931,8 @@
   <p class=note>Note that if there is not sufficient padding on the block
    container, hanging punctuation may trigger overflow.
 
-  <p class=issue>Check for Western use-cases. Add <code>hyphens</code> value?
+  <p class=issue>Check for Western use-cases. Add <a
+   href="#hyphens0"><code>hyphens</code></a> value?
 
   <h2 id=decoration><span class=secno>11. </span> <a
    name=text-decoration>Text Decoration</a></h2>
@@ -5208,6 +5319,16 @@
     </dd>
    <!---->
 
+   <dt id=UAX14>[UAX14]
+
+   <dd>Asmus Freytag. <a
+    href="http://www.unicode.org/unicode/reports/tr14/tr14-17.html"><cite>Line
+    Breaking Properties.</cite></a> 29 March 2005. Unicode Standard Annex
+    #14. URL: <a
+    href="http://www.unicode.org/unicode/reports/tr14/tr14-17.html">http://www.unicode.org/unicode/reports/tr14/tr14-17.html</a>
+    </dd>
+   <!---->
+
    <dt id=ZHMARK>[ZHMARK]
 
    <dd><cite>&#26631;&#28857;&#31526;&#21495;&#29992;&#27861; (Punctuation
@@ -5336,6 +5457,21 @@
      <td>visual
 
     <tr valign=baseline>
+     <td><a class=property href="#hyphens0">hyphens</a>
+
+     <td>none | manual | auto | all
+
+     <td>manual
+
+     <td>all elements
+
+     <td>yes
+
+     <td>N/A
+
+     <td>visual
+
+    <tr valign=baseline>
      <td><a class=property href="#letter-spacing0">letter-spacing</a>
 
      <td>&lt;spacing-limit&gt;{1,3}
@@ -5807,7 +5943,7 @@
     title="''alphabetic''"><strong>11.1.6.</strong></a>
 
    <li>&lsquo;<code class=css>always</code>&rsquo;, <a href="#always"
-    title="''always''"><strong>6.3.</strong></a>
+    title="''always''"><strong>6.4.</strong></a>
 
    <li>authoring tool, <a href="#authoring-tool" title="authoring
     tool"><strong>2.</strong></a>
@@ -5826,7 +5962,7 @@
     title=collapsible><strong>4.2.</strong></a>
 
    <li>&lsquo;<code class=css>column</code>&rsquo;, <a href="#column"
-    title="''column''"><strong>6.3.</strong></a>
+    title="''column''"><strong>6.4.</strong></a>
 
    <li><a href="#each-line"><code>each-line</code></a>, <a href="#each-line"
     title=each-line><strong>10.1.</strong></a>
@@ -5874,19 +6010,21 @@
     title="hanging-punctuation:last"><strong>10.2.</strong></a>
 
    <li>hyphenate-character, <a href="#hyphenate-character0"
-    title=hyphenate-character><strong>6.1.</strong></a>
+    title=hyphenate-character><strong>6.2.</strong></a>
 
    <li>hyphenate-limit-after, <a href="#hyphenate-limit-after"
-    title=hyphenate-limit-after><strong>6.2.</strong></a>
+    title=hyphenate-limit-after><strong>6.3.</strong></a>
 
    <li>hyphenate-limit-before, <a href="#hyphenate-limit-before"
-    title=hyphenate-limit-before><strong>6.2.</strong></a>
+    title=hyphenate-limit-before><strong>6.3.</strong></a>
 
    <li>hyphenate-limit-last, <a href="#hyphenate-limit-last"
-    title=hyphenate-limit-last><strong>6.3.</strong></a>
+    title=hyphenate-limit-last><strong>6.4.</strong></a>
 
    <li>hyphenate-limit-lines, <a href="#hyphenate-limit-lines"
-    title=hyphenate-limit-lines><strong>6.3.</strong></a>
+    title=hyphenate-limit-lines><strong>6.4.</strong></a>
+
+   <li>hyphens, <a href="#hyphens0" title=hyphens><strong>6.1.</strong></a>
 
    <li>letter-spacing, <a href="#letter-spacing0"
     title=letter-spacing><strong>9.2.</strong></a>
@@ -5910,10 +6048,10 @@
     title="line-break:strict"><strong>5.1.</strong></a>
 
    <li>&lsquo;<code class=css>none</code>&rsquo;, <a href="#none0"
-    title="''none''"><strong>6.3.</strong></a>
+    title="''none''"><strong>6.4.</strong></a>
 
    <li>&lsquo;<code class=css>page</code>&rsquo;, <a href="#page"
-    title="''page''"><strong>6.3.</strong></a>
+    title="''page''"><strong>6.4.</strong></a>
 
    <li>&lt;percentage&gt;, <a href="#ltlengthgt-or-ltpercentagegt"
     title="&lt;percentage&gt;"><strong>9.</strong></a>
@@ -5934,7 +6072,7 @@
     title="&lt;spacing-limit&gt;:normal"><strong>9.</strong></a>
 
    <li>&lsquo;<code class=css>spread</code>&rsquo;, <a href="#spread"
-    title="''spread''"><strong>6.3.</strong></a>
+    title="''spread''"><strong>6.4.</strong></a>
 
    <li>&lsquo;<code class=css>start</code>&rsquo;, <a href="#start0"
     title="''start''"><strong>8.2.</strong></a>

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-text/Overview.src.html,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- Overview.src.html	26 Jan 2011 06:11:27 -0000	1.131
+++ Overview.src.html	28 Jan 2011 00:47:26 -0000	1.132
@@ -858,8 +858,6 @@
   <h3 id="word-break">
     Word Breaking Rules: the 'word-break' property</h3>
 
-    <p>This property specifies line break opportunities within words.</p>
-
     <table class="propdef">
       <tbody>
         <tr>
@@ -897,6 +895,9 @@
       </tbody>
     </table>
 
+    <p>This property specifies line break opportunities within words.
+      Values have the following meanings:</p>
+
     <dl>
       <dt><dfn title="word-break:normal"><code>normal</code></dfn></dt>
       <dd>Break words according to their usual rules.</dd>
@@ -906,19 +907,18 @@
         the text is predominantly using CJK characters with few non-CJK excerpts
         and it is desired that the text be better distributed on each line.</dd>
       <dt><dfn title="line-break:keep-all"><code>keep-all</code></dfn></dt>
-      <dd>Sequences of CJK characters can no longer break on implied break points.
-        This option should only be used where the presence of word separator
+      <dd>Sequences of <a href="#block-scripts">block</i> characters
+        can no longer break on implied break points.
+        This option is mostly used where the presence of word separator
         characters still creates line-breaking opportunities, as in Korean.</dd>
       <dt><dfn title="word-break:hyphenate"><code>hyphenate</code></dfn></dt>
       <dd>Words may be broken at an appropriate hyphenation point in addition
         to opportunities available under ''normal''. Hyphenation requires
         that the user agent have an hyphenation resource appropriate to the
         language of the text being broken.
-        <p class="issue">This value is proposed to replace 'hyphenate' property currently defined in
-          <a href="http://www.w3.org/TR/2007/WD-css3-gcpm-20070205/#hyphenation">Generated
-          Content for Paged Media</a> draft. Note there are other values in
-          the editor's draft, which could be added as ''word-break: hyphenate-all''
-          and ''word-break: none''... are these needed?</p></dd>
+        <p class="issue">This value is proposed to replace the 'hyphens'
+          property. Other values could be added as ''word-break: hyphenate-all''
+          and ''word-break: none''</p></dd>
     </dl>
 
     <p>When shaping scripts such as Arabic are allowed to break within words
@@ -929,10 +929,85 @@
 
     <p>Hyphenation allows the controlled splitting of words to improve the
       layout of paragraphs. CSS3 Text does not define the exact rules for
-      hyphenation, but defines five properties and an at-rule that influence
+      hyphenation, but defines six properties and an at-rule that influence
       hyphenation.
 
-    <p>Hyphenation can be turned on or off with the 'word-break' property.
+    <p>Whether hyphenation is applied can controlled with the 'hyphens' property.
+
+  <h3 id="hyphens">Hyphenation Control: the 'hyphens' property</h3>
+
+    <table class=propdef>
+      <tr>
+        <td>Name:
+        <td><dfn>hyphens</dfn>
+      <tr>
+        <th>Value:
+        <td>none | manual | auto | all
+      <tr>
+        <th>Initial:
+        <td>manual
+      <tr>
+        <th>Applies to:
+        <td>all elements
+      <tr>
+        <th>Inherited:
+        <td>yes
+      <tr>
+        <th>Percentages:
+        <td>N/A
+      <tr>
+        <th>Media:
+        <td>visual
+      <tr>
+        <th>Computed&nbsp;value:
+        <td>specified value
+    </table>
+
+    <p>This property controls whether hyphenation is allowed to create more
+      break opportunities within a line of text. Values have the following
+      meanings:
+
+    <dl>
+      <dt>none
+        <dd>Words are not broken at line breaks, even if characters inside
+          the word suggest line break points.
+      <dt>manual
+        <dd>Words are only broken at line breaks where there are characters
+          inside the word that suggest line break opportunities. Characters
+          can be explicit or conditional.
+        <div class="example">
+        <p>In Unicode, U+00AD is a conditional "soft hyphen" and U+2010 is an
+          explicit hyphen. Unicode Standard Annex #14 describes the
+          <a href="http://unicode.org/reports/tr14/#SoftHyphen">role of soft hyphens in</a>
+          Unicode line breaking. [[UAX14]]
+        </div>
+
+        <div class="example">
+          <p>In HTML, &amp;shy; represents the soft hyphen character which
+            suggests a line break opportunity.
+          <pre>ex&amp;shy;ample</pre>
+        </div>
+      <dt>auto
+        <dd>Words can be broken at appropriate hyphenation points either as
+          determined by hyphenation characters inside the word or as
+          determined automatically by a language-appropriate hyphenation
+          resource (such as those provided via ''@hyphenation-resource'').
+          Explicit hyphenation characters inside a word take priority over
+          automatic resources when determining hyphenation points within
+          the word.
+      <dt>all
+        <dd>All possible hyphenation points, as would be determined for ''auto'',
+          are marked. The visual appearance of the mark is UA-dependent. This
+          value is intended for debugging. <span class="issue">Do we really need
+          this value?</span>
+    </dl>
+
+    <p>Correct automatic hyphenation requires a hyphenation resource
+      appropriate to the language of the text being broken. The UA is
+      therefore only required to automatically hyphenate text for which
+      the author has declared a language (e.g. via HTML <code>lang</code>
+      or XML <code>xml:lang</code>) and for which it has an appropriate
+      hyphenation resource.
 
   <h3 id="hyphenate-character">
     Hyphens: the 'hyphenate-character' property</h3>
@@ -1210,7 +1285,7 @@
       would never be used.
   </div>
   
-  <p class="issue">Use a format specifier, like @font-face?</p>
+  <p class="issue">Use a format specifier, like @font-face? What is the format?</p>
 
   <p>UAs are not required to support this at-rule.</p>
 
@@ -1384,10 +1459,11 @@
 
     <dl>
     <dt><dfn title="word-wrap:normal"><code>normal</code></dfn></dt>
-    <dd>The restrictions introduced by ''word-break: keep-all'' may be
-      relaxed to match ''word-break: normal'' if there are no
-      otherwise-acceptable break points in the line. Otherwise lines
-      may break only at allowed break points.</dd>
+    <dd>Lines may break only at allowed break points. However, the restrictions
+      introduced by ''word-break: keep-all'' may be relaxed to match
+      ''word-break: normal'' and the various hyphenation limit properties
+      may be ignored if there are no otherwise-acceptable break points in
+      the line.</dd>
     <dt><dfn title="word-wrap:break-word"><code>break-word</code></dfn></dt>
     <dd>An unbreakable "word" may be broken at an arbitrary point if
       there are no otherwise-acceptable break points in the line.
@@ -1399,6 +1475,9 @@
       on hyphenation only for emergency breaking? (This would give better
       results than ''break-word''.)
 
+    <p class="issue">Should there be a ''none'' value, that prevents
+      the relaxation of 'word-break' and hyphenation limit restrictions?</p>
+
 <h2 id="justification">
   Alignment and Justification</h2>
 

Received on Friday, 28 January 2011 00:47:36 UTC