1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
# SED post processing rule
#
# These are used to avoid asciidoc formatting conflict
#
s/@@@amp@@@/\&/g
s/@@@dlt@@@/\<\</g
# bare characters
s/@@@(@@@/{/g
s/@@@)@@@/}/g
s/@@@ampbare@@@/\&/g
s/@@@plus@@@/+/g
s/@@@slash@@@/\//g
s/@@@grave@@@/`/g
s/@@@star@@@/*/g
s/@@@hat@@@/^/g
s/@@@ul@@@/_/g
s/@@@sq@@@/'/g
s/@@@dq@@@/"/g
s/@@@lt@@@/</g
s/@@@gt@@@/>/g
#
# Fix funny conversion
# convert <=> properly to ⇔ via <⇒
s/<→/↔/g
s/<⇒/⇔/g
# -- with no space following are used for leading command line options
s/—\([^ ]\)/--\1/g
#
# Other possible ones (not used)
#
#s/@@@quot@@@/"/g
#s/@@@bar@@@/|/g
#s/@@@bang@@@/!/g
#s/@@@hash@@@/#/g
#s/@@@doller@@@/$/g
#s/@@@percent@@@/%/g
#s/@@@tilda@@@/~/g
#s/@@@minus@@@/-/g
#s/@@@equal@@@/=/g
#
# manpages
s,<literal>\([^<]*\)</literal>(\([^)]*\)),<citerefentry><refentrytitle>\1</refentrytitle><manvolnum>\2</manvolnum></citerefentry>,g
|