X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=doc%2Fdoc-docbook%2FPre-xml;h=6c017e7c8b0dca87716ab70febb42fc1986cb780;hb=436bda2ac0c4a245815db3fc1ef2aedee05eab8d;hp=4e28ada091c9d85bef7b9c546bc2afbff9261cc3;hpb=068aaea8b5ac80809a1b860f63c625b3ea389ded;p=exim.git 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"; }