Skip to content

Commit 138dede

Browse files
committed
[css-ruby-1] Split narrow-cell alignment example so that it more clearly applies to both space-around and space-between. #770
1 parent f668724 commit 138dede

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

css-ruby-1/Overview.bs

+29-25
Original file line numberDiff line numberDiff line change
@@ -1182,37 +1182,41 @@ Ruby Text Distribution: the 'ruby-align' property</h3>
11821182
As for ''ruby-align/space-between''
11831183
except that there exists an extra [=justification opportunities=]
11841184
whose space is distributed half before and half after the ruby content.
1185-
<div class="example">
1186-
Since a typical implementation will by default define [=justification opportunities=]
1187-
between every adjacent pair of CJK [=characters=]
1188-
and not between adjacent pairs of Latin [=characters=],
1189-
this should result in the behavior recommended by [[JLREQ]]:
1190-
for wide-cell ruby content to be distributed...
1191-
<div class="figure">
1192-
<img width="145" height="91"
1193-
alt="Diagram of glyph layout in auto aligned ruby when ruby text is shorter than base"
1194-
src="images/ra-ds.gif" >
1195-
<img width="145" height="91"
1196-
alt="Diagram of glyph layout in auto aligned ruby when ruby text is longer than base"
1197-
src="images/ra-ds-rb.gif" >
1198-
<p class="caption">Wide-cell text in ''ruby-align/space-around'' ruby distribution is spaced apart
1199-
</div>
12001185

1201-
... and narrow-cell glyph ruby to be centered.
1202-
<div class="figure">
1203-
<img width="145" height="91"
1204-
alt="Diagram of glyph layout in auto aligned ruby when halfwidth ruby text is shorter than base"
1205-
src="images/ra-c-h.gif" >
1206-
<img width="145" height="91"
1207-
alt="Diagram of character layout in auto aligned ruby when ruby text is longer than narrow-width base"
1208-
src="images/ra-c-rb-h.gif" >
1209-
<p class="caption">Narrow-width ruby text in ''ruby-align/space-around'' ruby distribution is centered
1210-
</div>
1186+
<div class="figure">
1187+
<img width="145" height="91"
1188+
alt="Diagram of glyph layout in auto aligned ruby when ruby text is shorter than base"
1189+
src="images/ra-ds.gif" >
1190+
<img width="145" height="91"
1191+
alt="Diagram of glyph layout in auto aligned ruby when ruby text is longer than base"
1192+
src="images/ra-ds-rb.gif" >
1193+
<p class="caption">''ruby-align/space-around'' ruby distribution
12111194
</div>
12121195
</dd>
12131196
</dl>
12141197

1198+
<div class="example">
1199+
Since a typical implementation will by default define [=justification opportunities=]
1200+
between every adjacent pair of CJK [=characters=]
1201+
but not between adjacent pairs of Latin [=characters=],
1202+
the ''space-around'' and ''space-between'' values
1203+
will result in wide characters being distributed,
1204+
but narrow characters centered:
1205+
<div class="figure">
1206+
<img width="145" height="91"
1207+
alt="Diagram of glyph layout in auto aligned ruby when halfwidth ruby text is shorter than base"
1208+
src="images/ra-c-h.gif" >
1209+
<img width="145" height="91"
1210+
alt="Diagram of character layout in auto aligned ruby when ruby text is longer than narrow-width base"
1211+
src="images/ra-c-rb-h.gif" >
1212+
<p class="caption">Narrow-width ruby text in ''ruby-align/space-around'' and ''ruby-align/space-between'' ruby distribution are centered
1213+
</div>
1214+
1215+
The distribution of space can be further controlled via 'text-justify'. [[CSS-TEXT-3]]
1216+
</div>
1217+
12151218
Issue: Add a paragraph explaining how to distribute space in situations with [=spanning annotations=].
1219+
12161220
<!--
12171221
For a complex ruby with spanning elements, one additional consideration is
12181222
required. If the spanning element spans multiple 'rows' (other rbc or rtc

0 commit comments

Comments
 (0)