首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >eXist XSL-FO -连字符和设置

eXist XSL-FO -连字符和设置
EN

Stack Overflow用户
提问于 2016-01-20 13:12:18
回答 1查看 103关注 0票数 1

我正在一个无头虚拟Ubuntu服务器上运行eXist。有趣的是,XSL模块默认启用了,这可能是因为在安装eXist之前我已经在服务器上安装了它。

我使用位于应用程序集合中的配置文件。有趣的是,它使用(并且只允许)系统路径,并且不可能从集合中使用资源(例如,我试图加载字体并从配置中指向它们,但这不起作用--我必须使用它,就像我使用它时没有使用eXist一样)。除了连字符外,一切都正常。没有eXist,连字符也能工作。

代码语言:javascript
复制
<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。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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>应该就足够了。

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

https://stackoverflow.com/questions/34901011

复制
相关文章

相似问题

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