Date: Fri, 18 Aug 2017 17:19:53 +0000 (UTC) From: Warren Block <wblock@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50686 - head/share/xml Message-ID: <201708181719.v7IHJrCS036538@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wblock Date: Fri Aug 18 17:19:53 2017 New Revision: 50686 URL: https://svnweb.freebsd.org/changeset/doc/50686 Log: Add the ability to set a translate="no" property on any element that uses the common properties attributes. This also adds the ability to set rules in the <info> element to select types of elements that should not be translated. Non-translated text does not appear in PO files and is not seen by translators, but is included verbatim in the final translated output document. The current use case for this is to prevent the PGP keys from being translated, which makes no sense and introduces duplication. This work was made possible with assistance by Shaun McCance at the 2017 Open Help Conference. Sponsored by: iXsystems Modified: head/share/xml/docbook50.dtd Modified: head/share/xml/docbook50.dtd ============================================================================== --- head/share/xml/docbook50.dtd Thu Aug 17 17:23:46 2017 (r50685) +++ head/share/xml/docbook50.dtd Fri Aug 18 17:19:53 2017 (r50686) @@ -31,6 +31,8 @@ audience CDATA #IMPLIED condition CDATA #IMPLIED conformance CDATA #IMPLIED + xmlns:its CDATA #FIXED 'http://www.w3.org/2005/11/its' + its:translate (yes|no) #IMPLIED os CDATA #IMPLIED revision CDATA #IMPLIED security CDATA #IMPLIED @@ -48,7 +50,7 @@ <!ENTITY % db.common.linking.attributes " linkend IDREF #IMPLIED - xmlns:xlink CDATA #FIXED 'http://www.w3.org/1999/xlink' + xmlns:xlink CDATA #FIXED 'http://www.w3.org/1999/xlink' xlink:href CDATA #IMPLIED xlink:type CDATA #IMPLIED xlink:role CDATA #IMPLIED @@ -95,7 +97,22 @@ > -<!ELEMENT info ((title|titleabbrev|subtitle)*|(abstract|address|artpagenums|author|authorgroup|authorinitials|bibliocoverage|biblioid|bibliosource|collab|confgroup|contractsponsor|contractnum|copyright|cover|date|edition|editor|issuenum|keywordset|legalnotice|mediaobject|org|orgname|othercredit|pagenums|printhistory|pubdate|publisher|publishername|releaseinfo|revhistory|seriesvolnums|subjectset|volumenum|annotation|extendedlink|bibliomisc|bibliomset|bibliorelation|biblioset|itermset|productname|productnumber)*)*> +<!ELEMENT its:translateRule EMPTY> + +<!ATTLIST its:translateRule + translate CDATA #IMPLIED + selector CDATA #IMPLIED +> + +<!ELEMENT its:rules ((its:translateRule)*)> + +<!ATTLIST its:rules + xmlns:its CDATA #FIXED "http://www.w3.org/2005/11/its" + xmlns:db CDATA #FIXED "http://docbook.org/ns/docbook" + version CDATA #IMPLIED +> + +<!ELEMENT info ((title|titleabbrev|subtitle)*|(abstract|address|artpagenums|author|authorgroup|authorinitials|bibliocoverage|biblioid|bibliosource|collab|confgroup|contractsponsor|contractnum|copyright|cover|date|edition|editor|issuenum|keywordset|legalnotice|mediaobject|org|orgname|othercredit|pagenums|printhistory|pubdate|publisher|publishername|releaseinfo|revhistory|seriesvolnums|subjectset|volumenum|annotation|extendedlink|bibliomisc|bibliomset|bibliorelation|biblioset|itermset|its:rules|productname|productnumber)*)*> <!ATTLIST info xmlns CDATA #FIXED "http://docbook.org/ns/docbook"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708181719.v7IHJrCS036538>
