X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/068aaea8b5ac80809a1b860f63c625b3ea389ded..9b3719888275859f10e5a8c6e87a92899abc0d95:/doc/doc-docbook/Pre-xml diff --git a/doc/doc-docbook/Pre-xml b/doc/doc-docbook/Pre-xml index 4e28ada09..4e606dd27 100755 --- a/doc/doc-docbook/Pre-xml +++ b/doc/doc-docbook/Pre-xml @@ -1,6 +1,6 @@ #! /usr/bin/perl -# $Cambridge: exim/doc/doc-docbook/Pre-xml,v 1.2 2005/11/10 12:30:13 ph10 Exp $ +# $Cambridge: exim/doc/doc-docbook/Pre-xml,v 1.3 2006/02/01 11:01:01 ph10 Exp $ # Script to pre-process XML input before processing it for various purposes. # Options specify which transformations are to be done. Monospaced literal @@ -8,20 +8,17 @@ # 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 +26,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. # -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 +179,7 @@ while () { print &process($1); print ""; - print "\"" if $ascii && !$inliterallayout; + print "\"" if $quoteliteral && !$inliterallayout; $inliteral = 1; $_ = "$2\n"; }