axf:text-emphasis-style
(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 Character and Text Decoration >> Emphasis Marks
Specifies the style of emphasis marks. [CSS3-TextDecor] Emphasis Mark Style: the ‘text-emphasis-style’ property
Value: | none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string> |
Initial: | none |
Applies to: | all elements |
Inherited: | yes |
Percentages: | N/A |
Values have the following meanings.
none | No emphasis marks. |
filled | Specifies a character with color-fill. |
open | Specifies a character with an outline without color-fill. |
dot | Specifies a filled dot. filled dot is U+2022 •, open dot is U+25E6 ◦. |
circle | Specifies a circle. filled circle is U+25CF ●, open circle is U+25CB ○. |
double-circle | Specifies a double-circle. filled double-circle is U+25C9 ◉, open double-circle is U+25CE ◎. |
triangle | Specifies a triangle. filled triangle is U+25B2 ▲, open triangle is U+25B3 △. |
sesame | Specifies a sesame dot. filled sesame is U+FE45 ﹅, open sesame is U+FE46 ﹆. |
<string> | Specifies an arbitrary character string. When multiple characters are specified, overlapping of emphasis marks is not considered though everything is displayed. |
when filled or open is not specified, it's considered as filled. When filled or open is specified, it's considered as circle in vertical writing mode.
XSL-FO sample:
| <fo:root xml:lang="en" 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> | |
| ||
| ||
| ||
| ||
| Example of ruby and emphasis marks | |
| </fo:block> | |
| </fo:block> | |
| ||
| It's possible to add emphasis marks to text using axf:text-emphasis-style. The space from the base character, font and size of the emphasis marks can be specified. Emphasis marks can be applied only to the script of Latn, Cyrl, Grek and Zyyy besides CJK. Emphasis marks can be put on the base characters of ruby, but they cannot be put on ruby characters. | |
| </fo:block> | |
| ||
| Emphasis marks | |
| </fo:block> | |
| ||
| <fo:block> | |
| ルビと圏点 | |
| </fo:block> | |
| </fo:block> | |
| ||
| Using ruby and emphasis marks together | |
| </fo:block> | |
| <fo:block> | |
| Ruby and emphasis marks can be used together. When the ruby and emphasis marks are put on the same side, emphasis marks will be put outside of ruby. | |
| </fo:block> | |
| ||
| <fo:block> | |
| ルビと | |
| <axf:ruby> | |
| ||
| 圏点 | |
| ||
| ||
| けんてん | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| </fo:block> | |
| ||
| Using ruby and emphasis marks together (Align emphasis marks) | |
| </fo:block> | |
| <fo:block> | |
| Emphasis marks can be aligned by the setting of axf:text-emphasis-offset. | |
| </fo:block> | |
| ||
| <fo:block> | |
| ルビと | |
| <axf:ruby> | |
| ||
| 圏点 | |
| ||
| ||
| けんてん | |
| ||
| </axf:ruby> | |
| </fo:block> | |
| </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: |