X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/068aaea8b5ac80809a1b860f63c625b3ea389ded..32131d8971eef03a74eef7a7127ca32d4378f50e:/doc/doc-docbook/Pre-xml diff --git a/doc/doc-docbook/Pre-xml b/doc/doc-docbook/Pre-xml index 4e28ada09..6c017e7c8 100755 --- a/doc/doc-docbook/Pre-xml +++ b/doc/doc-docbook/Pre-xml @@ -1,27 +1,22 @@ #! /usr/bin/perl -# $Cambridge: exim/doc/doc-docbook/Pre-xml,v 1.2 2005/11/10 12:30:13 ph10 Exp $ - # Script to pre-process XML input before processing it for various purposes. # Options specify which transformations are to be done. Monospaced literal # layout blocks are never touched. # Changes: -# -abstract: Remove the element - -# -ascii: Replace &8230; (sic, no x) with ... -# Replace ’ by ' -# Replace “ by " -# Replace ” by " -# Replace – by - -# Replace † by * -# Replace ‡ by ** -# Replace   by a space -# Replace © by (c) -# Put quotes round text +# -ascii: Replace ’ by ' +# Replace © by (c) +# Replace † by * +# Replace ‡ by ** +# Replace   by a space +# Replace – by - # Put quotes round text # +# -quoteliteral: +# Put quotes round text +# # -bookinfo: Remove the element from the file # # -fi: Replace "fi" by fi except when it is in an XML element, or @@ -29,16 +24,22 @@ # # -html: Certain things are done only for HTML output: # -# If is followed by optional # space and then a +# If is followed by optional space and then a # newline, the space and newline are removed, because otherwise you # get a blank line in the HTML output. # -# -noindex Remove the XML to generate a Concept and an Options index. +# -noindex Remove the XML that generates indexes. # -oneindex Ditto, but add XML to generate a single index. +# +# -optbreak Insert an optional line break (zero-width space, ​) after +# every underscore in text within "; $inliteral = 0; $_ = "$2\n"; @@ -172,7 +177,7 @@ while () { print &process($1); print ""; - print "\"" if $ascii && !$inliterallayout; + print "\"" if $quoteliteral && !$inliterallayout; $inliteral = 1; $_ = "$2\n"; }