axf:ruby-offset
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category Ruby Extended Properties
Specifies the spacing between the ruby text and its base characters.
Value: | <number> | <length> | <percentage> |
Initial: | 0pt |
Applies to: | axf:ruby |
Inherited: | yes |
Percentages: | refer to the font size |
Values have the following meanings.
<number> | The used value is this number multiplied by the font size of the ruby text (axf:ruby-font-size). |
<length> | Specifies the length. |
<percentage> | The computed value is this percentage multiplied by the font size of the axf:ruby element (not the font size of the ruby text). |
XSL-FO sample:
| <fo:root xml:lang="ja" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"> | |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| Antenna House, Inc. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| ルビ配置の表現例 | |
| </fo:block> | |
| </fo:block> | |
| ||
| axf:ruby-align によりルビの配置を指定できます。また、親文字に対しての配置を axf:ruby-position、ルビと親文字の間隔を axf:ruby-offset、ルビに小書きのかなを許すかどうかを axf:ruby-small-kana により指定できます。 | |
| </fo:block> | |
| ||
| axf:ruby-align(ルビの配置指定) | |
| </fo:block> | |
| <fo:block> | |
| start側、center(中央)、end側 への配置指定 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ruby-align="start" | |
| </fo:block> | |
| ||
| ||
| ||
| 地 | |
| ||
| ||
| ち | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| <fo:block> | |
| ruby-align="center" | |
| </fo:block> | |
| ||
| ||
| ||
| 地 | |
| ||
| ||
| ち | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| <fo:block> | |
| ruby-align="end" | |
| </fo:block> | |
| ||
| ||
| ||
| 地 | |
| ||
| ||
| ち | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| ||
| 均等割り付け distribute-space(ルビ前後を空ける)、distribute-letter(ルビ前後を空けない)の配置指定 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ruby-align="distribute-space" | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| <fo:block> | |
| ruby-align="distribute-letter" | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| ||
| axf:ruby-position(親文字に対する配置指定) | |
| </fo:block> | |
| <fo:block> | |
| ルビを親文字の before側、after側 への配置指定 | |
| </fo:block> | |
| ||
| ||
| axf:ruby-position="before"(既定値) | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| axf:ruby-position="after" | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| ||
| axf:ruby-offset(ルビと親文字の間隔の指定) | |
| </fo:block> | |
| <fo:block> | |
| ルビと親文字の間隔の指定。間隔は number(ルビのフォントサイズと掛け合わせた値)、length(長さ指定)、percentage(フォントサイズと掛け合わせた値)で指定します。 | |
| </fo:block> | |
| ||
| ||
| axf:ruby axf:ruby-offset="0pt"(既定値) | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| axf:ruby axf:ruby-offset="5pt" | |
| </fo:block> | |
| ||
| ||
| ||
| 紫陽花 | |
| ||
| ||
| あじさい | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| ||
| axf:ruby-small-kana(ルビへの小文字の許可を指定) | |
| </fo:block> | |
| ||
| auto(何もしません)、convert(小書きのかなは普通のかなに変換されます) | |
| </fo:block> | |
| ||
| ||
| axf:ruby-small-kana="auto"(既定値) | |
| </fo:block> | |
| ||
| ||
| ||
| 一寸 | |
| ||
| ||
| ちょっと | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| axf:ruby-small-kana="convert" | |
| </fo:block> | |
| ||
| ||
| ||
| 一寸 | |
| ||
| ||
| ちょっと | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| </fo:flow> | |
| ||
| </fo:root> |
Output:

Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |