axf:ruby-limit-overhang

(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 that ruby overhangs the adjacent base character when ruby is longer than its own base character.

Value:<number> | <length> | <percentage>
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.

This value shows the amount that ruby overhangs the adjacent base character (It is not the protruding amount).

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.

ルビの文字への掛かり方の表現例

axf:ruby-overhang によりルビを隣の文字にどのように掛けるか指定します。ルビが親文字より長い場合は、axf:ruby-limit-overhang で掛かる量の限界値、短い場合は axf:ruby-limit-space で前後の空き量を設定できます。

axf:ruby-overhang(ルビを隣の文字へ掛ける方法の設定)

none(隣の文字へ掛けません)、start(start側の文字に掛けます)、end(end側の文字に掛けます)

axf:ruby-overhang="none"

つばめ

axf:ruby-overhang="start"

つばめ

axf:ruby-overhang="end"

つばめ

except-kanji(隣の文字が漢字のときは掛けません)、except-katakana(隣の文字が片仮名のときは掛けません)

axf:ruby-overhang="except-kanji"

つばめ

axf:ruby-overhang="except-katakana"

つばめ

except-start-open-parenthesis(start側が開き括弧類のときは掛けません)、except-end-close-parenthesis(end側が閉じ括弧類のときは掛けません)

axf:ruby-overhang="except-start-open-parenthesis"

つばめ

axf:ruby-overhang="except-end-close-parenthesis"

つばめ

axf:ruby-limit-overhang(ルビが親文字より長い場合の隣りの文字に掛ける限界量)

限界量は number(ルビのフォントサイズと掛け合わせた値)、length(長さ指定)、percentage(フォントサイズと掛け合わせた値)で指定します。

axf:ruby-limit-overhang="1.0"(既定値)

つばめ

axf:ruby-limit-overhang="0"

つばめ

axf:ruby-limit-space(ルビが親文字より短い場合の前後のアキ量の限界)

アキ量の限界は number(ルビのフォントサイズと掛け合わせた値)、length(長さ指定)、percentage(フォントサイズと掛け合わせた値)で指定、none はアキ量の制限をしません。

axf:ruby-limit-space="1.0"(既定値)

なげきの聖母像

ピエタ

axf:ruby-limit-space="0"

なげきの聖母像

ピエタ

axf:ruby-limit-space="none"

なげきの聖母像

ピエタ

Download der Beispiele

Output:

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