Make chinese available in PDF

Post here questions and problems related to editing and publishing DITA content.
lisazeng
Posts: 29
Joined: Tue Jun 27, 2017 2:10 pm

Make chinese available in PDF

Post by lisazeng »

Hi Experts,

My dita ot is 2.5

I have dita xmls created with chinese content.

I used a dita ot pdf plugin created by oxygen, and the output PDF show all chinses words correctly.


Then, I use my own dita ot pdf plugin to transform the same dita xmls, all the chinese words can't be shown correctly, they are shown in ######.
I had font-mappings which copied from the oxygen plugin, what else should I do?


Thanks!

Lisa
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Make chinese available in PDF

Post by Radu »

Hi Lisa,

Besides that modified font-mappings.xml that we ship with the DITA Open Toolkits bundled with Oxygen we do not do anything special related to PDFs and fonts. So maybe that font-mappings.xml which you copied to your plugin is somehow not used. If you make it not wellformed for example, does the publishing break?
For completeness I'm also linking to your identical DITA Users post:

https://groups.yahoo.com/neo/groups/dit ... ages/42573

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lisazeng
Posts: 29
Joined: Tue Jun 27, 2017 2:10 pm

Re: Make chinese available in PDF

Post by lisazeng »

Hi Radu,

Thanks for your sharing and my problem solved. I added the solution in the below list:

https://groups.yahoo.com/neo/groups/dit ... ages/42573

BTW, will you also check the mails in yahoo dita group everyday?

Thanks!

br,
Lisa
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Make chinese available in PDF

Post by Radu »

Hi Lisa,

Both me and some of my colleagues follow the DITA Users List.
For such questions like the one you asked on this forum we prefer that it would be asked on the DITA Users List instead as it is not really related to Oxygen's functionality.
Once the question is on the DITA Users List I cannot guarantee that somebody from our company will answer, it depends on our workload but it's a big community... somebody else may help you further.
About your solution, from what I knew all the font families that you should use in the XSLT stylesheets (like those font families that you use in the attribute sets) are aliases, they should not be physical font names. After this, in the font-mappings.xml you map those aliases to physical font names.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lisazeng
Posts: 29
Joined: Tue Jun 27, 2017 2:10 pm

Re: Make chinese available in PDF

Post by lisazeng »

Hi Radu,

Thansk for your sharing!
I will try to focuse my question related Oxygen in this forum.


Best regards,
Lisa
Post Reply