csswg/css3-writing-modes Overview.html,1.193,1.194 Overview.src.html,1.204,1.205

Update of /sources/public/csswg/css3-writing-modes
In directory hutz:/tmp/cvs-serv28262

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Fix errors in text-combine definition reported by Florian

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-writing-modes/Overview.html,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -d -r1.193 -r1.194
--- Overview.html	13 Aug 2011 00:12:40 -0000	1.193
+++ Overview.html	15 Aug 2011 15:49:43 -0000	1.194
@@ -32,7 +32,7 @@
 
    <h1>CSS Writing Modes Module Level 3</h1>
 
-   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 August 2011</h2>
+   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 15 August 2011</h2>
 
    <dl>
     <dt>This version:
@@ -40,7 +40,7 @@
     <dd><a
      href="http://dev.w3.org/csswg/css3-writing-modes/">http://dev.w3.org/csswg/css3-writing-modes/</a>
      <!--
-    <dd><a href="http://www.w3.org/TR/2011/WD-css3-writing-modes-20110813">http://www.w3.org/TR/2011/ED-css3-writing-modes-20110813/</a>
+    <dd><a href="http://www.w3.org/TR/2011/WD-css3-writing-modes-20110815">http://www.w3.org/TR/2011/ED-css3-writing-modes-20110815/</a>
 -->
      
 
@@ -153,8 +153,8 @@
     class=css>alpha</code>&rsquo;, &lsquo;<code
     class=css>latin</code>&rsquo;, &lsquo;<code
     class=css>alphanumeric</code>&rsquo;, &lsquo;<code
-    class=css>scale</code>&rsquo;, &lsquo;<code
-    class=css>no-scale</code>&rsquo;, and &lsquo;<code
+    class=css>compress</code>&rsquo;, &lsquo;<code
+    class=css>no-compress</code>&rsquo;, and &lsquo;<code
     class=css>use-glyphs</code>&rsquo; values of &lsquo;<a
     href="#text-combine-horizontal"><code
     class=property>text-combine-horizontal</code></a>&rsquo;.
@@ -2848,10 +2848,10 @@
     <tr>
      <th>Value:
 
-     <td>none | all &lt;integer>? | [ [digits &lt;integer> || ascii-digits
+     <td>none | all &lt;integer>? | [ [digits &lt;integer> | ascii-digits
       &lt;integer> ] || [ alpha &lt;integer> | latin &lt;integer> ] ||
-      alphanumeric &lt;integer> ] && [ compress | no-compress || use-glyphs
-      ]?
+      alphanumeric &lt;integer> ] && [ compress | [ no-compress || use-glyphs
+      ] ]?
 
     <tr>
      <th>Initial:
@@ -2909,8 +2909,9 @@
     that has as many or fewer characters than the integer given is treated as
     if it were in an anonymous inline box with &lsquo;<code
     class=css>text-combine-horizontal: all</code>&rsquo;. For this property,
-    a digit is any character belonging to a Number category (N*) that does
-    not belong to a <a href="#script-orientations">vertical script</a>.
+    a <dfn id=horizontal-digit>horizontal digit</dfn> is any character
+    belonging to a Number category (N*) that does not belong to a <a
+    href="#script-orientations">vertical script</a>.
 
    <dt><dfn id=ascii-digits
     title="text-combine-horizontal:ascii-digits">ascii-digits</dfn>
@@ -2928,18 +2929,18 @@
     that has as many or fewer characters than the integer given is treated as
     if it were in an anonymous inline box with &lsquo;<code
     class=css>text-combine-horizontal: all</code>&rsquo;. For this property,
-    a horizonal letter is any character belonging to a Letter category (L*)
-    that does not belong to a <a href="#script-orientations">vertical
-    script</a>.
+    a <dfn id=horizonal-letter-is-any-character-belong>horizonal letter<dfn>
+    is any character belonging to a Letter category (L*) that does not belong
+    to a <a href="#script-orientations">vertical script</a>. </dfn></dfn>
 
    <dt><dfn id=latin title="text-combine-horizontal:latin">latin</dfn>
 
    <dd>Within the element, each sequence of Latin letters that has as many or
     fewer characters than the integer given is treated as if it were in an
     anonymous inline box with &lsquo;<code class=css>text-combine-horizontal:
-    all</code>&rsquo;. For this property, a Latin letter is any character
-    belonging to a Letter category (L*) that also belongs to the Latin
-    script.
+    all</code>&rsquo;. For this property, a <dfn id=latin-letter>Latin
+    letter</dfn> is any character belonging to a Letter category (L*) that
+    also belongs to the Latin script.
     <p class=issue>This definition is would replace &lsquo;<code
      class=css>alpha</code>&rsquo; as a simplification.
 
@@ -2961,15 +2962,19 @@
    <dt><dfn id=compress
     title="text-combine-horizontal:compress">compress</dfn>
 
-   <dd>Compress the composition (horizontally) until it fits within 1em. Do
-    not substitute alternate-width glyphs.
+   <dd>Compress the composition (horizontally) as a whole until it fits
+    within 1em. Do not substitute alternate-width glyphs.
 
    <dt><dfn id=no-compress
     title="text-combine-horizontal:no-compress">no-compress</dfn>
 
    <dd>Do not compress the composition or perform any glyph substitution in
-    order to make the composition fit within the tolerance. This may cause
-    the glyphs to overflow the line significantly.
+    order to make the composition fit within 1em. This may cause the glyphs
+    to overflow the line significantly. When combined with &lsquo;<code
+    class=css>use-glyphs</code>&rsquo;, this indicates to perform glyph
+    substitution if possible per &lsquo;<code
+    class=css>use-glyphs</code>&rsquo; but not to compress the glyphs if they
+    do not fit within the size constraints.
   </dl>
 
   <p class=issue>All values except &lsquo;<code class=css>all</code>&rsquo;
@@ -2991,8 +2996,8 @@
    composition is treated as a single glyph representing the Object
    Replacement Character U+FFFC.
 
-  <p>If none of &lsquo;<code class=css>scale</code>&rsquo;, &lsquo;<code
-   class=css>no-scale</code>&rsquo;, or &lsquo;<code
+  <p>If none of &lsquo;<code class=css>compress</code>&rsquo;, &lsquo;<code
+   class=css>no-compress</code>&rsquo;, or &lsquo;<code
    class=css>use-glyphs</code>&rsquo; are specified and the contents are
    wider than 1em, the UA must attempt to fit the contents within 1em, but
    may use any method to do so.
@@ -3004,17 +3009,22 @@
   <ul>
    <li>a two digit number would use 1/2-em or proportional glyphs
 
-   <li>a three-digit number would use 1/3-em glyphs (if available, else fall
-    back to 1/2-em or proportional glyphs)
+   <li>a three-digit number would use 1/3-em glyphs (if the font supports
+    this feature, else fall back to 1/2-em or proportional glyphs)
 
    <li>etc.
   </ul>
 
   <p>Since even fonts that have fractional-width glyphs available do not have
    such glyphs for all characters, if &lsquo;<code
-   class=css>no-scale</code>&rsquo; is not specified, the UA must ensure the
-   expected advance width by either compressing each glyph or padding it
-   (equally on both sides) if it does not match the required advance width.
+   class=css>no-compress</code>&rsquo; is not specified, the UA must ensure
+   the expected advance width for &lsquo;<code
+   class=css>use-glyphs</code>&rsquo; by either compressing or padding
+   (equally on both sides) each glyph individually if it does not match the
+   required advance width. If &lsquo;<code
+   class=css>no-compress</code>&rsquo; is specified, then the UA must not
+   attempt to adjust the width of the glyph even if it differs from the
+   expected dimension. This may cause the combined text to overflow.
 
   <p>In some fonts, the ideographic glyphs are given a compressed design such
    that they are 1em wide but shorter than 1em tall. To accommodate such
@@ -3067,7 +3077,7 @@
 
   <div class=example>
    <p>The following example shows that applying &lsquo;<code
-    class=css>text-combine-horizontal: digits</code>&rsquo; to an entire
+    class=css>text-combine-horizontal: digits 2</code>&rsquo; to an entire
     document, rather than to a segment with a known type of numeric content,
     can have unintended consequences:
 
@@ -3994,10 +4004,10 @@
      <th><a class=property
       href="#text-combine-horizontal">text-combine-horizontal</a>
 
-     <td>none | all &lt;integer>? | [ [digits &lt;integer> || ascii-digits
+     <td>none | all &lt;integer>? | [ [digits &lt;integer> | ascii-digits
       &lt;integer> ] || [ alpha &lt;integer> | latin &lt;integer> ] ||
-      alphanumeric &lt;integer> ] && [ compress | no-compress || use-glyphs
-      ]?
+      alphanumeric &lt;integer> ] && [ compress | [ no-compress || use-glyphs
+      ] ]?
 
      <td>none
 

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-writing-modes/Overview.src.html,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -d -r1.204 -r1.205
--- Overview.src.html	13 Aug 2011 00:12:40 -0000	1.204
+++ Overview.src.html	15 Aug 2011 15:49:43 -0000	1.205
@@ -78,7 +78,7 @@
 <ul>
   <li>The ''use-glyph-orientation'' of 'text-orientation'
   <li>The ''ascii-digits'', ''digits'', ''alpha'', ''latin'', ''alphanumeric'',
-    ''scale'', ''no-scale'', and ''use-glyphs'' values of 'text-combine-horizontal'.
+    ''compress'', ''no-compress'', and ''use-glyphs'' values of 'text-combine-horizontal'.
 </ul>
 
 <h2 class="no-num no-toc" id="Contents">
@@ -2120,10 +2120,10 @@
       <tr>
         <th>Value:</th>
         <td>none | all &lt;integer>? |
-            [  [digits &lt;integer> || ascii-digits &lt;integer> ]
+            [  [digits &lt;integer> | ascii-digits &lt;integer> ]
             || [ alpha &lt;integer> | latin &lt;integer> ]
             || alphanumeric &lt;integer> ]
-            && [ compress | no-compress || use-glyphs ]?</td>
+            && [ compress | [ no-compress || use-glyphs ] ]?</td>
       </tr>
       <tr>
         <th>Initial:</th>
@@ -2173,8 +2173,8 @@
       that has as many or fewer characters than the integer given is treated
       as if it were in an anonymous inline box with
       ''text-combine-horizontal: all''.
-      For this property, a digit is any character belonging to a Number
-      category (N*) that does not belong to a
+      For this property, a <dfn>horizontal digit</dfn> is any character
+      belonging to a Number category (N*) that does not belong to a
       <a href="#script-orientations">vertical script</a>.
     <dt><dfn title="text-combine-horizontal:ascii-digits">ascii-digits</dfn>
     <dd>Within the element, each sequence of consecutive ASCII digits (U+0030&ndash;U+0039)
@@ -2187,15 +2187,15 @@
       that has as many or fewer characters than the integer given is treated
       as if it were in an anonymous inline box with
       ''text-combine-horizontal: all''.
-      For this property, a horizonal letter is any character belonging to
-      a Letter category (L*) that does not belong to a
+      For this property, a <dfn>horizonal letter<dfn> is any character belonging
+      to a Letter category (L*) that does not belong to a
       <a href="#script-orientations">vertical script</a>.
     <dt><dfn title="text-combine-horizontal:latin">latin</dfn>
     <dd>Within the element, each sequence of Latin letters
       that has as many or fewer characters than the integer given is treated
       as if it were in an anonymous inline box with
       ''text-combine-horizontal: all''.
-      For this property, a Latin letter is any character belonging to
+      For this property, a <dfn>Latin letter</dfn> is any character belonging to
       a Letter category (L*) that also belongs to the Latin script.
       <p class="issue">This definition is would replace ''alpha'' as a simplification.
     <dt><dfn title="text-combine-horizontal:alphanumeric">alphanumeric</dfn>
@@ -2208,12 +2208,15 @@
       of the element, then it must use those glyphs to attempt sizing the
       contents to 1em square. See below.
     <dt><dfn title="text-combine-horizontal:compress">compress</dfn>
-    <dd>Compress the composition (horizontally) until it fits within 1em.
+    <dd>Compress the composition (horizontally) as a whole until it fits within 1em.
       Do not substitute alternate-width glyphs.
     <dt><dfn title="text-combine-horizontal:no-compress">no-compress</dfn>
     <dd>Do not compress the composition or perform any glyph substitution
-      in order to make the composition fit within the tolerance. This may
-      cause the glyphs to overflow the line significantly.
+      in order to make the composition fit within 1em. This may
+      cause the glyphs to overflow the line significantly. When combined
+      with ''use-glyphs'', this indicates to perform glyph substitution
+      if possible per ''use-glyphs'' but not to compress the glyphs if
+      they do not fit within the size constraints.
   </dl>
 
   <p class="issue">All values except ''all'' are marked at-risk. Which
@@ -2235,7 +2238,7 @@
     etc. the resulting composition is treated as a single glyph
     representing the Object Replacement Character U+FFFC.
 
-  <p>If none of ''scale'', ''no-scale'', or ''use-glyphs'' are specified
+  <p>If none of ''compress'', ''no-compress'', or ''use-glyphs'' are specified
     and the contents are wider than 1em, the UA must attempt to fit the
     contents within 1em, but may use any method to do so.
 
@@ -2243,15 +2246,18 @@
     narrower glyphs as necessary to make the composition fit within 1em:
     <ul>
       <li>a two digit number would use 1/2-em or proportional glyphs
-      <li>a three-digit number would use 1/3-em glyphs (if available, 
-        else fall back to 1/2-em or proportional glyphs)
+      <li>a three-digit number would use 1/3-em glyphs (if the font supports
+        this feature, else fall back to 1/2-em or proportional glyphs)
       <li>etc.
    </ul>
    <p>Since even fonts that have fractional-width glyphs available do
-   not have such glyphs for all characters, if ''no-scale'' is not
-   specified, the UA must ensure the expected advance width by either
-   compressing each glyph or padding it (equally on both sides) if it
-   does not match the required advance width.
+   not have such glyphs for all characters, if ''no-compress'' is not
+   specified, the UA must ensure the expected advance width for ''use-glyphs''
+   by either compressing or padding (equally on both sides) each glyph
+   individually if it does not match the required advance width. If
+   ''no-compress'' is specified, then the UA must not attempt to adjust
+   the width of the glyph even if it differs from the expected dimension.
+   This may cause the combined text to overflow.
 
   <p>In some fonts, the ideographic glyphs are given a compressed design
     such that they are 1em wide but shorter than 1em tall. To accommodate
@@ -2293,7 +2299,7 @@
   </div>
 
   <div class="example">
-    <p>The following example shows that applying ''text-combine-horizontal: digits''
+    <p>The following example shows that applying ''text-combine-horizontal: digits 2''
       to an entire document, rather than to a segment with a known type of
       numeric content, can have unintended consequences:
     <pre>&lt;p>あれは10,000円ですよ!&lt;/p></pre>

Received on Monday, 15 August 2011 15:49:47 UTC