Skip to content

Commit 9d650df

Browse files
committed
More clarifications to text-justify
1 parent 6ce9209 commit 9d650df

2 files changed

Lines changed: 46 additions & 39 deletions

File tree

css3-text/Overview.html

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484

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

87-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 14 July 2011</h2>
87+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 July 2011</h2>
8888

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

9292
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
93-
2011/06/29 05:41:07 $ (CVS $Revision$)</a> <!--
94-
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110714/">http://www.w3.org/TR/2011/WD-css3-text-20110714/</a></dd>
93+
2011/07/14 22:57:51 $ (CVS $Revision$)</a> <!--
94+
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110720/">http://www.w3.org/TR/2011/WD-css3-text-20110720/</a></dd>
9595
-->
9696

9797

@@ -2865,25 +2865,25 @@ <h3 id=text-justify><span class=secno>8.3. </span> Justification Method:
28652865
<dt><dfn id=inter-ideograph
28662866
title="text-justify:inter-ideographic"><code>inter-ideograph</code></dfn>
28672867

2868-
<dd>Justification primarily changes spacing at word separators and at
2869-
grapheme cluster boundaries in scripts that use no word spaces. This
2868+
<dd>Justification primarily changes spacing at word separators and between
2869+
grapheme clusters in <a href="#block-scripts">block scripts</a>. This
28702870
value is typically used for <abbr
28712871
title="Chinese/Japanese/Korean">CJK</abbr> languages.
28722872

28732873
<dt><dfn id=inter-cluster
28742874
title="text-justify:inter-cluster"><code>inter-cluster</code></dfn>
28752875

2876-
<dd>Justification primarily changes spacing at word separators and at
2877-
grapheme cluster boundaries in <a href="#clustered-scripts">clustered
2878-
scripts</a>. This value is typically used for Southeast Asian scripts
2879-
such as Thai.
2876+
<dd>Justification primarily changes spacing at word separators and between
2877+
grapheme clusters in <a href="#clustered-scripts">clustered scripts</a>.
2878+
This value is typically used for Southeast Asian scripts such as Thai.
28802879

28812880
<dt><dfn id=distribute
28822881
title="text-justify:distribute"><code>distribute</code></dfn>
28832882

2884-
<dd>Justification primarily changes spacing both at word separators and at
2885-
grapheme cluster boundaries in all scripts except those in the connected
2886-
and cursive categories. This value is sometimes used in e.g. Japanese.
2883+
<dd>Justification primarily changes spacing both at word separators and
2884+
between grapheme clusters in all scripts equally (except those in the
2885+
connected and cursive categories). This value is sometimes used in e.g.
2886+
Japanese.
28872887

28882888
<dt><a name=kashida-prop></a><a name=text-kashida-space></a> <dfn
28892889
id=kashida title="text-justify:kashida"><code>kashida</code></dfn>
@@ -2892,7 +2892,7 @@ <h3 id=text-justify><span class=secno>8.3. </span> Justification Method:
28922892
scripts</a> through the use of kashida or other calligraphic elongation.
28932893
This value is <em>optional</em> for conformance to CSS3 Text. (UAs that
28942894
do not support cursive elongation must <a
2895-
href="http://www.w3.org/TR/css-beijing/#partial">treat the value as
2895+
href="http://www.w3.org/TR/css-2010/#partial">treat the value as
28962896
invalid</a>.)
28972897
</dl>
28982898

@@ -2938,8 +2938,9 @@ <h3 id=text-justify><span class=secno>8.3. </span> Justification Method:
29382938
href="#text-justify0"><code class=property>text-justify</code></a>&rsquo;
29392939
are given in the table below. Since justification behavior varies by
29402940
writing system, expansion opportunities are organized by <a
2941-
href="#script-groups">script categories</a>. Word separators (spaces) and
2942-
punctuation are treated specially.
2941+
href="#script-groups">script categories</a>. All scripts in the same
2942+
priority level must be treated exactly the same. Word separators (spaces)
2943+
and punctuation may be treated specially, see below.
29432944

29442945
<table class=data>
29452946
<caption>Prioritization of Expansion Points</caption>
@@ -3090,15 +3091,18 @@ <h3 id=text-justify><span class=secno>8.3. </span> Justification Method:
30903091
href="#text-spacing"><code class=property>text-spacing</code></a>&rsquo;
30913092
needs more review</span>
30923093

3093-
<p>In general justification priority of points in the spaces and
3094-
punctuation categories is as defined above; however there may be
3095-
additional rules controlling their justification behavior due to
3096-
typographic tradition. For example, there are traditionally no expansion
3097-
opportunities between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015,
3098-
HORIZONTAL ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters <a
3099-
href="#JLREQ" rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>. The UA may
3100-
introduce additional levels of prioritization to handle expansion
3101-
opportunities involving word separators and punctuation.
3094+
<p>The justification priority of points in the spaces and punctuation
3095+
categories is roughly defined above: there may be additional rules
3096+
controlling their justification behavior due to typographic tradition. The
3097+
UA may introduce additional levels of prioritization to handle expansion
3098+
opportunities involving word separators and punctuation. For example,
3099+
there are traditionally no expansion opportunities between consecutive EM
3100+
DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL ELLIPSIS U+2026, or TWO DOT
3101+
LEADER U+2025 characters <a href="#JLREQ"
3102+
rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>. As another example, in
3103+
Japanese &lsquo;<code class=css>inter-ideograph</code>&rsquo;
3104+
justification (which treats CJK characters at a higher priority than Latin
3105+
characters), word spaces have a higher priority than inter-CJK spacing.
31023106

31033107
<p>For <i>cursive</i> expansion, words may be expanded through kashida
31043108
elongation or other cursive expansion processes. Kashida may be applied in

css3-text/Overview.src.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,18 +2039,18 @@ <h3 id="text-justify">
20392039
spaces, like English or (sometimes) Korean.</dd>
20402040
<dt><dfn title="text-justify:inter-ideographic"><code>inter-ideograph</code></dfn></dt>
20412041
<dd>Justification primarily changes spacing at word separators and
2042-
at grapheme cluster boundaries in scripts that use no word spaces.
2042+
between grapheme clusters in <a href="#block-scripts">block scripts</a>.
20432043
This value is typically used for <abbr title="Chinese/Japanese/Korean">CJK</abbr>
20442044
languages.</dd>
20452045
<dt><dfn title="text-justify:inter-cluster"><code>inter-cluster</code></dfn></dt>
2046-
<dd>Justification primarily changes spacing at word separators and at
2047-
grapheme cluster boundaries in <a href="#clustered-scripts">clustered
2046+
<dd>Justification primarily changes spacing at word separators and
2047+
between grapheme clusters in <a href="#clustered-scripts">clustered
20482048
scripts</a>.
20492049
This value is typically used for Southeast Asian scripts such as Thai.</dd>
20502050
<dt><dfn title="text-justify:distribute"><code>distribute</code></dfn></dt>
2051-
<dd>Justification primarily changes spacing both at word separators
2052-
and at grapheme cluster boundaries in all scripts except those in
2053-
the connected and cursive categories.
2051+
<dd>Justification primarily changes spacing both at word
2052+
separators and between grapheme clusters in all scripts equally
2053+
(except those in the connected and cursive categories).
20542054
This value is sometimes used in e.g. Japanese.</dd>
20552055
<dt><a name="kashida-prop"></a><a name="text-kashida-space"></a>
20562056
<dfn title="text-justify:kashida"><code>kashida</code></dfn></dt>
@@ -2059,7 +2059,7 @@ <h3 id="text-justify">
20592059
kashida or other calligraphic elongation.
20602060
This value is <em>optional</em> for conformance to CSS3 Text.
20612061
(UAs that do not support cursive elongation must
2062-
<a href="http://www.w3.org/TR/css-beijing/#partial">treat the value
2062+
<a href="http://www.w3.org/TR/css-2010/#partial">treat the value
20632063
as invalid</a>.)
20642064
</dd>
20652065
</dl>
@@ -2097,8 +2097,9 @@ <h3 id="text-justify">
20972097
<p>The expansion opportunity priorities for values of 'text-justify'
20982098
are given in the table below. Since justification behavior
20992099
varies by writing system, expansion opportunities are organized by
2100-
<a href="#script-groups">script categories</a>. Word separators
2101-
(spaces) and punctuation are treated specially.
2100+
<a href="#script-groups">script categories</a>. All scripts in the
2101+
same priority level must be treated exactly the same. Word separators
2102+
(spaces) and punctuation may be treated specially, see below.
21022103

21032104
<table class="data">
21042105
<caption>Prioritization of Expansion Points</caption>
@@ -2203,15 +2204,17 @@ <h3 id="text-justify">
22032204
at enabled <a href="#text-autospace">autospace</a> points.
22042205
<span class="issue">the relationship of expansion opportunity
22052206
and 'text-spacing' needs more review</span>
2206-
<p>In general justification priority of points in the spaces and punctuation
2207-
categories is as defined above; however there may be
2208-
additional rules controlling their justification behavior due to
2209-
typographic tradition.
2207+
<p>The justification priority of points in the spaces and punctuation
2208+
categories is roughly defined above: there may be additional rules
2209+
controlling their justification behavior due to typographic tradition.
2210+
The UA may introduce additional levels of prioritization to handle
2211+
expansion opportunities involving word separators and punctuation.
22102212
For example, there are traditionally no expansion opportunities
22112213
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
22122214
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters [[JLREQ]].
2213-
The UA may introduce additional levels of prioritization to handle
2214-
expansion opportunities involving word separators and punctuation.</p>
2215+
As another example, in Japanese ''inter-ideograph'' justification
2216+
(which treats CJK characters at a higher priority than Latin characters),
2217+
word spaces have a higher priority than inter-CJK spacing.
22152218

22162219
<p>For <i>cursive</i> expansion,
22172220
words may be expanded through kashida elongation or other cursive

0 commit comments

Comments
 (0)