@@ -1748,22 +1748,24 @@ Ruby Text Distribution: the 'ruby-align' property</h3>
1748
1748
-->
1749
1749
1750
1750
<div class="example">
1751
- Since a typical implementation will by default define [=justification opportunities=]
1751
+ The [[#default-ua-ruby|default UA style sheet]] applies
1752
+ ''text-justify: ruby'' to [=ruby annotations=] ,
1753
+ defining [=justification opportunities=]
1752
1754
between every adjacent pair of CJK [=characters=]
1753
- but not between adjacent pairs of Latin [=characters=] ,
1754
- the ''space-around'' and ''space-between'' values
1755
- will nevertheless result in narrow characters centered:
1755
+ but not between adjacent pairs of Latin or Bopomofo [=characters=] .
1756
+ Thus, the ''space-around'' and ''space-between'' values
1757
+ will nevertheless result in Latin or Bopomofo characters centered:
1756
1758
<div class="figure">
1757
1759
<img width="145" height="91"
1758
1760
alt="Diagram of glyph layout in auto aligned ruby when halfwidth ruby text is shorter than base"
1759
1761
src="images/ra-c-h.gif" >
1760
1762
<img width="145" height="91"
1761
1763
alt="Diagram of character layout in auto aligned ruby when ruby text is longer than narrow-width base"
1762
1764
src="images/ra-c-rb-h.gif" >
1763
- <p class="caption"> Narrow-width ruby text in ''ruby-align/space-around'' and ''ruby-align/space-between'' ruby distribution are centered
1765
+ <p class="caption"> Non-CJK ruby text in ''ruby-align/space-around'' and ''ruby-align/space-between'' ruby distribution are centered
1764
1766
</div>
1765
1767
1766
- The distribution of space can be further controlled via 'text-justify' . [[CSS-TEXT-3]]
1768
+ The distribution of space can be controlled via 'text-justify' . [[CSS-TEXT-3]]
1767
1769
</div>
1768
1770
1769
1771
Content in [=ruby bases=] and [=ruby annotations=] ,
@@ -2082,8 +2084,9 @@ Appendix A: Sample Style Sheets</h2>
2082
2084
ruby, rb, rt, rbc, rtc { unicode-bidi: isolate; }
2083
2085
2084
2086
rtc, rt {
2085
- font-variant-east-asian: ruby; /* See [[CSS3-FONTS]] */
2086
- text-emphasis: none; /* See [[CSS3-TEXT-DECOR]] */
2087
+ font-variant-east-asian: ruby; /* See [[CSS-FONTS-3]] */
2088
+ text-justify: ruby; /* See [[CSS-TEXT-4]] */
2089
+ text-emphasis: none; /* See [[CSS-TEXT-DECOR-3]] */
2087
2090
white-space: nowrap;
2088
2091
line-height: 1; }
2089
2092
@@ -2155,7 +2158,7 @@ Glossary</h2>
2155
2158
<dl>
2156
2159
<dt id="g-bopomofo"> <dfn noexport>Bopomofo</dfn> or <dfn noexport>Zhuyin Fuhao</dfn> (Chinese: <span lang=zh-Bopo> ㄅㄆㄇㄈ</span> , <span lang=zh-Hant> 注音符號</span> , or <span lang=zh-Hans> 注音符号</span> )
2157
2160
<dd>
2158
- <p> 37 characters and 4 tone markings used as phonetics in Chinese,
2161
+ <p> Characters and tone markings developed for use as phonetics in Chinese,
2159
2162
especially standard Mandarin.
2160
2163
These are often, but not exclusively, used for ruby annotations.
2161
2164
@@ -2182,6 +2185,13 @@ Glossary</h2>
2182
2185
whether the text occurs in ruby annotations or as normal inline content.
2183
2186
Such glyph placement is not a function of CSS ruby layout.
2184
2187
2188
+ Bopomofo [=letters=] belong to the <code> Bopomofo</code> [=Unicode script=]
2189
+ (and are currently mapped in the U+3100–312F and U+31A0–31BF blocks);
2190
+ the [=Bopomofo tone marks=] are
2191
+ U+02C9 (ˉ), U+02CA (ˊ), U+02C7 (ˇ), U+02CB (ˋ), U+02EA (˪), U+02EB (˫), U+02D9 (˙).
2192
+ Collectively these are all considered <dfn export>Bopomofo characters</dfn>
2193
+ for the purpose of CSS.
2194
+
2185
2195
<dt id="g-hanja"> Hanja (Korean: <span lang=ko> 漢字</span> )
2186
2196
<dd>
2187
2197
Subset of the Korean writing system that utilizes ideographic
@@ -2265,6 +2275,9 @@ Changes since the 2 December 2021 WD</h3>
2265
2275
<li> Made the computed-value adjustement of 'writing-mode' on [=inter-character annotations=]
2266
2276
apply to the [=ruby annotation box=] rather than the [=ruby annotation container box=] .
2267
2277
<li> Added <code> zh-Hant</code> to rule applying ''font-size: 30%'' to [=ruby annotations=] in HTML.
2278
+ <li> Added <code> text-justify: ruby</code> to the UA default style sheet.
2279
+ (<a href="https://github.com/w3c/csswg-drafts/issues/771">Issue 771</a>
2280
+ <a href="https://github.com/w3c/csswg-drafts/issues/779">Issue 779</a> )
2268
2281
</ul>
2269
2282
2270
2283
<h3 id="changes-20200429">
0 commit comments