Multilingual Topic in PDF2
Posted: Fri Nov 02, 2018 4:01 am
I have a DITA topic that contains both English and Japanese characters.
I'm using a custom pdf2 plugin in the dita-ot 3.1, which I believe is using apache fop 2.3.
My font-mappings.xml for the applicable font-family is:
I've set the xml:lang="ja-JP" attribute on the applicable elements; however, the Japanese characters are rendering as #, which I believe Apache FOP is doing for missing glyphs.
I'm thinking that FOP is setting the entire topic to EN, and ignoring the xml:lang attribute on the elements. I know that the font being used for the default char-set does not contain Japanese glyphs, but I would expect the xml:lang attribute to be preserved and the char-set for the applicable elements to be set to Japanese.
Is it possible to use two different fonts (one font for the English glyphs, another for the Japanese glyphs) for a topic in a PDF output?
Thank you!
Daniel
I'm using a custom pdf2 plugin in the dita-ot 3.1, which I believe is using apache fop 2.3.
My font-mappings.xml for the applicable font-family is:
Code: Select all
<logical-font name="SST-Bold">
<physical-font char-set="default">
<font-face>SST-Bold</font-face>
</physical-font>
<physical-font char-set="Japanese">
<font-face>SSTJpPro-Bold</font-face>
</physical-font>
</logical-font>
I'm thinking that FOP is setting the entire topic to EN, and ignoring the xml:lang attribute on the elements. I know that the font being used for the default char-set does not contain Japanese glyphs, but I would expect the xml:lang attribute to be preserved and the char-set for the applicable elements to be set to Japanese.
Is it possible to use two different fonts (one font for the English glyphs, another for the Japanese glyphs) for a topic in a PDF output?
Thank you!
Daniel