Modify HEADER/FOOTER For all language

Post here questions and problems related to editing and publishing DITA content.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Modify HEADER/FOOTER For all language

Post by Le Basque »

Hello,

I want to change the header and footer on documents in any language.
I saw that formatting the header and footer is in XML files as en.xml.
I should handle 7 languages ​​is it possible to customize this layout in one single file of the language?
I also noticed that the Portuguese language is missing?

thank you
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Modify HEADER/FOOTER For all language

Post by sorin_ristache »

Hello,

Are you talking about the file en.xml from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\common\vars for DITA PDF output? Yes, you have to edit one such XML file per language, for example: en.xml for English, fr.xml for French, de.xml for German, ja.xml for Japanese, etc.

By default the Portuguese language is not handled, and that means the headers and footers and various types of titles (Table of Contents, Preface, Related Links, etc) inserted in the PDF output created from Portuguese documents are the English ones. You can create a pt.xml file by duplicating the en.xml file in the same directory and edit that pt.xml file for customizing the headers, footers and section titles as you want. The name of the file (pt.xml) comes from the value of the xml:lang attribute used in the XML topic files, for example: xml:lang="en", xml:lang="pt", etc.


Regards,
Sorin
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: Modify HEADER/FOOTER For all language

Post by Le Basque »

Hi,

I modified the file en.xml :

Code: Select all

  <variable id="Body odd footer"><param ref-name="prodname"/>&#xA0;|&#xA0;<param ref-name="heading"/>&#xA0;|&#xA0;<param ref-name="pagenum"/></variable>
<variable id
In the modify there is no text, I must repeat this change on all language files? :shock:

Thank you
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Modify HEADER/FOOTER For all language

Post by sorin_ristache »

Yes, for each language a different file must be modified. This is how the PDF output is created for DITA documents. For English the body footer may contain only the &#xA0;| characters, but for other languages it may be usual to include other data in the footer of a printed book. That (&#xA0;|) is only a default value.


Regards,
Sorin
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: Modify HEADER/FOOTER For all language

Post by Le Basque »

Ok thank you
Post Reply