Make chinese available in PDF

lisazeng
Posts: 29

Make chinese available in PDF

Mon Aug 21, 2017 10:32 am

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: 5510

Re: Make chinese available in PDF

Mon Aug 21, 2017 10:49 am

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/dita-users/conversations/messages/42573

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lisazeng
Posts: 29

Re: Make chinese available in PDF

Tue Aug 22, 2017 2:10 pm

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: 5510

Re: Make chinese available in PDF

Tue Aug 22, 2017 3:13 pm

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

Re: Make chinese available in PDF

Thu Aug 24, 2017 12:55 pm

Hi Radu,

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


Best regards,
Lisa

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest