我正在一个无头虚拟Ubuntu服务器上运行eXist。有趣的是,XSL模块默认启用了,这可能是因为在安装eXist之前我已经在服务器上安装了它。
我使用位于应用程序集合中的配置文件。有趣的是,它使用(并且只允许)系统路径,并且不可能从集合中使用资源(例如,我试图加载字体并从配置中指向它们,但这不起作用--我必须使用它,就像我使用它时没有使用eXist一样)。除了连字符外,一切都正常。没有eXist,连字符也能工作。
<fop version="1.0">
<hyphenation-base>/home/honza/.fop/hyph</hyphenation-base>
<hyphenation-pattern lang="cs" country="CZ">cs</hyphenation-pattern>
<renderers>
<renderer mime="application/pdf">
<fonts>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinLibertine_Rah.ttf" embedding-mode="subset">
<font-triplet name="LinLibertine" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinLibertine_RIah.ttf" embedding-mode="subset">
<font-triplet name="LinLibertine" style="italic" weight="normal"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinLibertine_RBah.ttf" embedding-mode="subset">
<font-triplet name="LinLibertine" style="normal" weight="bold"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinLibertine_RBIah.ttf" embedding-mode="subset">
<font-triplet name="LinLibertine" style="italic" weight="bold"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinBiolinum_Rah.ttf" embedding-mode="subset">
<font-triplet name="LinBiolinum" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinBiolinum_RIah.ttf" embedding-mode="subset">
<font-triplet name="LinBiolinum" style="italic" weight="normal"/>
</font>
<font kerning="yes" embed-url="/home/honza/.fonts/libertine/LinBiolinum_RBah.ttf" embedding-mode="subset">
<font-triplet name="LinBiolinum" style="normal" weight="bold"/>
</font>
</fonts>
</renderer>
</renderers>
</fop>我知道hyphenation-base是正确的起点,但我不知道是否应该以某种特殊的方式设置它,因为eXist。
发布于 2016-01-20 15:02:54
如果在eXist中调用FOP,则需要将连字符jar (fop-hyph.jar)与fop.jar一起存储在$EXIST_HOME/extensions/modules/lib/中。那么您就不应该在您的<hyphenation-base>文件中使用fop.conf属性了-- <hyphenation-pattern>应该就足够了。
https://stackoverflow.com/questions/34901011
复制相似问题