[publican-list] conditionally exclude a paragraph

Domingo Becker domingobecker at gmail.com
Tue Nov 8 11:48:17 UTC 2011


2011/11/8 Jeff Fearn <jfearn at redhat.com>:
> On 11/08/2011 02:01 PM, Domingo Becker wrote:
>>
>> 2011/11/7 Jeff Fearn<jfearn at redhat.com>:
>>>
>>> On 11/08/2011 09:40 AM, Joshua Wulf wrote:
>>>>
>>>> == The brute force method ==
>>>>
>>>>
>>>> <section lang="de-DE" lang="es-ES" lang="pt-BR" ...>
>>>
>>> <section lang="de-DE,es-ES,pt-BR" ...>
>>>
>>
>> This seems to be the best way by now.
>>
>> But perhaps, a Publican RFE: if Publican interprpets the ',' (comma)
>> operator in a string, then it would be possible to add a negation
>> operator like '!' in C++ inside the string.
>
> The current functionality is built in to DocBook, specialising it for
> Publican would mean books could no longer be built properly with other
> DocBook tool chains.
>

Understood.

>> The problem I want to solve is the one being discussed in [1].
>>
>> Then Petr Kovar asked me if the paragraph including
>> "translator-credits" string would appear in the source language of the
>> manual [2]. And it's reasonable to exclude it when building the book
>> for the source language.
>
> Why not have an XML file for each language and put the condition on the
> xi:include?
>

It would mean to give translator write access to the books' git
repositories, and more XML files to maintain. The idea is to not
overload the doc writer.

Thank you.

kind regards

Domingo Becker




More information about the publican-list mailing list