|
10 | 10 | rel=dcterms.rights> |
11 | 11 | <meta content="CSS Writing Modes Module Level 3" name=dcterms.title> |
12 | 12 | <meta content=text name=dcterms.type> |
13 | | - <meta content=2012-11-26 name=dcterms.issued> |
| 13 | + <meta content=2013-02-07 name=dcterms.issued> |
14 | 14 | <meta content="Elika J. Etemad" name=dcterms.creator> |
15 | 15 | <meta content="Koji Ishii" name=dcterms.creator> |
16 | 16 | <meta content=W3C name=dcterms.publisher> |
17 | | - <meta content="http://www.w3.org/TR/2012/ED-css3-writing-modes-20121126/" |
| 17 | + <meta content="http://www.w3.org/TR/2013/ED-css3-writing-modes-20130207/" |
18 | 18 | name=dcterms.identifier> |
19 | 19 | <link href="../default.css" rel=stylesheet type="text/css"> |
20 | 20 | <style type="text/css"> |
|
43 | 43 |
|
44 | 44 | <h1>CSS Writing Modes Module Level 3</h1> |
45 | 45 |
|
46 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 November |
47 | | - 2012</h2> |
| 46 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 February |
| 47 | + 2013</h2> |
48 | 48 |
|
49 | 49 | <dl> |
50 | 50 | <dt>This version: |
51 | 51 |
|
52 | 52 | <dd><a |
53 | 53 | href="http://dev.w3.org/csswg/css3-writing-modes/">http://dev.w3.org/csswg/css3-writing-modes/</a> |
54 | 54 | <!-- |
55 | | - <dd><a href="http://www.w3.org/TR/2012/WD-css3-writing-modes-20121126/">http://www.w3.org/TR/2012/ED-css3-writing-modes-20121126/</a> |
| 55 | + <dd><a href="http://www.w3.org/TR/2013/WD-css3-writing-modes-20130207/">http://www.w3.org/TR/2013/ED-css3-writing-modes-20130207/</a> |
56 | 56 | --> |
57 | 57 |
|
58 | 58 | <dt>Latest version: |
@@ -104,13 +104,14 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 November |
104 | 104 | <!--begin-copyright--> |
105 | 105 | <p class=copyright><a |
106 | 106 | href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" |
107 | | - rel=license>Copyright</a> © 2012 <a href="http://www.w3.org/"><abbr |
| 107 | + rel=license>Copyright</a> © 2013 <a href="http://www.w3.org/"><abbr |
108 | 108 | title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a |
109 | 109 | href="http://www.csail.mit.edu/"><abbr |
110 | 110 | title="Massachusetts Institute of Technology">MIT</abbr></a>, <a |
111 | 111 | href="http://www.ercim.eu/"><abbr |
112 | 112 | title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, |
113 | | - <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a |
| 113 | + <a href="http://www.keio.ac.jp/">Keio</a>, <a |
| 114 | + href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. W3C <a |
114 | 115 | href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, |
115 | 116 | <a |
116 | 117 | href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> |
@@ -174,13 +175,9 @@ <h2 class="no-num no-toc" id=status> Status of this document</h2> |
174 | 175 | href="#text-orientation0"><code |
175 | 176 | class=property>text-orientation</code></a>’ |
176 | 177 |
|
177 | | - <li>The ‘<code class=css>digits</code>’, ‘<code |
178 | | - class=css>numeric</code>’, ‘<code class=css>alpha</code>’, ‘<code |
179 | | - class=css>latin</code>’, and ‘<code class=css>alphanumeric</code>’ |
180 | | - values of ‘<a href="#text-combine-horizontal0"><code |
| 178 | + <li>The ‘<code class=css>digits</code>’ value of ‘<a |
| 179 | + href="#text-combine-horizontal0"><code |
181 | 180 | class=property>text-combine-horizontal</code></a>’. |
182 | | - |
183 | | - <li>The ‘<code class=property>text-combine-mode</code>’ property |
184 | 181 | </ul> |
185 | 182 |
|
186 | 183 | <h2 class="no-num no-toc" id=Contents> Table of Contents</h2> |
@@ -3200,7 +3197,7 @@ <h3 id=text-combine-horizontal><span class=secno>9.1. </span> |
3200 | 3197 | <tr> |
3201 | 3198 | <th><a href="#values">Value</a>: |
3202 | 3199 |
|
3203 | | - <td>none | all <!-- |
| 3200 | + <td>none | all | [ digits <integer>? ] <!-- |
3204 | 3201 | | [ [ numeric <integer> | digits <integer> ] |
3205 | 3202 | || [ alpha <integer> | latin <integer> ] |
3206 | 3203 | || alphanumeric <integer> ] |
@@ -3264,13 +3261,15 @@ <h3 id=text-combine-horizontal><span class=secno>9.1. </span> |
3264 | 3261 | For this property, a <dfn>horizontal number</dfn> is any character |
3265 | 3262 | belonging to a Number category (N*) that does not belong to a |
3266 | 3263 | <a href="#script-orientations">vertical script</a>. |
3267 | | - <dt><dfn title="text-combine-horizontal:digits">digits</dfn> |
3268 | | - <dd>Within the element, each sequence of consecutive ASCII digits (U+0030–U+0039) |
3269 | | - that has as many or fewer characters than the integer given is treated |
3270 | | - as if it were in an anonymous inline box with |
3271 | | - ''text-combine-horizontal: all''. |
3272 | | - <p class="issue">This definition could replace ''numeric'' as a simplification. |
3273 | | - However, it doesn't handle e.g. roman numerals. |
| 3264 | +--> |
| 3265 | + |
| 3266 | + <dt><dfn id=digits title="text-combine-horizontal:digits">digits</dfn> |
| 3267 | + |
| 3268 | + <dd>Within the element, each sequence of consecutive ASCII digits |
| 3269 | + (U+0030–U+0039) that has as many or fewer characters than the integer |
| 3270 | + given is treated as if it were in an anonymous inline box with ‘<code |
| 3271 | + class=css>text-combine-horizontal: all</code>’. When the integer is |
| 3272 | + omitted, 2 is used. <!-- |
3274 | 3273 | <dt><dfn title="text-combine-horizontal:alpha">alpha</dfn> |
3275 | 3274 | <dd>Within the element, each sequence of consecutive horizontal letters |
3276 | 3275 | that has as many or fewer characters than the integer given is treated |
@@ -3316,33 +3315,34 @@ <h3 id=text-combine-horizontal><span class=secno>9.1. </span> |
3316 | 3315 | <p>The figure is the result of the rules |
3317 | 3316 |
|
3318 | 3317 | <pre> |
3319 | | -<!-- -->.tcy { text-combine-horizontal: all; } |
| 3318 | +<!-- -->date { text-combine-horizontal: digits 2; } |
3320 | 3319 | </pre> |
3321 | 3320 |
|
3322 | 3321 | <p>and the following markup: |
3323 | 3322 |
|
3324 | 3323 | <pre> |
3325 | | -<!-- --><p>平成<span class="tcy">20</span>年 |
3326 | | -<!-- --><span class="tcy">4</span>月<span class="tcy">16</span>日に</p> |
| 3324 | +<!-- --><date>平成20年4月16日に</date> |
3327 | 3325 | </pre> |
3328 | 3326 |
|
3329 | 3327 | <p>In Japanese, this effect is known as <i lang=ja>tate-chu-yoko</i>. |
3330 | 3328 | </div> |
3331 | | - <!-- |
3332 | | - <div class="example"> |
3333 | | - <p>The following example shows that applying ''text-combine-horizontal: digits 2'' |
3334 | | - to an entire document, rather than to a segment with a known type of |
3335 | | - numeric content, can have unintended consequences: |
3336 | | - <pre><p>あれは10,000円ですよ!</p></pre> |
3337 | | - <div class="figure"> |
3338 | | - <p><img alt="Rendering of the above markup with 'text-combine-horizontal: digits': |
3339 | | - the first two digits of the number are rendered as tate-chu-yoko |
3340 | | - while the rest of the number is rendered sideways." |
3341 | | - class="example" src="bad-tate-chu-yoko.png"> |
3342 | | - <p class="caption">Example of mis-applied <i lang="ja">tate-chu-yoko</i></p> |
3343 | | - </div> |
| 3329 | + |
| 3330 | + <div class=example> |
| 3331 | + <p>The following example shows that applying ‘<code |
| 3332 | + class=css>text-combine-horizontal: digits 2</code>’ to an entire |
| 3333 | + document, rather than to a segment with a known type of numeric content, |
| 3334 | + can have unintended consequences: |
| 3335 | + |
| 3336 | + <pre><p>あれは10,000円ですよ!</p></pre> |
| 3337 | + |
| 3338 | + <div class=figure> |
| 3339 | + <p><img |
| 3340 | + alt="Rendering of the above markup with 'text-combine-horizontal: digits': the first two digits of the number are rendered as tate-chu-yoko while the rest of the number is rendered sideways." |
| 3341 | + class=example src=bad-tate-chu-yoko.png> |
| 3342 | + |
| 3343 | + <p class=caption>Example of mis-applied <i lang=ja>tate-chu-yoko</i> |
| 3344 | + </div> |
3344 | 3345 | </div> |
3345 | | ---> |
3346 | 3346 |
|
3347 | 3347 | <p>When combining text as for ‘<code class=css>text-combine-horizontal: |
3348 | 3348 | all</code>’, the glyphs of the combined text are stacked horizontally |
@@ -3370,38 +3370,46 @@ <h3 id=text-combine-horizontal><span class=secno>9.1. </span> |
3370 | 3370 | all Han-based scripts, so would have to appear in any usable ideographic |
3371 | 3371 | font; and its shape is very full in both dimensions, so it would be |
3372 | 3372 | unlikely to be shortened in a proportional font --> |
3373 | | - <!-- |
3374 | | - <p>The automatic text combinations are determined before 'text-transform' is |
3375 | | - applied. |
3376 | | - Any CSS fullwidth transformations |
3377 | | - (''text-transform: full-width'' [[CSS3TEXT]] or |
3378 | | - ''font-variant-east-asian-width: full-width'' [[CSS3-FONTS]]) |
3379 | | - are turned off for combined text of more than one character. |
3380 | | -
|
3381 | | - <div class="example"> |
3382 | | - <p>For example, an author might apply both 'text-transform' and 'text-combine-horizontal' |
3383 | | - to a date set in vertical text. |
3384 | | - <pre>date { text-combine-horizontal: digits 2; text-transform: full-width; }</pre> |
3385 | | - <p>Suppose this style rule is applied to a date such as. |
3386 | | - <pre><date>2010年2月23日</date></pre> |
3387 | | - The "2010" is too long to be combined (4 digits), but the "2" and "23" will be affected. |
3388 | | - Since "23" is more than one character, it will not be affected by ''text-transform: full-width''. |
3389 | | - However since the "2" is only one character, it will be transformed to a fullwidth "2". |
3390 | | - Since the "2010" was not combined, its digits, too, will be transformed to fullwidth "2010"; |
3391 | | - and being fullwidth, they will be typeset upright, giving the following result: |
3392 | | - <pre style="text-align: center"> |
3393 | | -2 |
3394 | | -0 |
3395 | | -1 |
3396 | | -0 |
3397 | | -年 |
3398 | | -2 |
3399 | | -月 |
3400 | | -23 |
3401 | | -日</pre> |
| 3373 | + |
| 3374 | + <p>The automatic text combinations are determined before ‘<code |
| 3375 | + class=property>text-transform</code>’ is applied. Any CSS fullwidth |
| 3376 | + transformations (‘<code class=css>text-transform: full-width</code>’ |
| 3377 | + <a href="#CSS3TEXT" rel=biblioentry>[CSS3TEXT]<!--{{CSS3TEXT}}--></a> or |
| 3378 | + ‘<code class=css>font-variant-east-asian-width: full-width</code>’ <a |
| 3379 | + href="#CSS3-FONTS" rel=biblioentry>[CSS3-FONTS]<!--{{CSS3-FONTS}}--></a>) |
| 3380 | + are turned off for combined text of more than one character. |
| 3381 | + |
| 3382 | + <div class=example> |
| 3383 | + <p>For example, an author might apply both ‘<code |
| 3384 | + class=property>text-transform</code>’ and ‘<a |
| 3385 | + href="#text-combine-horizontal0"><code |
| 3386 | + class=property>text-combine-horizontal</code></a>’ to a date set in |
| 3387 | + vertical text. |
| 3388 | + |
| 3389 | + <pre>date { text-combine-horizontal: digits 2; text-transform: full-width; }</pre> |
| 3390 | + |
| 3391 | + <p>Suppose this style rule is applied to a date such as. |
| 3392 | + |
| 3393 | + <pre><date>2010年2月23日</date></pre> |
| 3394 | + The "2010" is too long to be combined (4 digits), but the "2" and "23" |
| 3395 | + will be affected. Since "23" is more than one character, it will not be |
| 3396 | + affected by ‘<code class=css>text-transform: full-width</code>’. |
| 3397 | + However since the "2" is only one character, it will be transformed to a |
| 3398 | + fullwidth "2". Since the "2010" was not combined, its digits, too, will |
| 3399 | + be transformed to fullwidth "2010"; and being fullwidth, they will |
| 3400 | + be typeset upright, giving the following result: |
| 3401 | + <pre style="text-align: center"> |
| 3402 | +<!-- -->2 |
| 3403 | +<!-- -->0 |
| 3404 | +<!-- -->1 |
| 3405 | +<!-- -->0 |
| 3406 | +<!-- -->年 |
| 3407 | +<!-- -->2 |
| 3408 | +<!-- -->月 |
| 3409 | +<!-- -->23 |
| 3410 | +<!-- -->日</pre> |
3402 | 3411 | </div> |
3403 | | ---> |
3404 | | - <!-- |
| 3412 | + <!-- |
3405 | 3413 | <h3 id="text-combine-mode"> |
3406 | 3414 | Horizontal-in-Vertical Glyph Scaling: the 'text-combine-mode' property</h3> |
3407 | 3415 |
|
@@ -3987,10 +3995,10 @@ <h3 class=no-num id=normative-references> Normative references</h3> |
3987 | 3995 | <dt id=CSS21>[CSS21] |
3988 | 3996 |
|
3989 | 3997 | <dd>Bert Bos; et al. <a |
3990 | | - href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style |
| 3998 | + href="http://www.w3.org/TR/2011/REC-CSS2-20110607/"><cite>Cascading Style |
3991 | 3999 | Sheets Level 2 Revision 1 (CSS 2.1) Specification.</cite></a> 7 June |
3992 | 4000 | 2011. W3C Recommendation. URL: <a |
3993 | | - href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a> |
| 4001 | + href="http://www.w3.org/TR/2011/REC-CSS2-20110607/">http://www.w3.org/TR/2011/REC-CSS2-20110607/</a> |
3994 | 4002 | </dd> |
3995 | 4003 | <!----> |
3996 | 4004 |
|
@@ -4065,7 +4073,7 @@ <h3 class=no-num id=normative-references> Normative references</h3> |
4065 | 4073 |
|
4066 | 4074 | <dd>Mark Davis. <a |
4067 | 4075 | href="http://www.unicode.org/reports/tr29/"><cite>Unicode Text |
4068 | | - Segmentation.</cite></a> 24 January 2012. Unicode Standard Annex #29. |
| 4076 | + Segmentation.</cite></a> 12 September 2012. Unicode Standard Annex #29. |
4069 | 4077 | URL: <a |
4070 | 4078 | href="http://www.unicode.org/reports/tr29/">http://www.unicode.org/reports/tr29/</a> |
4071 | 4079 | </dd> |
@@ -4130,6 +4138,16 @@ <h3 class=no-num id=other-references> Other references</h3> |
4130 | 4138 | </dd> |
4131 | 4139 | <!----> |
4132 | 4140 |
|
| 4141 | + <dt id=CSS3-FONTS>[CSS3-FONTS] |
| 4142 | + |
| 4143 | + <dd>John Daggett. <a |
| 4144 | + href="http://www.w3.org/TR/2012/WD-css3-fonts-20121211/"><cite>CSS Fonts |
| 4145 | + Module Level 3.</cite></a> 11 December 2012. W3C Working Draft. (Work in |
| 4146 | + progress.) URL: <a |
| 4147 | + href="http://www.w3.org/TR/2012/WD-css3-fonts-20121211/">http://www.w3.org/TR/2012/WD-css3-fonts-20121211/</a> |
| 4148 | + </dd> |
| 4149 | + <!----> |
| 4150 | + |
4133 | 4151 | <dt id=CSS3COLOR>[CSS3COLOR] |
4134 | 4152 |
|
4135 | 4153 | <dd>Tantek Çelik; Chris Lilley; L. David Baron. <a |
@@ -4181,9 +4199,10 @@ <h3 class=no-num id=other-references> Other references</h3> |
4181 | 4199 | <dt id=HTML5>[HTML5] |
4182 | 4200 |
|
4183 | 4201 | <dd>Ian Hickson. <a |
4184 | | - href="http://www.w3.org/TR/2011/WD-html5-20110525/"><cite>HTML5.</cite></a> |
4185 | | - 25 May 2011. W3C Working Draft. (Work in progress.) URL: <a |
4186 | | - href="http://www.w3.org/TR/2011/WD-html5-20110525/">http://www.w3.org/TR/2011/WD-html5-20110525/</a> |
| 4202 | + href="http://www.w3.org/TR/2012/CR-html5-20121217/"><cite>HTML5.</cite></a> |
| 4203 | + 17 December 2012. W3C Candidate Recommendation. (Work in progress.) URL: |
| 4204 | + <a |
| 4205 | + href="http://www.w3.org/TR/2012/CR-html5-20121217/">http://www.w3.org/TR/2012/CR-html5-20121217/</a> |
4187 | 4206 | </dd> |
4188 | 4207 | <!----> |
4189 | 4208 |
|
@@ -4237,7 +4256,7 @@ <h2 class=no-num id=property-index> Property Index</h2> |
4237 | 4256 | <th><a class=property |
4238 | 4257 | href="#text-combine-horizontal0">text-combine-horizontal</a> |
4239 | 4258 |
|
4240 | | - <td>none | all |
| 4259 | + <td>none | all | [ digits <integer>? ] |
4241 | 4260 |
|
4242 | 4261 | <td>none |
4243 | 4262 |
|
|
0 commit comments