csswg/css3-writing-modes Overview.html,1.191,1.192 Overview.src.html,1.202,1.203

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

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Specify algorithm for use-glyphs.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-writing-modes/Overview.html,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- Overview.html	29 Jul 2011 22:14:12 -0000	1.191
+++ Overview.html	13 Aug 2011 00:10:03 -0000	1.192
@@ -32,7 +32,7 @@
 
    <h1>CSS Writing Modes Module Level 3</h1>
 
-   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 July 2011</h2>
+   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 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-20110729">http://www.w3.org/TR/2011/ED-css3-writing-modes-20110729/</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>
 -->
      
 
@@ -2956,18 +2956,13 @@
 
    <dd>If the UA has alternate-width glyphs available for the contents of the
     element, then it must use those glyphs to attempt sizing the contents to
-    1em square. For example, a one-digit number would use a fullwidth glyph,
-    a two digit number would use halfwidth or proportional glyphs, a
-    three-digit number would use 1/3-em glyphs (if available, else halfwidth
-    or proportional glyphs), etc. If such glyphs are not available (and
-    &lsquo;<code class=css>no-scale</code>&rsquo; is not specified), the UA
-    must compress the composition horizontally until it fits within 1em.
+    1em square. See below.
 
    <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 (by scaling horizontally) 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>
@@ -2999,8 +2994,28 @@
   <p>If none of &lsquo;<code class=css>scale</code>&rsquo;, &lsquo;<code
    class=css>no-scale</code>&rsquo;, or &lsquo;<code
    class=css>use-glyphs</code>&rsquo; are specified and the contents are
-   wider than the width tolerance, the UA must compress the contents to
-   within the tolerance, but may use any method to do so.
+   wider than 1em, the UA must attempt to fit the contents within 1em, but
+   may use any method to do so.
+
+  <p>If &lsquo;<code class=css>use-glyphs</code>&rsquo; is specified the UA
+   must attempt to substitute 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>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 (scaling horizontally) each
+   glyph or padding it (equally on both sides) if it does not match the
+   required advance width.
 
   <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
@@ -3742,10 +3757,10 @@
    <dt id=SVG11>[SVG11]
 
    <dd>Erik Dahlstr&#246;m; et al. <a
-    href="http://www.w3.org/TR/2011/WD-SVG11-20110512/"><cite>Scalable Vector
-    Graphics (SVG) 1.1 (Second Edition).</cite></a> 12 May 2011. W3C Working
-    Draft. (Work in progress.) URL: <a
-    href="http://www.w3.org/TR/2011/WD-SVG11-20110512/">http://www.w3.org/TR/2011/WD-SVG11-20110512/</a>
+    href="http://www.w3.org/TR/2011/PR-SVG11-20110609/"><cite>Scalable Vector
+    Graphics (SVG) 1.1 (Second Edition).</cite></a> 9 June 2011. W3C Proposed
+    Recommendation. (Work in progress.) URL: <a
+    href="http://www.w3.org/TR/2011/PR-SVG11-20110609/">http://www.w3.org/TR/2011/PR-SVG11-20110609/</a>
     </dd>
    <!---->
 
@@ -3910,7 +3925,7 @@
 
    <tbody>
     <tr>
-     <td><a class=property href="#direction0">direction</a>
+     <th><a class=property href="#direction0">direction</a>
 
      <td>ltr | rtl
 
@@ -3925,7 +3940,7 @@
      <td>visual
 
     <tr>
-     <td><span class=property>&lsquo;caption-side&rsquo;</span>
+     <th><span class=property>&lsquo;caption-side&rsquo;</span>
 
      <td>&lsquo;before&rsquo; | &lsquo;after&rsquo;
 
@@ -3940,7 +3955,7 @@
      <td>same as CSS2.1
 
     <tr>
-     <td><span class=property>&lsquo;column-width&rsquo;</span>
+     <th><span class=property>&lsquo;column-width&rsquo;</span>
 
      <td>&lsquo;min-content&rsquo; | &lsquo;max-content&rsquo; |
       &lsquo;fill-available&rsquo; | &lsquo;fit-content&rsquo;
@@ -3956,7 +3971,7 @@
      <td>as defined in [CSS3COL]
 
     <tr>
-     <td><span class=property>&lsquo;width&rsquo;</span>, <span
+     <th><span class=property>&lsquo;width&rsquo;</span>, <span
       class=property>&lsquo;min-width&rsquo;</span>, <span
       class=property>&lsquo;max-width&rsquo;</span>, <span
       class=property>&lsquo;height&rsquo;</span>, <span
@@ -3977,7 +3992,7 @@
      <td>as defined in [CSS21]
 
     <tr>
-     <td><a class=property
+     <th><a class=property
       href="#text-combine-horizontal">text-combine-horizontal</a>
 
      <td>none | all &lt;integer>? | [ [digits &lt;integer> || ascii-digits
@@ -3996,7 +4011,7 @@
      <td>visual
 
     <tr>
-     <td><a class=property href="#text-orientation0">text-orientation</a>
+     <th><a class=property href="#text-orientation0">text-orientation</a>
 
      <td>upright-right | upright | sideways-right | sideways-left | sideways
       | use-glyph-orientation
@@ -4013,7 +4028,7 @@
      <td>visual
 
     <tr>
-     <td><a class=property href="#unicode-bidi0">unicode-bidi</a>
+     <th><a class=property href="#unicode-bidi0">unicode-bidi</a>
 
      <td>normal | embed | [ isolate || bidi-override ] | plaintext ]
 
@@ -4028,7 +4043,7 @@
      <td>visual
 
     <tr>
-     <td><a class=property href="#writing-mode1">writing-mode</a>
+     <th><a class=property href="#writing-mode1">writing-mode</a>
 
      <td>horizontal-tb | vertical-rl | vertical-lr
 

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-writing-modes/Overview.src.html,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -d -r1.202 -r1.203
--- Overview.src.html	29 Jul 2011 22:14:12 -0000	1.202
+++ Overview.src.html	13 Aug 2011 00:10:03 -0000	1.203
@@ -2206,17 +2206,10 @@
     <dt><dfn title="text-combine-horizontal:use-glyphs">use-glyphs</dfn>
     <dd>If the UA has alternate-width glyphs available for the contents
       of the element, then it must use those glyphs to attempt sizing the
-      contents to 1em square.
-      For example, a one-digit number would use a fullwidth glyph, a two
-      digit number would use halfwidth or proportional glyphs, a three-digit
-      number would use 1/3-em glyphs (if available, else halfwidth or
-      proportional glyphs), etc.
-      If such glyphs are not available (and ''no-scale'' is not specified),
-      the UA must compress the composition horizontally until it fits within
-      1em.
+      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.
-      Do not substitute alternate-width glyphs.
+    <dd>Compress the composition (by scaling horizontally) 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
@@ -2243,9 +2236,22 @@
     representing the Object Replacement Character U+FFFC.
 
   <p>If none of ''scale'', ''no-scale'', or ''use-glyphs'' are specified
-    and the contents are wider than the width tolerance, the UA must
-    compress the contents to within the tolerance, but may use any
-    method to do so.
+    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.
+
+  <p>If ''use-glyphs'' is specified the UA must attempt to substitute
+    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>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 (scaling horizontally) each glyph or padding it (equally
+   on both sides) if it does not match the required advance width.
 
   <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

Received on Saturday, 13 August 2011 00:10:07 UTC