Skip to content

Commit 4d4fe78

Browse files
committed
[css-text] I18N-ISSUE-325: expansion opportunity -> justification opportunity
1 parent 5571bdc commit 4d4fe78

2 files changed

Lines changed: 62 additions & 55 deletions

File tree

css-text/Overview.html

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ <h3 id=text-align-property><span class=secno>7.1. </span> Text Alignment:
20342034
class=property>text-justify</code></a>’.) If an element's white space is
20352035
not <a href="#collapse">collapsible</a>, then the UA is not required to
20362036
adjust its text for the purpose of justification and may instead treat the
2037-
text as having no <a href="#expansion-opportunity"><i>expansion
2037+
text as having no <a href="#justification-opportunity"><i>justification
20382038
opportunities</i></a>. If the UA chooses to adjust the text, then it must
20392039
ensure that <a href="#tab-stops"><i>tab stops</i></a> continue to line up
20402040
as required by the <a href="#white-space-rules">white space processing
@@ -2234,8 +2234,9 @@ <h3 id=text-justify-property><span class=secno>7.3. </span> Justification
22342234
<dt><dfn id=none1 title="none!!text-justify"><code
22352235
class=css>none</code></dfn>
22362236

2237-
<dd>Justification is disabled: there are no expansion opportunities within
2238-
the text.
2237+
<dd>Justification is disabled: there are no <a
2238+
href="#justification-opportunity"><i>justification opportunities</i></a>
2239+
within the text.
22392240
<p class=note>This value is intended for use in user stylesheets to
22402241
improve readability or for accessibility purposes.
22412242

@@ -2287,9 +2288,10 @@ <h4 id=expanding-text><span class=secno>7.3.1. </span> Expanding and
22872288
negative space, putting more content on the line than would otherwise fit
22882289
under normal spacing conditions.
22892290

2290-
<p>An <dfn id=expansion-opportunity>expansion opportunity</dfn> is a point
2291-
where the justification algorithm may alter spacing within the text. An
2292-
expansion opportunity can be provided by a single <a
2291+
<p>A <span id=expansion-opportunity><dfn
2292+
id=justification-opportunity>justification opportunity</dfn></span> is a
2293+
point where the justification algorithm may alter spacing within the text.
2294+
A justification opportunity can be provided by a single <a
22932295
href="#character"><i>character</i></a> (such as a <a
22942296
href="#word-separator"><i>word separator</i></a>), or by the juxtaposition
22952297
of two <a href="#character"><i>characters</i></a>. Space distributed by
@@ -2298,35 +2300,38 @@ <h4 id=expanding-text><span class=secno>7.3.1. </span> Expanding and
22982300
or ‘<a href="#word-spacing"><code
22992301
class=property>word-spacing</code></a>’ properties. However, when space
23002302
is distributed to a <a href="#word-separator"><i>word separator</i></a> <a
2301-
href="#expansion-opportunity"><i>expansion opportunity</i></a>, it is
2302-
applied under the same rules as for ‘<a href="#word-spacing"><code
2303+
href="#justification-opportunity"><i>justification opportunity</i></a>, it
2304+
is applied under the same rules as for ‘<a href="#word-spacing"><code
23032305
class=property>word-spacing</code></a>’. Similarly, when space is
2304-
distributed an <a href="#expansion-opportunity"><i>expansion
2306+
distributed an <a href="#justification-opportunity"><i>justification
23052307
opportunity</i></a> between two <a
23062308
href="#character"><i>characters</i></a>, it is applied under the same
23072309
rules as for ‘<a href="#letter-spacing"><code
23082310
class=property>letter-spacing</code></a>’.
23092311

23102312
<p>A justification algorithm may divide <a
2311-
href="#expansion-opportunity"><i>expansion opportunities</i></a> into
2312-
different priority levels. All <a
2313-
href="#expansion-opportunity"><i>expansion opportunities</i></a> within a
2314-
given level are expanded or compressed at the same priority, regardless of
2315-
which <a href="#character"><i>characters</i></a> created that opportunity.
2316-
For example, if <a href="#expansion-opportunity"><i>expansion
2317-
opportunities</i></a> between two Han characters and between two Latin <a
2313+
href="#justification-opportunity"><i>justification opportunities</i></a>
2314+
into different priority levels. All <a
2315+
href="#justification-opportunity"><i>justification opportunities</i></a>
2316+
within a given level are expanded or compressed at the same priority,
2317+
regardless of which <a href="#character"><i>characters</i></a> created
2318+
that opportunity. For example, if <a
2319+
href="#justification-opportunity"><i>justification opportunities</i></a>
2320+
between two Han characters and between two Latin <a
23182321
href="#letter0"><i>letters</i></a> are defined to be at the same level (as
23192322
they are in the ‘<code class=css>distribute</code>’ justification
23202323
style), they are not treated differently because they originate from
23212324
different <a href="#character"><i>characters</i></a>. It is not defined in
23222325
this level whether or how other factors (such as font size,
23232326
letter-spacing, glyph shape, position within the line, etc.) may influence
2324-
the distribution of space to expansion opportunities within the line.
2327+
the distribution of space to <a
2328+
href="#justification-opportunity"><i>justification opportunities</i></a>
2329+
within the line.
23252330

23262331
<h4 id=justify-symbols><span class=secno>7.3.2. </span> Handling Symbols
23272332
and Punctuation</h4>
23282333

2329-
<p>When determining <a href="#expansion-opportunity"><i>expansion
2334+
<p>When determining <a href="#justification-opportunity"><i>justification
23302335
opportunities</i></a>, a character from the Unicode Symbols (S*) and
23312336
Punctuation (P*) classes are generally treated the same as a <a
23322337
href="#letter0"><i>letter</i></a>: in the case of ‘<code
@@ -2340,17 +2345,18 @@ <h4 id=justify-symbols><span class=secno>7.3.2. </span> Handling Symbols
23402345
<p>However, by typographic tradition there may be additional rules
23412346
controlling the justification of symbols and punctuation. Therefore, the
23422347
UA may reassign specific characters or introduce additional levels of
2343-
prioritization to handle <a href="#expansion-opportunity"><i>expansion
2344-
opportunities</i></a> involving symbols and punctuation.
2348+
prioritization to handle <a
2349+
href="#justification-opportunity"><i>justification opportunities</i></a>
2350+
involving symbols and punctuation.
23452351

23462352
<p class=example> For example, there are traditionally no <a
2347-
href="#expansion-opportunity"><i>expansion opportunities</i></a> between
2348-
consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL ELLIPSIS
2349-
U+2026, or TWO DOT LEADER U+2025 characters <a href="#ref-JLREQ"
2353+
href="#justification-opportunity"><i>justification opportunities</i></a>
2354+
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
2355+
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters <a href="#ref-JLREQ"
23502356
rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>; thus a UA might assign these
23512357
characters to a “never” prioritization level. As another example,
2352-
certain fullwidth punctuation characters are considered to contain an <a
2353-
href="#expansion-opportunity"><i>expansion opportunity</i></a> in
2358+
certain fullwidth punctuation characters are considered to contain a <a
2359+
href="#justification-opportunity"><i>justification opportunity</i></a> in
23542360
Japanese. The UA might therefore assign these characters to a higher
23552361
prioritization level than the opportunities between ideographic
23562362
characters.
@@ -2374,12 +2380,13 @@ <h4 id=justify-cursive><span class=secno>7.3.4. </span> Cursive Scripts</h4>
23742380
href="#letter0"><i>letters</i></a> of <a
23752381
href="#cursive-scripts"><i>cursive scripts</i></a> such as Arabic. If it
23762382
is able, the UA <em>may</em> translate space distributed to <a
2377-
href="#expansion-opportunity"><i>expansion opportunities</i></a> within a
2378-
run of such <a href="#letter0"><i>letters</i></a> into some form of
2379-
cursive elongation for that run. It otherwise <em>must</em> assume that no
2380-
<a href="#expansion-opportunity"><i>expansion opportunity</i></a> exists
2381-
between any pair of <a href="#cursive-scripts"><i>cursive script</i></a>
2382-
<a href="#letter0"><i>letters</i></a>.
2383+
href="#justification-opportunity"><i>justification opportunities</i></a>
2384+
within a run of such <a href="#letter0"><i>letters</i></a> into some form
2385+
of cursive elongation for that run. It otherwise <em>must</em> assume that
2386+
no <a href="#justification-opportunity"><i>justification
2387+
opportunity</i></a> exists between any pair of <a
2388+
href="#cursive-scripts"><i>cursive script</i></a> <a
2389+
href="#letter0"><i>letters</i></a>.
23832390

23842391
<h4 id=justify-algos><span class=secno>7.3.5. </span> Possible Algorithms</h4>
23852392

@@ -2398,8 +2405,8 @@ <h4 id=justify-algos><span class=secno>7.3.5. </span> Possible Algorithms</h4>
23982405

23992406
<p>A more sophisticated but harder-to-implement justification algorithm
24002407
might use a Knuth/Plass method where <a
2401-
href="#expansion-opportunity"><i>expansion opportunities</i></a> and
2402-
limits were assigned weights and assessed with other line breaking
2408+
href="#justification-opportunity"><i>justification opportunities</i></a>
2409+
and limits were assigned weights and assessed with other line breaking
24032410
considerations. This algorithm could follow the guidelines by giving more
24042411
weight to <a href="#word-separator"><i>word separators</i></a> than
24052412
letter spacing.
@@ -3355,7 +3362,7 @@ <h2 class=no-num id=script-groups> Appendix C: Cursive Scripts</h2>
33553362

33563363
<p>The following scripts in Unicode 6 are considered to be <dfn
33573364
id=cursive-scripts title="cursive script">cursive scripts</dfn>, and do
3358-
not admit <a href="#expansion-opportunity"><i>expansion
3365+
not admit <a href="#justification-opportunity"><i>justification
33593366
opportunities</i></a> between their letters: Arabic, Mandaic, Mongolian,
33603367
N'Ko, Phags Pa, Syriac
33613368

@@ -3900,9 +3907,6 @@ <h2 class=no-num id=index> Index</h2>
39003907
title="section 7.1."><strong>7.1.</strong></a>
39013908
</ul>
39023909

3903-
<li>expansion opportunity, <a href="#expansion-opportunity"
3904-
title="section 7.3.1."><strong>7.3.1.</strong></a>
3905-
39063910
<li>first
39073911
<ul>
39083912
<li>hanging-punctuation, <a href="#first"
@@ -3956,6 +3960,9 @@ <h2 class=no-num id=index> Index</h2>
39563960
title="section 7.3."><strong>7.3.</strong></a>
39573961
</ul>
39583962

3963+
<li>justification opportunity, <a href="#justification-opportunity"
3964+
title="section 7.3.1."><strong>7.3.1.</strong></a>
3965+
39593966
<li>justify
39603967
<ul>
39613968
<li>text-align, <a href="#justify"

css-text/Overview.src.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ <h3 id="text-align-property">
14331433
by <a href="#text-justify">adjusting</a> their text. (See 'text-justify'.)
14341434
If an element's white space is not <a href="#collapse">collapsible</a>,
14351435
then the UA is not required to adjust its text for the purpose of justification
1436-
and may instead treat the text as having no <i>expansion opportunities</i>.
1436+
and may instead treat the text as having no <i>justification opportunities</i>.
14371437
If the UA chooses to adjust the text, then it must ensure
14381438
that <i>tab stops</i> continue to line up as required by the
14391439
<a href="#white-space-rules">white space processing rules</a>.
@@ -1588,7 +1588,7 @@ <h3 id="text-justify-property">
15881588
</div>
15891589

15901590
<dt><dfn title="none!!text-justify">''none''</dfn></dt>
1591-
<dd>Justification is disabled: there are no expansion opportunities within the text.
1591+
<dd>Justification is disabled: there are no <i>justification opportunities</i> within the text.
15921592
<p class="note">This value is intended for use in user stylesheets
15931593
to improve readability or for accessibility purposes.
15941594

@@ -1629,35 +1629,35 @@ <h4 id="expanding-text">
16291629
The user agent may alternatively distribute negative space,
16301630
putting more content on the line than would otherwise fit under normal spacing conditions.
16311631

1632-
<p>An <dfn>expansion opportunity</dfn> is
1632+
<p>A <span id="expansion-opportunity"><dfn>justification opportunity</dfn></span> is
16331633
a point where the justification algorithm may alter spacing within the text.
1634-
An expansion opportunity can be provided by a single <i>character</i>
1634+
A justification opportunity can be provided by a single <i>character</i>
16351635
(such as a <i>word separator</i>),
16361636
or by the juxtaposition of two <i>characters</i>.
16371637
Space distributed by justification is <em>in addition to</em>
16381638
the spacing defined by the 'letter-spacing' or 'word-spacing' properties.
1639-
However, when space is distributed to a <i>word separator</i> <i>expansion opportunity</i>,
1639+
However, when space is distributed to a <i>word separator</i> <i>justification opportunity</i>,
16401640
it is applied under the same rules as for 'word-spacing'.
1641-
Similarly, when space is distributed an <i>expansion opportunity</i> between two <i>characters</i>,
1641+
Similarly, when space is distributed an <i>justification opportunity</i> between two <i>characters</i>,
16421642
it is applied under the same rules as for 'letter-spacing'.
16431643

1644-
<p>A justification algorithm may divide <i>expansion opportunities</i> into different priority levels.
1645-
All <i>expansion opportunities</i> within a given level
1644+
<p>A justification algorithm may divide <i>justification opportunities</i> into different priority levels.
1645+
All <i>justification opportunities</i> within a given level
16461646
are expanded or compressed at the same priority,
16471647
regardless of which <i>characters</i> created that opportunity.
1648-
For example, if <i>expansion opportunities</i> between two Han characters
1648+
For example, if <i>justification opportunities</i> between two Han characters
16491649
and between two Latin <i>letters</i> are defined to be at the same level
16501650
(as they are in the ''distribute'' justification style),
16511651
they are not treated differently because they originate from different <i>characters</i>.
16521652
It is not defined in this level
16531653
whether or how other factors
16541654
(such as font size, letter-spacing, glyph shape, position within the line, etc.)
1655-
may influence the distribution of space to expansion opportunities within the line.
1655+
may influence the distribution of space to <i>justification opportunities</i> within the line.
16561656

16571657
<h4 id="justify-symbols">
16581658
Handling Symbols and Punctuation</h4>
16591659

1660-
<p>When determining <i>expansion opportunities</i>,
1660+
<p>When determining <i>justification opportunities</i>,
16611661
a character from the Unicode Symbols (S*) and Punctuation (P*) classes
16621662
are generally treated the same as a <i>letter</i>:
16631663
in the case of ''inter-word'', as a Latin <i>letter</i>;
@@ -1668,15 +1668,15 @@ <h4 id="justify-symbols">
16681668
controlling the justification of symbols and punctuation.
16691669
Therefore, the UA may reassign specific characters
16701670
or introduce additional levels of prioritization
1671-
to handle <i>expansion opportunities</i> involving symbols and punctuation.
1671+
to handle <i>justification opportunities</i> involving symbols and punctuation.
16721672

16731673
<p class="example">
1674-
For example, there are traditionally no <i>expansion opportunities</i>
1674+
For example, there are traditionally no <i>justification opportunities</i>
16751675
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
16761676
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters [[JLREQ]]; thus
16771677
a UA might assign these characters to a “never” prioritization level.
16781678
As another example, certain fullwidth punctuation characters are
1679-
considered to contain an <i>expansion opportunity</i> in Japanese.
1679+
considered to contain a <i>justification opportunity</i> in Japanese.
16801680
The UA might therefore assign these characters to a higher prioritization
16811681
level than the opportunities between ideographic characters.
16821682

@@ -1695,9 +1695,9 @@ <h4 id="justify-cursive">
16951695
<p>Justification <em>must not</em> introduce gaps between <i>letters</i>
16961696
of <i>cursive scripts</i> such as Arabic.
16971697
If it is able, the UA <em>may</em>
1698-
translate space distributed to <i>expansion opportunities</i> within a run of such <i>letters</i>
1698+
translate space distributed to <i>justification opportunities</i> within a run of such <i>letters</i>
16991699
into some form of cursive elongation for that run.
1700-
It otherwise <em>must</em> assume that no <i>expansion opportunity</i> exists
1700+
It otherwise <em>must</em> assume that no <i>justification opportunity</i> exists
17011701
between any pair of <i>cursive script</i> <i>letters</i>.
17021702

17031703
<h4 id="justify-algos">
@@ -1719,7 +1719,7 @@ <h4 id="justify-algos">
17191719

17201720
<p>A more sophisticated but harder-to-implement justification algorithm
17211721
might use a Knuth/Plass method
1722-
where <i>expansion opportunities</i> and limits were assigned weights
1722+
where <i>justification opportunities</i> and limits were assigned weights
17231723
and assessed with other line breaking considerations.
17241724
This algorithm could follow the guidelines by giving more weight
17251725
to <i>word separators</i> than letter spacing.
@@ -2407,7 +2407,7 @@ <h2 class="no-num" id="script-groups">
24072407
<p><em>This appendix is normative.</em></p>
24082408

24092409
<p>The following scripts in Unicode 6 are considered to be <dfn title="cursive script">cursive scripts</dfn>,
2410-
and do not admit <i>expansion opportunities</i> between their letters:
2410+
and do not admit <i>justification opportunities</i> between their letters:
24112411
Arabic,
24122412
Mandaic,
24132413
Mongolian,

0 commit comments

Comments
 (0)