繁体   English   中英

FOP连字xsl fo

[英]FOP hyphenation xsl fo

我想在标签<subtitle>上使用属性hyphenate="true" ,并在其可能包含的<italic>元素上设置hyphenation="false" 问题是我只能在fo:blockfo:character上使用连fo:character 有人可以给我个建议吗?

这是我的xml的示例:

<subtitle type="subtitles">
    Some text that should have the hyphenation true 
    (<italic>This one shoud have the hyphenation false</italic>).
</subtitle>

hyphenate是继承的属性(请参阅https://www.w3.org/TR/xsl11/#hyphenate )。 XSL-FO中的文本被视为fo:character FO序列(请参阅https://www.w3.org/TR/xsl11/#fo_character )。

只需在fo:inline上将hyphenate="false"放在italic ,它将对组成文本的名义fo:character产生影响。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM