Docbook XML 到 PDF,没有“”和'ű'人物
我有一段时间遇到以下问题。我一直在尝试将 Docbook XML 转换为 PDF。几乎一切都很顺利,除了 PDF 文件文本中没有“ő”和“ű”字符,它们被替换为“#”。
我使用哪些程序? - Cygwin 与“xsltproc”。 - FOP 1.0(Windows) - Docbook-XSL 样式表
PS:docbook 文件有效。
欢迎任何建议。谢谢!
I have the following problem for a while. I have been trying to convert Docbook XML to PDF. Almost everything goes well except the PDF file has no 'ő' and 'ű' chars in the text, they are replaced with '#'.
Which programs do I use?
- Cygwin with 'xsltproc'.
- FOP 1.0 (windows)
- Docbook-XSL stylesheet
PS: The docbook files are valid.
Any suggestion is welcome. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要有一种包含这些字符的字体。例如,如果您使用 Apache FOP [1] 配置 Arial.ttf 并自定义 [2] DocBook XSL-FO 样式表以使用该字体,则这些字符应该可以正常工作。请注意,没有 FOP 配置的标准 14 基字体(如 Helvetica)没有这些字形。
[1] http://xmlgraphics.apache.org/fop/latest/fonts。 html#custom
[2] 像这样的:
You need to have a font that has those characters. If, for example, you configure Arial.ttf with Apache FOP [1] and customize [2] the DocBook XSL-FO stylesheets to use that font, these characters should work just fine. Please note that the standard base 14 fonts (like Helvetica) available with no FOP configuration do not have these glyphs.
[1] http://xmlgraphics.apache.org/fop/latest/fonts.html#custom
[2] Something like this: