2009-05-14 21:07:41 +04:00
|
|
|
%!target: man
|
|
|
|
%!encoding: UTF-8
|
|
|
|
|
|
|
|
% Special formatting for certain constructs. They, unfortunately
|
|
|
|
% have to be post-processed. The _italic_ hack is necessary for
|
|
|
|
% italicising things like /_foo_/, which txt2tags will ignore.
|
|
|
|
% The others need to work in ``` lines.
|
2010-06-02 06:38:33 +04:00
|
|
|
%!preproc(man): \bPROVISIONAL\b **PROVISIONAL**
|
2009-09-28 21:11:11 +04:00
|
|
|
%!postproc(man): (<.*?>) \\fI\1\\fR
|
|
|
|
%!postproc(man): \b_(.*?)_ \\fI\1\\fR
|
2010-06-02 06:38:33 +04:00
|
|
|
%!postproc(man): \\e_ _
|
2009-09-28 21:11:11 +04:00
|
|
|
%!postproc(man): `(.*?)` \\fB\1\\fR
|
2011-06-01 20:40:07 +04:00
|
|
|
%!postproc(man): \[(.*?)\] [\\fI\1\\fR]
|
2009-09-28 21:11:11 +04:00
|
|
|
%!postproc(man): \+$ \n.P
|
|
|
|
%!postproc(man): (\$[a-zA-Z_]+) \\fB\1\\fR
|
|
|
|
%!postproc(man): (\${[a-zA-Z_]+)(.*?)} \\fB\1\\fR\2\\fB}\\fR
|
2009-05-14 21:07:41 +04:00
|
|
|
|
2009-09-28 21:11:11 +04:00
|
|
|
%!postproc(html): (<.*?>) (:arg \1:)
|
|
|
|
%!postproc(html): \b_(.*?)_ (:emph \1:)
|
|
|
|
%!postproc(html): `(.*?)` (:code \1:)
|
|
|
|
%!postproc(html): \+$ <br/>
|
2009-05-14 21:07:41 +04:00
|
|
|
|
|
|
|
%!postproc(html) \(:(\w+)\s*(.*):\) <span class="\1">\2</span>
|
|
|
|
|
|
|
|
% Well, it seems that txt2tags isn't particularly well suited
|
|
|
|
% to troff output. These two hacks make multi-level definition
|
|
|
|
% lists possible.
|
|
|
|
%!postproc(man): ^\s*>>$ .RS 8
|
|
|
|
%!postproc(man): ^\s*<<$ .RS -8
|
|
|
|
|
|
|
|
%!postproc(html): ^\s*>>$
|
|
|
|
%!postproc(html): ^\s*<<$
|
|
|
|
|