mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Add man/header.t2t
This commit is contained in:
parent
44f64227d9
commit
51808c1185
29
man/header.t2t
Normal file
29
man/header.t2t
Normal file
@ -0,0 +1,29 @@
|
||||
%!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.
|
||||
%!postproc(man): (<.*?>) \\fI\1\\fR
|
||||
%!postproc(man): _(.*?)_ \\fI\1\\fR
|
||||
%!postproc(man): `(.*?)` \\fB\1\\fR
|
||||
%!postproc(man): (\[.*?\]) \\fI\1\\fR
|
||||
%!postproc(man): \+$ \n.P
|
||||
|
||||
%!postproc(html): (<.*?>) (:arg \1:)
|
||||
%!postproc(html): _(.*?)_ (:emph \1:)
|
||||
%!postproc(html): `(.*?)` (:code \1:)
|
||||
%!postproc(html): \+$ <br/>
|
||||
|
||||
%!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*<<$
|
||||
|
Loading…
Reference in New Issue
Block a user