|
83 | 83 |
|
84 | 84 | <h1>CSS Text Level 3</h1> |
85 | 85 |
|
86 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 December |
| 86 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 December |
87 | 87 | 2010</h2> |
88 | 88 |
|
89 | 89 | <dl> |
90 | 90 | <dt>This version: |
91 | 91 |
|
92 | 92 | <dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date: |
93 | | - 2010/12/14 11:39:47 $ (CVS $Revision$)</a> <!--<dd><a |
| 93 | + 2010/12/16 21:24:57 $ (CVS $Revision$)</a> <!--<dd><a |
94 | 94 | href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> --> |
95 | 95 |
|
96 | 96 |
|
@@ -1913,12 +1913,8 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
1913 | 1913 | glyphs). If specified alone, the exact justification algorithm is |
1914 | 1914 | UA-defined (as for ‘<code class=css>auto</code>’). <span |
1915 | 1915 | class=note> An example of compression rules is given for Japanese in 3.8 |
1916 | | - Line Adjustment in the <a href="#JLREQ" |
1917 | | - rel=biblioentry>[JLREQ]<!--{{!JLREQ}}--></a>.</span> |
1918 | | - <p class=issue>The rule a. of 3.8.3 in the current JLREQ may produce |
1919 | | - non-optimal results when the rules are applied to English lines, or |
1920 | | - sometimes English words within Japanese lines. There's a discussion |
1921 | | - currently going on for how to manage this.</p> |
| 1916 | + Line Adjustment in <a href="#JLREQ" |
| 1917 | + rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>.</span> |
1922 | 1918 | </dl> |
1923 | 1919 |
|
1924 | 1920 | <p>When justifying text, the user agent takes the remaining space between |
@@ -2020,8 +2016,6 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
2020 | 2016 | href="#grapheme-cluster">grapheme clusters</a> when at least one of them |
2021 | 2017 | belongs to the affected script group and the spacing that point has not |
2022 | 2018 | already been altered at a higher priority. |
2023 | | - <p class=issue>I'm not sure grapheme clusters are the right unit to use |
2024 | | - for some of these complex scripts...</p> |
2025 | 2019 |
|
2026 | 2020 | <dt>cursive |
2027 | 2021 |
|
@@ -2050,8 +2044,8 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
2050 | 2044 | justification behavior due to typographic tradition. For example, there |
2051 | 2045 | are traditionally no expansion opportunities between consecutive EM DASH |
2052 | 2046 | U+2014, HORIZONTAL BA U+2015, HORIZONTAL ELLIPSIS U+2026, or TWO DOT |
2053 | | - LEADER U+2025 characters. <a href="#JIS4051" |
2054 | | - rel=biblioentry>[JIS4051]<!--{{JIS4051}}--></a> The UA may introduce |
| 2047 | + LEADER U+2025 characters <a href="#JLREQ" |
| 2048 | + rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>. The UA may introduce |
2055 | 2049 | additional levels of priority to handle expansion opportunities involving |
2056 | 2050 | punctuation. |
2057 | 2051 |
|
@@ -2334,56 +2328,56 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
2334 | 2328 | above is informative. |
2335 | 2329 |
|
2336 | 2330 | <div class=example> |
2337 | | - <p>Japanese is one of the language that prefers compression to expansion |
2338 | | - on justification. JIS X-4051 <a href="#JIS4051" |
2339 | | - rel=biblioentry>[JIS4051]<!--{{JIS4051}}--></a> defines how a text |
2340 | | - formatter can justify Japanese text. Here is one example of the |
2341 | | - interpretation of JIS X-4051 with slight modification.</p> |
2342 | | - |
2343 | | - <ol> |
2344 | | - <li>If no justification is necessary, neither compression nor expansion |
2345 | | - occur. |
2346 | | - |
2347 | | - <li>If justification is necessary, take the first line break opportunity |
2348 | | - beyond the end of line and apply the following rules (in order) to |
2349 | | - compress until it fits. |
2350 | | - <ol> |
2351 | | - <li>Compress space characters up to the minimum value specified by |
2352 | | - ‘<a href="#word-spacing0"><code |
2353 | | - class=css>word-spacing</code></a>’ property, or up to 1/4em. |
2354 | | - |
2355 | | - <li>Compress <a href="#fullwidth-middle-dot-punctuation">fullwidth |
2356 | | - middle dot punctuations</a> and <a |
2357 | | - href="#fullwidth-colon-punctuation">fullwidth colon punctuations</a> |
2358 | | - up to 1/2em, by trimming the same amount of spaces from both sides of |
2359 | | - the characters. |
2360 | | - |
2361 | | - <li>Compress the left side of <a |
2362 | | - href="#fullwidth-opening-punctuation">fullwidth opening |
2363 | | - punctuations</a> and the right side of <a |
2364 | | - href="#fullwidth-closing-punctuation">fullwidth closing |
2365 | | - punctuations</a> up to 1/2em. |
2366 | | - |
2367 | | - <li>Compress spaces created by ‘<a href="#text-autospace0"><code |
2368 | | - class=css>text-autospace</code></a>’ property up to 1/8em. |
2369 | | - </ol> |
2370 | | - |
2371 | | - <li>If the compression fails to fit the line, take the last line break |
2372 | | - opportunity before the end of line, and apply the following rules (in |
2373 | | - order) to expand until it fits. |
2374 | | - <ol> |
2375 | | - <li>Expand space characters up to the maximum value specified by |
2376 | | - ‘<a href="#word-spacing0"><code |
2377 | | - class=css>word-spacing</code></a>’ property, or up to 1/2em. |
2378 | | - |
2379 | | - <li>Expand spaces created by ‘<a href="#text-autospace0"><code |
2380 | | - class=css>text-autospace</code></a>’ property up to 1/2em. |
2381 | | - |
2382 | | - <li>Expand all expansion opportunities as defined above in equal |
2383 | | - percent of the size of each character. |
2384 | | - </ol> |
2385 | | - </ol> |
2386 | | - </div> |
| 2331 | + <p>Japanese is one of the languages for which compression is preferred to |
| 2332 | + expansion in applying justification.</p> |
| 2333 | + |
| 2334 | + <p>3.8 Line Adjustment in <a href="#JLREQ" |
| 2335 | + rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a> gives an example of a set of |
| 2336 | + rules for how a text formatter can justify Japanese text. It describes |
| 2337 | + rules for cases where the ‘<a href="#text-justify0"><code |
| 2338 | + class=property>text-justify</code></a>’ property is ‘<code |
| 2339 | + class=css>trim inter-ideograph</code>’.</p> |
| 2340 | + |
| 2341 | + <p>It produces an effect similar to cases where the computed value of |
| 2342 | + ‘<a href="#punctuation-trim0"><code |
| 2343 | + class=property>punctuation-trim</code></a>’ property is |
| 2344 | + ‘<code class=css>allow-end</code>’. If the UA wants to |
| 2345 | + prohibit this behavior, rule b. of 3.8.3 should be omitted.</p> |
| 2346 | + |
| 2347 | + <p>Note that the rules described in the document specifically target |
| 2348 | + Japanese. Therefore they may produce non-optimal results when used to |
| 2349 | + justify other languages such as English. To make the rules more |
| 2350 | + applicable to other scripts, the UA could, for instance, omit the rule to |
| 2351 | + compress half-width spaces (rule a. of 3.8.3).</p> |
| 2352 | + <!-- |
| 2353 | + <p>JIS X-4051 [[JIS4051]] defines how a text formatter can justify Japanese text. |
| 2354 | + Here is one example of the interpretation of JIS X-4051 with slight modification.</p> |
| 2355 | + <ol> |
| 2356 | + <li>If no justification is necessary, neither compression nor expansion occur.</li> |
| 2357 | + <li>If justification is necessary, |
| 2358 | + take the first line break opportunity beyond the end of line |
| 2359 | + and apply the following rules (in order) to compress until it fits. |
| 2360 | + <ol style="list-style-type:lower-alpha"> |
| 2361 | + <li>Compress space characters up to the minimum value specified by ‘<code class=css>word-spacing</code>’ property, or up to 1/4em.</li> |
| 2362 | + <li>Compress <a href="#fullwidth-middle-dot-punctuation">fullwidth middle dot punctuations</a> |
| 2363 | + and <a href="#fullwidth-colon-punctuation">fullwidth colon punctuations</a> |
| 2364 | + up to 1/2em, by trimming the same amount of spaces from both sides of the characters.</li> |
| 2365 | + <li>Compress the left side of <a href="#fullwidth-opening-punctuation">fullwidth opening punctuations</a> |
| 2366 | + and the right side of <a href="#fullwidth-closing-punctuation">fullwidth closing punctuations</a> |
| 2367 | + up to 1/2em.</li> |
| 2368 | + <li>Compress spaces created by ‘<code class=css>text-autospace</code>’ property up to 1/8em.</li> |
| 2369 | + </ol></li> |
| 2370 | + <li>If the compression fails to fit the line, |
| 2371 | + take the last line break opportunity before the end of line, |
| 2372 | + and apply the following rules (in order) to expand until it fits. |
| 2373 | + <ol style="list-style-type:lower-alpha"> |
| 2374 | + <li>Expand space characters up to the maximum value specified by ‘<code class=css>word-spacing</code>’ property, or up to 1/2em.</li> |
| 2375 | + <li>Expand spaces created by ‘<code class=css>text-autospace</code>’ property up to 1/2em.</li> |
| 2376 | + <li>Expand all expansion opportunities as defined above in equal percent of the size of each character.</li> |
| 2377 | + </ol></li> |
| 2378 | + </ol> |
| 2379 | + --> |
| 2380 | + </div> |
2387 | 2381 |
|
2388 | 2382 | <h2 id=spacing><span class=secno>8. </span> Spacing</h2> |
2389 | 2383 |
|
@@ -4815,15 +4809,6 @@ <h3 class=no-num id=normative-ref>Normative references</h3> |
4815 | 4809 | </dd> |
4816 | 4810 | <!----> |
4817 | 4811 |
|
4818 | | - <dt id=JLREQ>[JLREQ] |
4819 | | - |
4820 | | - <dd>Kenzou Onozawa; et al. <a |
4821 | | - href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604"><cite>Requirements |
4822 | | - for Japanese Text Layout.</cite></a> 4 June 2009. W3C Note. URL: <a |
4823 | | - href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604">http://www.w3.org/TR/2009/NOTE-jlreq-20090604</a> |
4824 | | - </dd> |
4825 | | - <!----> |
4826 | | - |
4827 | 4812 | <dt id=RFC2119>[RFC2119] |
4828 | 4813 |
|
4829 | 4814 | <dd>S. Bradner. <a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>Key |
@@ -4899,6 +4884,15 @@ <h3 class=no-num id=informative-ref>Informative references</h3> |
4899 | 4884 | Japanese Standards Association. 2004. JIS X 4051:2004. In Japanese</dd> |
4900 | 4885 | <!----> |
4901 | 4886 |
|
| 4887 | + <dt id=JLREQ>[JLREQ] |
| 4888 | + |
| 4889 | + <dd>Kenzou Onozawa; et al. <a |
| 4890 | + href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604"><cite>Requirements |
| 4891 | + for Japanese Text Layout.</cite></a> 4 June 2009. W3C Note. URL: <a |
| 4892 | + href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604">http://www.w3.org/TR/2009/NOTE-jlreq-20090604</a> |
| 4893 | + </dd> |
| 4894 | + <!----> |
| 4895 | + |
4902 | 4896 | <dt id=ZHMARK>[ZHMARK] |
4903 | 4897 |
|
4904 | 4898 | <dd><cite>标点符号用法 (Punctuation |
|
0 commit comments