简体   繁体   English

FOP连字xsl fo

[英]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:blockfo: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.

相关问题 xsl-fo,org.apache.fop.fo.ValidationException:“ fo:table-body”缺少子元素 - xsl-fo, org.apache.fop.fo.ValidationException: “fo:table-body” is missing child elements <br>xsl-fo fop 处理器无法识别换行符 - <br> line breaks are not recognised by xsl-fo fop processor 使用XSLT和XSL-FO / FOP将XML文件转换为PDF - Convert an XML file to PDF using XSLT and XSL-FO/FOP 如何在使用Apache FOP呈现的XSL-FO文档中检测溢出或换行符 - How to detect overflow or line breaks in XSL-FO document rendered with Apache FOP 如何使用XSL-FO / Apache FOP在表行中重复相同的模板 - How to repeat same template in table-row using XSL-FO/Apache FOP 在使用FOP的XSL:FO从XML生成pdf的同时,如何在所有页面中添加动态标头? - How to add dynamic header in all the pages while generating pdf from XML using XSL:FO using fop? 使用 Apache FOP 从 XML 文件开始从 XSL-FO 转换为 PDF - Conversion from XSL-FO to PDF with Apache FOP starting from a XML file 如何使用XSL-FO样式表和Apache FOP将XML文件中的不同表转换为PDF - how to transform different tables in a XML file to PDF by using a XSL-FO stylesheet and Apache FOP 如何使用 XSL-FO(和 Apache FOP)计算从应用模板返回的元素 - How to count elements returned from applied template using XSL-FO (and Apache FOP) 将从 Word 粘贴的文本转换为 Firefox 富文本编辑器到 xsl-fo,同时保留格式 (Java) (Apache FOP) - Convert text pasted from Word into a Firefox rich-text editor to xsl-fo while preserving formatting (Java) (Apache FOP)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM