From ae707ac1976ac69aebe971c7e9e2705a3abc05c5 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 12 Apr 2009 17:56:35 +0000 Subject: [PATCH] Install some default transliterations for man pages. If nroff is used with ASCII as output, encode the German umlaut and szet characters with the normal transliteration rules. OK wiz@ --- distrib/sets/lists/text/mi | 3 ++- gnu/dist/groff/tmac/ascii.tmac | 8 ++++++++ gnu/dist/groff/tmac/tty.tmac | 4 +++- gnu/usr.bin/groff/tmac/Makefile | 4 ++-- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 gnu/dist/groff/tmac/ascii.tmac diff --git a/distrib/sets/lists/text/mi b/distrib/sets/lists/text/mi index 5e6e824fda09..996e03b85083 100644 --- a/distrib/sets/lists/text/mi +++ b/distrib/sets/lists/text/mi @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.31 2008/08/29 06:08:40 lukem Exp $ +# $NetBSD: mi,v 1.32 2009/04/12 17:56:35 joerg Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -602,6 +602,7 @@ ./usr/share/tmac/an-old.tmac text-groff-share share ./usr/share/tmac/an.tmac text-groff-share share ./usr/share/tmac/andoc.tmac text-groff-share share +./usr/share/tmac/ascii.tmac text-groff-share share ./usr/share/tmac/composite.tmac text-groff-share share ./usr/share/tmac/cp1047.tmac text-groff-share share ./usr/share/tmac/devtag.tmac text-groff-share share diff --git a/gnu/dist/groff/tmac/ascii.tmac b/gnu/dist/groff/tmac/ascii.tmac new file mode 100644 index 000000000000..ce6cded7f05b --- /dev/null +++ b/gnu/dist/groff/tmac/ascii.tmac @@ -0,0 +1,8 @@ +.\" Transliterate non-ASCII characters for use in man pages etc. +.fchar \(:a ae +.fchar \(:o oe +.fchar \(:u ue +.fchar \(:A Ae +.fchar \(:O Oe +.fchar \(:U Ue +.fchar \(ss ss diff --git a/gnu/dist/groff/tmac/tty.tmac b/gnu/dist/groff/tmac/tty.tmac index 8d69253b1767..71e8add54a98 100644 --- a/gnu/dist/groff/tmac/tty.tmac +++ b/gnu/dist/groff/tmac/tty.tmac @@ -83,7 +83,9 @@ .ie '\*(.T'cp1047' \ . do mso cp1047.tmac .el \ -. if !'\*(.T'ascii' \ +. if '\*(.T'ascii' \ +. do mso ascii.tmac +. el \ . do mso latin1.tmac . .\" If you want the character definitions in tty-char.tmac to be loaded diff --git a/gnu/usr.bin/groff/tmac/Makefile b/gnu/usr.bin/groff/tmac/Makefile index af0f69db1885..e6d9b5e6ee68 100644 --- a/gnu/usr.bin/groff/tmac/Makefile +++ b/gnu/usr.bin/groff/tmac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2008/10/25 22:27:35 apb Exp $ +# $NetBSD: Makefile,v 1.25 2009/04/12 17:56:35 joerg Exp $ # $FreeBSD: src/gnu/usr.bin/groff/tmac/Makefile,v 1.41 2003/05/01 13:22:21 ru Exp $ @@ -26,7 +26,7 @@ NORMALFILES= mandoc.tmac andoc.tmac an-old.tmac \ ps.tmac psold.tmac pspic.tmac psatk.tmac \ dvi.tmac \ tty.tmac tty-char.tmac \ - latin1.tmac latin2.tmac latin9.tmac cp1047.tmac \ + latin1.tmac latin2.tmac latin9.tmac cp1047.tmac ascii.tmac \ unicode.tmac \ X.tmac Xps.tmac \ lj4.tmac \