[hackers] [wmii] Add man/header.t2t || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 14 May 2009 17:13:25 +0000 (UTC)

changeset: 2451:10fb573a801e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu May 14 13:07:41 2009 -0400
files: man/header.t2t
description:
Add man/header.t2t

diff -r f8cdd1dd9c25 -r 10fb573a801e man/header.t2t
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/man/header.t2t Thu May 14 13:07:41 2009 -0400
@@ -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*<<$
+
Received on Thu May 14 2009 - 17:13:25 UTC

This archive was generated by hypermail 2.2.0 : Thu May 14 2009 - 17:24:06 UTC