@@ -1352,6 +1352,19 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
13521352 i.e. without overlapping adjacent bases on either side.
13531353 This style is called “mono ruby” in [[JLREQ]] .
13541354
1355+ <figure>
1356+ <img src="images/ruby-mono.png"
1357+ alt="Extra space is added to base or annotations
1358+ when one of the pair is longer than the other
1359+ in order to keep each annotation exclusive to its own base.
1360+ For example, in the annotation for “上手”,
1361+ extra space is added around the first character
1362+ to accommodate its longer annotation “じょう”
1363+ while the shorter annotation “ず” for the second character
1364+ is simply positioned and aligned with respect to its base characters.">
1365+ <figcaption> ''ruby-merge: separate'' with center alignment</figcaption>
1366+ </figure>
1367+
13551368 <div class="example">
13561369 For example, the following two lines render the same:
13571370 <pre highlight=html>
@@ -1369,6 +1382,16 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
13691382 This style renders similar to “group ruby” in [[JLREQ]] ,
13701383 except that [=ruby annotations=] are kept together with their respective [=ruby bases=] when breaking lines.
13711384
1385+ <figure>
1386+ <img src="images/ruby-merge.png"
1387+ alt="The combined annotation is centered with respect to the combined base,
1388+ even if this would place an annotation’s content over a different base.
1389+ In the case of “上手”, the “う” from the first base’s annotation
1390+ and the “ず” from the second base’s annotation end up
1391+ sharing space over the second base.">
1392+ <figcaption> ''ruby-merge: separate'' with center alignment</figcaption>
1393+ </figure>
1394+
13721395 <div class="example">
13731396 The following two lines render the same
13741397 if both characters fit on one line:
@@ -1390,6 +1413,16 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
13901413 the space is shared in some way
13911414 to avoid imposing space between bases.
13921415
1416+ <figure>
1417+ <img src="images/ruby-jukugo.png"
1418+ alt="If there is enough space, annotations are aligned to their bases;
1419+ but if there is not, then annotations can share space with adjacent annotations.
1420+ Thus the annotations for “上手” share space over the second base as in the 'merge' case,
1421+ but the annotations for “下手” which are one character each
1422+ end up rendering as for 'separate'.">
1423+ <figcaption> ''ruby-merge: separate'' with center alignment</figcaption>
1424+ </figure>
1425+
13931426 <div class="note">
13941427 Note: This behavior is intended for compound words,
13951428 see <a href="https://www.w3.org/International/questions/qa-ruby#jukugo">“Jukugo Ruby” in “What is ruby?”</a> . [[QA-RUBY]]
0 commit comments