[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Non translatable content in Docbook 4.x
On 13.1.2015 20:50, Jan Tosovsky wrote: > I'd like to mark some text as non translatable. I could add a common > attribute to all elements in original DTDs, but I like the idea of utilizing > ITS standard for this purpose, which seems to be supported in CAT tools. > > I've found this explanatory article, but I'd like to use it in old 4.x DTD. > http://xmlguru.cz/2013/05/docbook-and-its2 You should definitively use DocBook 5.x. There are already schemas for DocBook 5.0+ITS and in DocBook V5.1 schemas will support ITS out-of-the box. > Is there any way? Some extension like for xi:includes ? You can customize DTD yourself, but it's painful compared to RELAX NG based customization of DocBook 5: http://docbook.org/tdg/en/html/ch05.html You can crate your own DTD, something like: <!ENTITY % local.common.attrib " its:translate (yes|no) #IMPLIED xmlns:its CDATA #FIXED 'http://www.w3.org/2005/11/its' "> <!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> %DocBookDTD; > Btw, there is no ROI to switch to Docbook 5. It's usually pretty straightforward to switch to V5. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ http://docbook.cz Stránky o dokumentačním formátu DocBook http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]