[英]FOP hyphenation xsl fo
I would like to use the attribute hyphenate="true"
on my tag <subtitle>
, and set hyphenation="false"
on the <italic>
elements it may contain. 我想在标签
<subtitle>
上使用属性hyphenate="true"
,并在其可能包含的<italic>
元素上设置hyphenation="false"
。 The problem is that I can use the hyphenation only on fo:block
and fo:character
. 问题是我只能在
fo:block
和fo:character
上使用连fo:character
。 Could someone give me an advice? 有人可以给我个建议吗?
This is an example of my xml: 这是我的xml的示例:
<subtitle type="subtitles">
Some text that should have the hyphenation true
(<italic>This one shoud have the hyphenation false</italic>).
</subtitle>
hyphenate
is an inherited property (see https://www.w3.org/TR/xsl11/#hyphenate ). hyphenate
是继承的属性(请参阅https://www.w3.org/TR/xsl11/#hyphenate )。 The text in your XSL-FO is treated as if it was a sequence of fo:character
FOs (see https://www.w3.org/TR/xsl11/#fo_character ). XSL-FO中的文本被视为
fo:character
FO序列(请参阅https://www.w3.org/TR/xsl11/#fo_character )。
Just put hyphenate="false"
on the fo:inline
for italic
and it will have effect on the notional fo:character
FOs making up the text. 只需在
fo:inline
上将hyphenate="false"
放在italic
,它将对组成文本的名义fo:character
产生影响。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.