From 64d83c2f6f774ff0810cea26ed28085d852c794e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 1 Nov 2011 16:15:29 -0700 Subject: * genman.txr: Use filter for mapping month digits to names. Added comment about where to find the right man2html. --- ChangeLog | 5 +++++ genman.txr | 47 +++++++++-------------------------------------- 2 files changed, 14 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index 873a2371..fbffb5f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-01 Kaz Kylheku + + * genman.txr: Use filter for mapping month digits to names. + Added comment about where to find the right man2html. + 2011-11-01 Kaz Kylheku * txr.vim: Added installation instructions. diff --git a/genman.txr b/genman.txr index d56b7c65..0996bb32 100644 --- a/genman.txr +++ b/genman.txr @@ -1,3 +1,11 @@ +@# This requires the man2html which was originally known as vh-man2html +@# and is now part of manutils. +@# See here: http://primates.ximian.com/~flucifredi/man/ +@# It does not work with that other man2html written in Perl. +@(deffilter month_name + ("01" "Jan") ("02" "Feb") ("03" "Mar") ("04" "Apr") + ("05" "May") ("06" "Jun") ("07" "Jul") ("08" "Aug") + ("09" "Sep") ("10" "Oct") ("11" "Nov") ("12" "Dec")) Content-type: text/html @(skip 15)

txr

@@ -20,50 +28,13 @@ txr - text extractor @VERSION @(until) This document was created by @(end) -@(maybe) -@ (bind MONTH "01") -@ (bind MNAME "Jan") -@(or) -@ (bind MONTH "02") -@ (bind MNAME "Feb") -@(or) -@ (bind MONTH "03") -@ (bind MNAME "Mar") -@(or) -@ (bind MONTH "04") -@ (bind MNAME "Apr") -@(or) -@ (bind MONTH "05") -@ (bind MNAME "May") -@(or) -@ (bind MONTH "06") -@ (bind MNAME "Jun") -@(or) -@ (bind MONTH "07") -@ (bind MNAME "Jul") -@(or) -@ (bind MONTH "08") -@ (bind MNAME "Aug") -@(or) -@ (bind MONTH "09") -@ (bind MNAME "Sep") -@(or) -@ (bind MONTH "10") -@ (bind MNAME "Oct") -@(or) -@ (bind MONTH "11") -@ (bind MNAME "Nov") -@(or) -@ (bind MONTH "12") -@ (bind MNAME "Dec") -@(end) @(output) Manpage for txr @VERSION

Manpage for Txr @VERSION

-

@MNAME @DAY, @YEAR

+

@{MONTH :filter month_name} @DAY, @YEAR

@(repeat) @TOC @(end) -- cgit v1.2.3