Page 1 of 1

How to customize a tag for chinse word

Posted: Tue Aug 22, 2017 2:46 pm
by lisazeng
Hi Expert,

This question is about Dita PDF publication.

I want to use a tag for chinese word. since msgph can't be used for chinese, might for the font family of it.

the chinese word 文件 ( file), I want to add a tag to it and it will shown in to format "文件" after publication in PDF.

so my question is
1. how add a user tag in oxygen
2. how to make a format for this user tag in DITA OT, the format is to add "" to the chinese word in the user tag

Thanks!

br
Lisa

Re: How to customize a tag for chinse word

Posted: Tue Aug 22, 2017 3:20 pm
by Radu
Hi Lisa,

If you want to add a new DITA element, you need to specialize the DITA vocabulary and modify the default DITA DTDs.
Eliot Kimber's specialization tutorial is usually what most people use:

http://www.xiruss.org/tutorials/dita-specialization/

Or you can just use in the topics the DITA <ph> element with an @outputclass attribute set to a special value like:

Code: Select all

...<ph outputclass="specialMeaning">some text here</ph>...
and then from the PDF plugin's custom XSLTs create an XSLT Template which matches all <ph> elements having this special @outputclass value and create the appropiate XSL-FO elements for it.

Regards,
Radu