Generate PDF in many languages

Post here questions and problems related to editing and publishing DITA content.
LASSE_MLE
Posts: 46
Joined: Mon Dec 05, 2022 3:24 pm

Generate PDF in many languages

Post by LASSE_MLE »

Hello,
Sorry I've not found my answer in the forum, I'm trying to ask it directly!
Assuming that is is possible, how can I generate several PDF in several language from a unique ditamap?
If my ditamap looks like this

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="SOPName">
    <title>SOPName</title>

    <topicref href="topic1.dita" xml:lang="en-US"/>
    <topicref href="topic1_FR.dita" xml:lang="fr-FR"/>
    <topicref href="topic1_JA.dita" xml:lang="ja-JP"/>

    <topicref href="topic2.dita" xml:lang="en-US"/>
    <topicref href="topic2_FR.dita" xml:lang="fr-FR"/>
    <topicref href="topic2_JA.dita" xml:lang="ja-JP"/>
</map>
Is it possible to create a scenario to generate a French version of this SOP with only the topic that contains xml:lang="fr-FR"? And another scenario to generate a Japanese version?
Thank you in advance for your help!
ML
LASSE_MLE
Posts: 46
Joined: Mon Dec 05, 2022 3:24 pm

Re: Generate PDF in many languages

Post by LASSE_MLE »

FYI, I've not yet upgraded Oxygen, I'm still on the v.26.1, build 2024091606
julien_lacour
Posts: 802
Joined: Wed Oct 16, 2019 3:47 pm

Re: Generate PDF in many languages

Post by julien_lacour »

Hello,

You can filter the ditamap using several ditaval filters (one per language) but you first need to alter [OXYGEN_INSTALL_DIR]\frameworks\dita\DITA-OT\config\configuration.properties to add xml:lang as a profiling attribute. You can find more detailed information in our user guide.

Regards,
Julien
LASSE_MLE
Posts: 46
Joined: Mon Dec 05, 2022 3:24 pm

Re: Generate PDF in many languages

Post by LASSE_MLE »

Thank you Julien!
My bad, the forum is so complete that I did not even search in the User Manual :o
Despite the fact that I am myself manager of the documentation team (and often complain about people that does not read the manuals)...
BR
Mathieu
Post Reply