Skip to content

Commit 5c1e1fc

Browse files
committed
1 parent 950bd94 commit 5c1e1fc

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

css-text/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ Terminology</h3>
182182
Note that it is possible for the <i>content language</i> of an element
183183
to be unknown.
184184

185+
<p class="note">
186+
Many typographic effects vary by linguistic context.
187+
In CSS, language-specific typographic tailorings
188+
are only applied when the content language is known.
189+
Authors should tag their content accurately for the best typographic behavior.
190+
185191
<p>Other terminology and concepts used in this specification are defined
186192
in [[!CSS21]] and [[!CSS3-WRITING-MODES]].
187193

@@ -1433,10 +1439,10 @@ Canonical order: N/A
14331439
UAs should, where possible, use a justification algorithm appropriate to the text.
14341440
<p class="example">
14351441
For example, the UA could use by default a justification method that is a
1436-
simple universal compromise for all writing systems,
1437-
such as primarily expanding <i>word separators</i>
1442+
simple universal compromise for all writing systems&mdash;such as
1443+
primarily expanding <i>word separators</i>
14381444
along with secondarily expanding between CJK and Southeast Asian <i>letters</i>.
1439-
Then, in cases where the content language of the paragraph is known,
1445+
Then, in cases where the <i>content language</i> of the paragraph is known,
14401446
it could choose a more language-tailored justification behavior
14411447
e.g. following [[JLREQ]] for Japanese,
14421448
using cursive elongation for Arabic,
@@ -1492,6 +1498,9 @@ Canonical order: N/A
14921498
<p>The exact justification algorithm is UA-dependent;
14931499
however, CSS provides some general guidelines.
14941500

1501+
<p>Since optimal justification is language-sensitive,
1502+
authors should correctly language-tag their content for the best results.
1503+
14951504
<h4 id="expanding-text">
14961505
Expanding and Compressing Text</h4>
14971506

css-text/Overview.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ <h3 class="heading settled heading" data-level=1.3 id=terms><span class=secno>1.
348348
Note that it is possible for the <a data-link-type=dfn href=#content-language title="content language">content language</a> of an element
349349
to be unknown.
350350

351+
<p class=note>
352+
Many typographic effects vary by linguistic context.
353+
In CSS, language-specific typographic tailorings
354+
are only applied when the content language is known.
355+
Authors should tag their content accurately for the best typographic behavior.
356+
351357
<p>Other terminology and concepts used in this specification are defined
352358
in <a data-biblio-type=normative data-link-type=biblio href=#css21 title=css21>[CSS21]</a> and <a data-biblio-type=normative data-link-type=biblio href=#css3-writing-modes title=css3-writing-modes>[CSS3-WRITING-MODES]</a>.
353359

@@ -1576,10 +1582,10 @@ <h3 class="heading settled heading" data-level=7.3 id=text-justify-property><spa
15761582
UAs should, where possible, use a justification algorithm appropriate to the text.
15771583
<p class=example>
15781584
For example, the UA could use by default a justification method that is a
1579-
simple universal compromise for all writing systems,
1580-
such as primarily expanding <a data-link-type=dfn href=#word-separator title="word separators">word separators</a>
1585+
simple universal compromise for all writing systems—such as
1586+
primarily expanding <a data-link-type=dfn href=#word-separator title="word separators">word separators</a>
15811587
along with secondarily expanding between CJK and Southeast Asian <a data-link-type=dfn href=#letter0 title=letters>letters</a>.
1582-
Then, in cases where the content language of the paragraph is known,
1588+
Then, in cases where the <a data-link-type=dfn href=#content-language title="content language">content language</a> of the paragraph is known,
15831589
it could choose a more language-tailored justification behavior
15841590
e.g. following <a data-biblio-type=informative data-link-type=biblio href=#jlreq title=jlreq>[JLREQ]</a> for Japanese,
15851591
using cursive elongation for Arabic,
@@ -1630,6 +1636,9 @@ <h3 class="heading settled heading" data-level=7.3 id=text-justify-property><spa
16301636
<p>The exact justification algorithm is UA-dependent;
16311637
however, CSS provides some general guidelines.
16321638

1639+
<p>Since optimal justification is language-sensitive,
1640+
authors should correctly language-tag their content for the best results.
1641+
16331642
<h4 class="heading settled heading" data-level=7.3.1 id=expanding-text><span class=secno>7.3.1 </span><span class=content>
16341643
Expanding and Compressing Text</span><a class=self-link href=#expanding-text></a></h4>
16351644

0 commit comments

Comments
 (0)