@@ -1352,6 +1352,19 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
1352
1352
i.e. without overlapping adjacent bases on either side.
1353
1353
This style is called “mono ruby” in [[JLREQ]] .
1354
1354
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
+
1355
1368
<div class="example">
1356
1369
For example, the following two lines render the same:
1357
1370
<pre highlight=html>
@@ -1369,6 +1382,16 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
1369
1382
This style renders similar to “group ruby” in [[JLREQ]] ,
1370
1383
except that [=ruby annotations=] are kept together with their respective [=ruby bases=] when breaking lines.
1371
1384
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
+
1372
1395
<div class="example">
1373
1396
The following two lines render the same
1374
1397
if both characters fit on one line:
@@ -1390,6 +1413,16 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
1390
1413
the space is shared in some way
1391
1414
to avoid imposing space between bases.
1392
1415
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
+
1393
1426
<div class="note">
1394
1427
Note: This behavior is intended for compound words,
1395
1428
see <a href="https://www.w3.org/International/questions/qa-ruby#jukugo">“Jukugo Ruby” in “What is ruby?”</a> . [[QA-RUBY]]
0 commit comments