How to customize a tag for chinse word

Posts: 29

How to customize a tag for chinse word

Tue Aug 22, 2017 2:46 pm

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


Posts: 5217

Re: How to customize a tag for chinse word

Tue Aug 22, 2017 3:20 pm

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:

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.

Radu Coravu
<oXygen/> XML Editor

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

Who is online

Users browsing this forum: No registered users and 2 guests