@@ -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 "
0 commit comments