首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FOP连字xsl fo

FOP连字xsl fo
EN

Stack Overflow用户
提问于 2018-01-12 23:43:56
回答 1查看 1.5K关注 0票数 1

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

这是我的xml示例:

代码语言:javascript
复制
<subtitle type="subtitles">
    Some text that should have the hyphenation true 
    (<italic>This one shoud have the hyphenation false</italic>).
</subtitle>
EN

回答 1

Stack Overflow用户

发布于 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"放在italicfo:inline上,它就会对构成文本的名义上的fo:character FOs产生影响。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48229521

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档