Skip to content

Commit 9e909db

Browse files
committed
[css-text] Clarify that suppressed letter-spacing among Arabic chars is effectively zero letter-spacing (hence ligatures are applied).
--HG-- extra : rebase_source : 79c273d8fec6beb1de87a4cda13d533888168e93
1 parent 3b50d84 commit 9e909db

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

css-text/Overview.bs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,31 +1985,33 @@ Word Spacing: the 'word-spacing' property</h3>
19851985
<p class="ls-ex">a&emsp;b</span>&emsp;<span class="color-box">c</span>&emsp;<span class="color-box">&#x5d0;</span>&emsp;&#x5d1;&emsp;&#x5d2;</p>
19861986
</div>
19871987

1988-
<p>Letter-spacing ignores invisible zero-width formatting characters
1988+
<p>Letter spacing ignores invisible zero-width formatting characters
19891989
(such as those from the Unicode Cf category).
19901990
Spacing must be added as if those characters did not exist in the document.
19911991

19921992
<p class="example">For example, 'letter-spacing' applied to
19931993
<code>A&amp;#x200B;B</code> is identical to <code>AB</code>,
19941994
regardless of where any element boundaries might fall.
19951995

1996-
<p>When the effective letter-spacing between two characters is not zero
1996+
<p>When the effective spacing between two characters is not zero
19971997
(due to either <a href="#text-justify">justification</a>
1998-
or non-zero computed 'letter-spacing'),
1998+
or a non-zero value of 'letter-spacing'),
19991999
user agents should not apply optional ligatures.</p>
20002000

20012001
<p class="example">
20022002
For example, if the word “filial” is letter-spaced,
20032003
an “fi” ligature should not be used
20042004
as it will prevent even spacing of the text.
20052005

2006-
<p>If it is able, the UA <em>may</em> apply letter-spacing to <i>cursive scripts</i>
2007-
by translating the total spacing distributed to a run of such letters
2006+
<p>If it is able, the UA <em>may</em> apply letter spacing to <i>cursive scripts</i>
2007+
by translating the total extra space to be distributed to a run of such letters
20082008
into some form of cursive elongation for that run.
20092009
Otherwise, if the UA cannot expand text from a <i>cursive script</i>
20102010
without breaking its cursive connections,
20112011
it <em>must not</em> apply spacing
20122012
between any pair of that script's <i>visually-perceived characters</i> at all.
2013+
(Both cases will result in an effective spacing of zero between such letters,
2014+
however the former will preserve the sense of stretching out the text.)
20132015

20142016
<h2 id="edge-effects">
20152017
Edge Effects</h2>

css-text/Overview.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,31 +2122,33 @@ <h3 class="heading settled heading" data-level=8.2 id=letter-spacing-property><s
21222122
<p class=ls-ex>a b <span class=color-box>c</span><span class=color-box>א</span> ב ג</p>
21232123
</div>
21242124

2125-
<p>Letter-spacing ignores invisible zero-width formatting characters
2125+
<p>Letter spacing ignores invisible zero-width formatting characters
21262126
(such as those from the Unicode Cf category).
21272127
Spacing must be added as if those characters did not exist in the document.
21282128

21292129
<p class=example>For example, <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a> applied to
21302130
<code>A&amp;#x200B;B</code> is identical to <code>AB</code>,
21312131
regardless of where any element boundaries might fall.
21322132

2133-
<p>When the effective letter-spacing between two characters is not zero
2133+
<p>When the effective spacing between two characters is not zero
21342134
(due to either <a href=#text-justify>justification</a>
2135-
or non-zero computed <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a>),
2135+
or a non-zero value of <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a>),
21362136
user agents should not apply optional ligatures.</p>
21372137

21382138
<p class=example>
21392139
For example, if the word “filial” is letter-spaced,
21402140
an “fi” ligature should not be used
21412141
as it will prevent even spacing of the text.
21422142

2143-
<p>If it is able, the UA <em>may</em> apply letter-spacing to <a data-link-type=dfn href=#cursive-script title="cursive scripts">cursive scripts</a>
2144-
by translating the total spacing distributed to a run of such letters
2143+
<p>If it is able, the UA <em>may</em> apply letter spacing to <a data-link-type=dfn href=#cursive-script title="cursive scripts">cursive scripts</a>
2144+
by translating the total extra space to be distributed to a run of such letters
21452145
into some form of cursive elongation for that run.
21462146
Otherwise, if the UA cannot expand text from a <a data-link-type=dfn href=#cursive-script title="cursive script">cursive script</a>
21472147
without breaking its cursive connections,
21482148
it <em>must not</em> apply spacing
21492149
between any pair of that script’s <a data-link-type=dfn href=#visually-perceived-character title="visually-perceived characters">visually-perceived characters</a> at all.
2150+
(Both cases will result in an effective spacing of zero between such letters,
2151+
however the former will preserve the sense of stretching out the text.)
21502152

21512153
<h2 class="heading settled heading" data-level=9 id=edge-effects><span class=secno>9 </span><span class=content>
21522154
Edge Effects</span><a class=self-link href=#edge-effects></a></h2>

0 commit comments

Comments
 (0)