Skip to content

Commit 6e9b534

Browse files
committed
Changed justification example from JIS4051 to JLREQ <http://lists.w3.org/Archives/Public/www-style/2010Dec/0046.html>
1 parent 33aa1c1 commit 6e9b534

2 files changed

Lines changed: 86 additions & 81 deletions

File tree

css3-text/Overview.html

Lines changed: 65 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383

8484
<h1>CSS Text Level 3</h1>
8585

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
8787
2010</h2>
8888

8989
<dl>
9090
<dt>This version:
9191

9292
<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
9494
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->
9595

9696

@@ -1913,12 +1913,8 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
19131913
glyphs). If specified alone, the exact justification algorithm is
19141914
UA-defined (as for &lsquo;<code class=css>auto</code>&rsquo;). <span
19151915
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>
19221918
</dl>
19231919

19241920
<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:
20202016
href="#grapheme-cluster">grapheme clusters</a> when at least one of them
20212017
belongs to the affected script group and the spacing that point has not
20222018
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>
20252019

20262020
<dt>cursive
20272021

@@ -2050,8 +2044,8 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
20502044
justification behavior due to typographic tradition. For example, there
20512045
are traditionally no expansion opportunities between consecutive EM DASH
20522046
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
20552049
additional levels of priority to handle expansion opportunities involving
20562050
punctuation.
20572051

@@ -2334,56 +2328,56 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
23342328
above is informative.
23352329

23362330
<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-
&lsquo;<a href="#word-spacing0"><code
2353-
class=css>word-spacing</code></a>&rsquo; 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 &lsquo;<a href="#text-autospace0"><code
2368-
class=css>text-autospace</code></a>&rsquo; 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-
&lsquo;<a href="#word-spacing0"><code
2377-
class=css>word-spacing</code></a>&rsquo; property, or up to 1/2em.
2378-
2379-
<li>Expand spaces created by &lsquo;<a href="#text-autospace0"><code
2380-
class=css>text-autospace</code></a>&rsquo; 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 &lsquo;<a href="#text-justify0"><code
2338+
class=property>text-justify</code></a>&rsquo; property is &lsquo;<code
2339+
class=css>trim inter-ideograph</code>&rsquo;.</p>
2340+
2341+
<p>It produces an effect similar to cases where the computed value of
2342+
&lsquo;<a href="#punctuation-trim0"><code
2343+
class=property>punctuation-trim</code></a>&rsquo; property is
2344+
&lsquo;<code class=css>allow-end</code>&rsquo;. 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 &lsquo;<code class=css>word-spacing</code>&rsquo; 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 &lsquo;<code class=css>text-autospace</code>&rsquo; 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 &lsquo;<code class=css>word-spacing</code>&rsquo; property, or up to 1/2em.</li>
2375+
<li>Expand spaces created by &lsquo;<code class=css>text-autospace</code>&rsquo; 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>
23872381

23882382
<h2 id=spacing><span class=secno>8. </span> Spacing</h2>
23892383

@@ -4815,15 +4809,6 @@ <h3 class=no-num id=normative-ref>Normative references</h3>
48154809
</dd>
48164810
<!---->
48174811

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-
48274812
<dt id=RFC2119>[RFC2119]
48284813

48294814
<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>
48994884
Japanese Standards Association. 2004. JIS X 4051:2004. In Japanese</dd>
49004885
<!---->
49014886

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+
49024896
<dt id=ZHMARK>[ZHMARK]
49034897

49044898
<dd><cite>&#26631;&#28857;&#31526;&#21495;&#29992;&#27861; (Punctuation

css3-text/Overview.src.html

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,11 +1372,7 @@ <h3 id="text-justify">
13721372
algorithm is UA-defined (as for ''auto'').
13731373
<span class="note">
13741374
An example of compression rules is given for Japanese in
1375-
3.8 Line Adjustment in the [[!JLREQ]].</span>
1376-
<p class="issue">The rule a. of 3.8.3 in the current JLREQ may produce
1377-
non-optimal results when the rules are applied to English lines,
1378-
or sometimes English words within Japanese lines.
1379-
There's a discussion currently going on for how to manage this.</p>
1375+
3.8 Line Adjustment in [[JLREQ]].</span>
13801376
</dd>
13811377
</dl>
13821378

@@ -1484,7 +1480,7 @@ <h3 id="text-justify">
14841480
typographic tradition.
14851481
For example, there are traditionally no expansion opportunities
14861482
between consecutive EM DASH U+2014, HORIZONTAL BA U+2015, HORIZONTAL
1487-
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters. [[JIS4051]]
1483+
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters [[JLREQ]].
14881484
The UA may introduce additional levels of priority to handle expansion
14891485
opportunities involving punctuation.</dd>
14901486
<dt>connected</dt>
@@ -1695,15 +1691,29 @@ <h3 id="text-justify">
16951691
<p class="note">The ''auto'' column defined above is informative.</p>
16961692

16971693
<div class="example">
1698-
<p>Japanese is one of the language that prefers compression to expansion on justification.
1699-
JIS X-4051 [[JIS4051]] defines how a text formatter can justify Japanese text.
1694+
<p>Japanese is one of the languages for which compression is preferred to expansion in applying justification.</p>
1695+
<p>3.8 Line Adjustment in [[JLREQ]] gives an example of a set of rules for
1696+
how a text formatter can justify Japanese text.
1697+
It describes rules for cases where the 'text-justify' property is ''trim inter-ideograph''.</p>
1698+
<p>It produces an effect similar to cases where
1699+
the computed value of 'punctuation-trim' property is ''allow-end''.
1700+
If the UA wants to prohibit this behavior,
1701+
rule b. of 3.8.3 should be omitted.</p>
1702+
<p>Note that the rules described in the document specifically target Japanese.
1703+
Therefore they may produce non-optimal results
1704+
when used to justify other languages such as English.
1705+
To make the rules more applicable to other scripts,
1706+
the UA could, for instance,
1707+
omit the rule to compress half-width spaces (rule a. of 3.8.3).</p>
1708+
<!--
1709+
<p>JIS X-4051 [[JIS4051]] defines how a text formatter can justify Japanese text.
17001710
Here is one example of the interpretation of JIS X-4051 with slight modification.</p>
17011711
<ol>
17021712
<li>If no justification is necessary, neither compression nor expansion occur.</li>
17031713
<li>If justification is necessary,
17041714
take the first line break opportunity beyond the end of line
17051715
and apply the following rules (in order) to compress until it fits.
1706-
<ol>
1716+
<ol style="list-style-type:lower-alpha">
17071717
<li>Compress space characters up to the minimum value specified by ''word-spacing'' property, or up to 1/4em.</li>
17081718
<li>Compress <a href="#fullwidth-middle-dot-punctuation">fullwidth middle dot punctuations</a>
17091719
and <a href="#fullwidth-colon-punctuation">fullwidth colon punctuations</a>
@@ -1716,12 +1726,13 @@ <h3 id="text-justify">
17161726
<li>If the compression fails to fit the line,
17171727
take the last line break opportunity before the end of line,
17181728
and apply the following rules (in order) to expand until it fits.
1719-
<ol>
1729+
<ol style="list-style-type:lower-alpha">
17201730
<li>Expand space characters up to the maximum value specified by ''word-spacing'' property, or up to 1/2em.</li>
17211731
<li>Expand spaces created by ''text-autospace'' property up to 1/2em.</li>
17221732
<li>Expand all expansion opportunities as defined above in equal percent of the size of each character.</li>
17231733
</ol></li>
17241734
</ol>
1735+
-->
17251736
</div>
17261737

17271738
<h2 id="spacing">

0 commit comments

Comments
 (0)