wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

header.t2t (1149B)


      1 %!target: man
      2 %!encoding: UTF-8
      3 
      4 % Special formatting for certain constructs. They, unfortunately
      5 % have to be post-processed. The _italic_ hack is necessary for
      6 % italicising things like /_foo_/, which txt2tags will ignore.
      7 % The others need to work in ``` lines.
      8 %!preproc(man): \bPROVISIONAL\b  **PROVISIONAL**
      9 %!postproc(man): (<.*?>)         \\fI\1\\fR
     10 %!postproc(man): \b_(.*?)_       \\fI\1\\fR
     11 %!postproc(man): \\e_            _
     12 %!postproc(man): `(.*?)`         \\fB\1\\fR
     13 %!postproc(man): \[(.*?)\]       [\\fI\1\\fR]
     14 %!postproc(man): \+$             \n.P
     15 %!postproc(man): (\$[a-zA-Z_]+)  \\fB\1\\fR
     16 %!postproc(man): (\${[a-zA-Z_]+)(.*?)} \\fB\1\\fR\2\\fB}\\fR
     17 
     18 %!postproc(html): (<.*?>)   (:arg \1:)
     19 %!postproc(html): \b_(.*?)_ (:emph \1:)
     20 %!postproc(html): `(.*?)`   (:code \1:)
     21 %!postproc(html): \+$       <br/>
     22 
     23 %!postproc(html) \(:(\w+)\s*(.*):\) <span class="\1">\2</span>
     24 
     25 % Well, it seems that txt2tags isn't particularly well suited
     26 % to troff output. These two hacks make multi-level definition
     27 % lists possible.
     28 %!postproc(man): ^\s*>>$ .RS 8
     29 %!postproc(man): ^\s*<<$ .RS -8
     30 
     31 %!postproc(html): ^\s*>>$
     32 %!postproc(html): ^\s*<<$
     33