You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and between CJK <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>
1730
+
along with secondarily expanding between Southeast Asian <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>.
1731
+
Then, in cases where the <adata-link-type=dfnhref=#content-languagetitle="content language">content language</a> of the paragraph is known,
1732
+
it could choose a more language-tailored justification behavior
1733
+
e.g. following <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-jlreqtitle=biblio-jlreq>[JLREQ]</a> for Japanese,
1734
+
using cursive elongation for Arabic,
1735
+
using <aclass=cssdata-link-type=maybehref=#valuedef-inter-wordtitle=inter-word>inter-word</a> for German,
1736
+
etc.
1737
+
1725
1738
<divclass=figureid=fig-text-justify-cursive>
1726
1739
<p>
1727
1740
<imgalt="Two lines of calligraphic Arabic end together due to a mix of compressed and swash forms." src=text-justify-cursive.pngtitle="Swash forms elongate the first line while a compressed contextual ligature shortens the second, allowing both to end precisely together."></p>
1728
-
<pclass=caption>An example of cursively-justified Arabic text rendered by <ahref=http://www.decotype.com/>Tasmeem</a>.
1741
+
<pclass=caption>An example of cursively-justified Arabic text,
1742
+
rendered by <ahref=http://www.decotype.com/>Tasmeem</a>.
1743
+
Like English, Arabic can be justified by adjusting the spacing between words,
1744
+
but in most styles it can also be justified by calligraphically elongating or compressing the letterforms themselves.
1745
+
In this example, the upper text is extended to fill the line by the use of elongated (kashida) forms and swash forms,
1746
+
while the bottom line is compressed slightly by using a stacked combination for the characters between ت and م.
1747
+
By employing traditional calligraphic techniques,
1748
+
Tasmeem can justify the line while preserving flow and color,
1749
+
providing a very high quality justification effect.
1750
+
However, this is by its nature a very script-specific effect.
<p>Justification <em>must not</em> introduce gaps between <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>
1883
+
<p>Justification <em>must not</em> introduce gaps between the joined <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>
1858
1884
of <adata-link-type=dfnhref=#cursive-scripttitle="cursive scripts">cursive scripts</a> such as Arabic.
1859
1885
If it is able, the UA <em>may</em>
1860
1886
translate space distributed to <adata-link-type=dfnhref=#justification-opportunitytitle="justification opportunities">justification opportunities</a> within a run of such <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>
1861
1887
into some form of cursive elongation for that run.
1862
1888
It otherwise <em>must</em> assume that no <adata-link-type=dfnhref=#justification-opportunitytitle="justification opportunity">justification opportunity</a> exists
1863
-
between any pair of <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a> in <adata-link-type=dfnhref=#cursive-scripttitle="cursive script">cursive script</a>.
1889
+
between any pair of <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a> in <adata-link-type=dfnhref=#cursive-scripttitle="cursive script">cursive script</a>
1890
+
(regardless of whether they join).
1891
+
1892
+
<divclass=example>
1893
+
<p>The following are examples of unacceptable justification:
1894
+
<divclass=figure>
1895
+
<p><imgalt="" src=arabic-stretch-spaced.png>
1896
+
<pclass=caption>Adding gaps between every pair of Arabic letters
1897
+
</div>
1898
+
<divclass=figure>
1899
+
<p><imgalt="" src=arabic-stretch-unjoined.png>
1900
+
<pclass=caption>Adding gaps between every pair of unjoined Arabic letters
1901
+
</div>
1902
+
</div>
1903
+
1904
+
<p>Some font designs allow for the use of the tatweel character for justification.
1905
+
A UA that performs tatweel-based justification must properly handle the rules for its use.
1906
+
Note that correct insertion of tatweel characters depends on context, including
1907
+
the letter-combinations involved, location within the word, and location of the word within the line.
<li>The boundary between a <adata-link-type=dfnhref=#visually-perceived-charactertitle="visually-perceived character">visually-perceived character</a> of any <adata-link-type=dfnhref=#clustered-scriptstitle="clustered scripts">clustered scripts</a> and any other <adata-link-type=dfnhref=#visually-perceived-charactertitle="visually-perceived character">visually-perceived character</a>
1880
1924
</ul>
1881
1925
1882
-
<pclass=example>
1883
-
For example, the UA could use by default a justification method that is a
1884
-
simple universal compromise for all writing systems—such as
and between CJK <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>
1887
-
along with secondarily expanding between Southeast Asian <adata-link-type=dfnhref=#visually-perceived-lettertitle="visually-perceived letters">visually-perceived letters</a>.
1888
-
Then, in cases where the <adata-link-type=dfnhref=#content-languagetitle="content language">content language</a> of the paragraph is known,
1889
-
it could choose a more language-tailored justification behavior
1890
-
e.g. following <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-jlreqtitle=biblio-jlreq>[JLREQ]</a> for Japanese,
1891
-
using cursive elongation for Arabic,
1892
-
using <aclass=cssdata-link-type=maybehref=#valuedef-inter-wordtitle=inter-word>inter-word</a> for German,
1893
-
etc.
1894
-
1895
1926
<p>The guidelines in this level of CSS do not describe a complete
1896
1927
justification algorithm. They are merely a minimum set of requirements
1897
1928
that a complete algorithm should meet. Limiting the set of requirements
0 commit comments