axf:ruby-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 how ruby overhangs the adjacent base character. [CSS3-Ruby] Ruby overhanging: the 'ruby-overhang' property

Value:none | auto | [start || end || except-kanji || except-katakana || except-start-open-parenthesis || except-end-close-parenthesis]
Initial:auto
Applies to:axf:ruby
Inherited:yes
Percentages:N/A

Values have the following meanings.

noneDoes not overhang the adjacent base character.
autoSame as start end except-kanji
startOverhangs on the start side of the adjacent base character (if available).
endOverhangs on the end side of the adjacent base character (if available).
except-kanjiDoes not overhang when the adjacent base character is kanji.
except-katakanaDoes not overhang when the adjacent base character is katakana.
except-start-open-parenthesisDoes not overhang when the open parenthesis is on the start side.
except-end-close-parenthesisDoes not overhang when the close parenthesis is on the end side.

When only except-* is specified and neither start nor end are specified, it is considered as start and end are specified.

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: