我想在我的标记<subtitle>上使用hyphenate="true"属性,并在它可能包含的<italic>元素上设置hyphenation="false"。问题是我只能在fo:block和fo:character上使用连字符。有人能给我个建议吗?
这是我的xml示例:
<subtitle type="subtitles">
Some text that should have the hyphenation true
(<italic>This one shoud have the hyphenation false</italic>).
</subtitle>发布于 2018-01-13 05:13:48
hyphenate是一个继承的属性(请参见https://www.w3.org/TR/xsl11/#hyphenate)。XSL-FO中的文本被视为一系列fo:character FOs (请参阅https://www.w3.org/TR/xsl11/#fo_character)。
只需将hyphenate="false"放在italic的fo:inline上,它就会对构成文本的名义上的fo:character FOs产生影响。
https://stackoverflow.com/questions/48229521
复制相似问题