Skip to content

Commit a077749

Browse files
committed
[css-text] Clean up rules for handling of symbols and punctuation for justification
1 parent 349ad72 commit a077749

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

css-text/Overview.bs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,11 +1710,9 @@ Handling Symbols and Punctuation</h4>
17101710

17111711
<p>When determining <i>justification opportunities</i>,
17121712
a <i>typographic character unit</i> from the Unicode Symbols (S*) and Punctuation (P*) classes
1713-
is generally treated the same as a <i>typographic letter unit</i>:
1714-
in the case of ''inter-word'', as a Latin <i>typographic letter unit</i>;
1715-
in the case of ''distribute'', as a Han <i>typographic letter unit</i>;
1716-
and in the case of <a value for=text-justify>auto</a>,
1717-
as a <i>typographic letter unit</i> of the dominant script.
1713+
is generally treated the same as a <i>typographic letter unit</i> of the same script
1714+
(or, if the character's script property is Common,
1715+
then as a <i>typographic letter unit</i> of the dominant script).
17181716

17191717
<p>However, by typographic tradition there may be additional rules
17201718
controlling the justification of symbols and punctuation.
@@ -1724,11 +1722,16 @@ Handling Symbols and Punctuation</h4>
17241722

17251723
<p class="example">
17261724
For example, there are traditionally no <i>justification opportunities</i>
1727-
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
1728-
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters [[JLREQ]]; thus
1729-
a UA might assign these characters to a “never” prioritization level.
1730-
As another example, certain fullwidth punctuation characters are
1731-
considered to contain a <i>justification opportunity</i> in Japanese.
1725+
between consecutive
1726+
U+2014 Em Dash ‘—’,
1727+
U+2015 Horizontal Bar ‘―’,
1728+
U+2026 Horizontal Ellipsis ‘…’,
1729+
or U+2025 Two Dot Leader ‘‥’
1730+
characters [[JLREQ]];
1731+
thus a UA might assign these characters to a “never” prioritization level.
1732+
As another example, certain fullwidth punctuation characters
1733+
(such as U+301A Left White Square Bracket ‘〚’)
1734+
are considered to contain a <i>justification opportunity</i> in Japanese.
17321735
The UA might therefore assign these characters to a higher prioritization
17331736
level than the opportunities between ideographic characters.
17341737

css-text/Overview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,11 +1852,9 @@ <h4 class="heading settled heading" data-level=7.4.2 id=justify-symbols><span cl
18521852

18531853
<p>When determining <a data-link-type=dfn href=#justification-opportunity title="justification opportunities">justification opportunities</a>,
18541854
a <a data-link-type=dfn href=#typographic-character-unit title="typographic character unit">typographic character unit</a> from the Unicode Symbols (S*) and Punctuation (P*) classes
1855-
is generally treated the same as a <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a>:
1856-
in the case of <a class=css data-link-type=maybe href=#valdef-text-justify.inter-word title=inter-word>inter-word</a>, as a Latin <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a>;
1857-
in the case of <a class=css data-link-type=maybe href=#valdef-text-justify.distribute title=distribute>distribute</a>, as a Han <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a>;
1858-
and in the case of <a class=css-code data-link-for=text-justify data-link-type=value href=#valdef-text-justify.auto title=auto>auto</a>,
1859-
as a <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a> of the dominant script.
1855+
is generally treated the same as a <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a> of the same script
1856+
(or, if the character’s script property is Common,
1857+
then as a <a data-link-type=dfn href=#typographic-letter-unit title="typographic letter unit">typographic letter unit</a> of the dominant script).
18601858

18611859
<p>However, by typographic tradition there may be additional rules
18621860
controlling the justification of symbols and punctuation.
@@ -1866,11 +1864,16 @@ <h4 class="heading settled heading" data-level=7.4.2 id=justify-symbols><span cl
18661864

18671865
<p class=example>
18681866
For example, there are traditionally no <a data-link-type=dfn href=#justification-opportunity title="justification opportunities">justification opportunities</a>
1869-
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
1870-
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters <a data-biblio-type=informative data-link-type=biblio href=#biblio-jlreq title=biblio-jlreq>[JLREQ]</a>; thus
1871-
a UA might assign these characters to a “never” prioritization level.
1872-
As another example, certain fullwidth punctuation characters are
1873-
considered to contain a <a data-link-type=dfn href=#justification-opportunity title="justification opportunity">justification opportunity</a> in Japanese.
1867+
between consecutive
1868+
U+2014 Em Dash ‘—’,
1869+
U+2015 Horizontal Bar ‘―’,
1870+
U+2026 Horizontal Ellipsis ‘…’,
1871+
or U+2025 Two Dot Leader ‘‥’
1872+
characters <a data-biblio-type=informative data-link-type=biblio href=#biblio-jlreq title=biblio-jlreq>[JLREQ]</a>;
1873+
thus a UA might assign these characters to a “never” prioritization level.
1874+
As another example, certain fullwidth punctuation characters
1875+
(such as U+301A Left White Square Bracket ‘〚’)
1876+
are considered to contain a <a data-link-type=dfn href=#justification-opportunity title="justification opportunity">justification opportunity</a> in Japanese.
18741877
The UA might therefore assign these characters to a higher prioritization
18751878
level than the opportunities between ideographic characters.
18761879

0 commit comments

Comments
 (0)