axf:ruby-limit-space
(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 limit of the amount of spaces leading and following the ruby text when the ruby text is shorter than its base characters.
Value: | <number> | <length> | <percentage> | none |
Initial: | 1.0 |
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). The value must be non-negative. |
<length> | Specifies the length. The value must be non-negative. |
<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). The value must be non-negative. |
none | Does not limit the amount of the space. |
Possible to avoid generating too much spaces leading and followings the ruby text because the ruby text is too shorter than its base characters when axf:ruby-align="distribute-space" is specified. The amount of the space will be limited to the specified value.
<ruby ruby-limit-space="none"><rb>なげきの聖母像</rb><rt>ピエタ</rt></ruby>
<ruby ruby-limit-space="1.0"><rb>なげきの聖母像</rb><rt>ピエタ</rt></ruby>
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-overhang によりルビを隣の文字にどのように掛けるか指定します。ルビが親文字より長い場合は、axf:ruby-limit-overhang で掛かる量の限界値、短い場合は axf:ruby-limit-space で前後の空き量を設定できます。 | |
| </fo:block> | |
| ||
| axf:ruby-overhang(ルビを隣の文字へ掛ける方法の設定) | |
| </fo:block> | |
| <fo:block> | |
| none(隣の文字へ掛けません)、start(start側の文字に掛けます)、end(end側の文字に掛けます) | |
| </fo:block> | |
| ||
| <fo:block> | |
| axf:ruby-overhang="none" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| <fo:block> | |
| axf:ruby-overhang="start" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| <fo:block> | |
| axf:ruby-overhang="end" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| ||
| ||
| except-kanji(隣の文字が漢字のときは掛けません)、except-katakana(隣の文字が片仮名のときは掛けません) | |
| </fo:block> | |
| ||
| <fo:block> | |
| axf:ruby-overhang="except-kanji" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| 阿 | |
| </fo:block> | |
| <fo:block> | |
| axf:ruby-overhang="except-katakana" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| ア | |
| </fo:block> | |
| ||
| ||
| except-start-open-parenthesis(start側が開き括弧類のときは掛けません)、except-end-close-parenthesis(end側が閉じ括弧類のときは掛けません) | |
| </fo:block> | |
| ||
| <fo:block> | |
| axf:ruby-overhang="except-start-open-parenthesis" | |
| </fo:block> | |
| ||
| ( | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| <fo:block> | |
| axf:ruby-overhang="except-end-close-parenthesis" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| ) | |
| </fo:block> | |
| ||
| ||
| axf:ruby-limit-overhang(ルビが親文字より長い場合の隣りの文字に掛ける限界量) | |
| </fo:block> | |
| <fo:block> | |
| 限界量は number(ルビのフォントサイズと掛け合わせた値)、length(長さ指定)、percentage(フォントサイズと掛け合わせた値)で指定します。 | |
| </fo:block> | |
| ||
| ||
| axf:ruby-limit-overhang="1.0"(既定値) | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| ||
| axf:ruby-limit-overhang="0" | |
| </fo:block> | |
| ||
| あ | |
| ||
| ||
| 燕 | |
| ||
| ||
| つばめ | |
| ||
| </axf:ruby> | |
| あ | |
| </fo:block> | |
| ||
| ||
| axf:ruby-limit-space(ルビが親文字より短い場合の前後のアキ量の限界) | |
| </fo:block> | |
| <fo:block> | |
| アキ量の限界は number(ルビのフォントサイズと掛け合わせた値)、length(長さ指定)、percentage(フォントサイズと掛け合わせた値)で指定、none はアキ量の制限をしません。 | |
| </fo:block> | |
| ||
| ||
| axf:ruby-limit-space="1.0"(既定値) | |
| </fo:block> | |
| ||
| ||
| ||
| なげきの聖母像 | |
| ||
| ||
| ピエタ | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| axf:ruby-limit-space="0" | |
| </fo:block> | |
| ||
| ||
| ||
| なげきの聖母像 | |
| ||
| ||
| ピエタ | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| ||
| axf:ruby-limit-space="none" | |
| </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: |