How to customize a tag for chinse word

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

How to customize a tag for chinse word

Post 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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to customize a tag for chinse word

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply