summaryrefslogtreecommitdiffstats
path: root/contrib/groff/tmac
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-09-08 17:46:33 +0000
committerru <ru@FreeBSD.org>2003-09-08 17:46:33 +0000
commitf3ab4f716782c3dca46c3d508e4d82db5ec28158 (patch)
tree18e063b9a6db2fd6db9afea4c715dffd3f6b047b /contrib/groff/tmac
parent34b64980a461e5403f6727317e933b6356799546 (diff)
downloadFreeBSD-src-f3ab4f716782c3dca46c3d508e4d82db5ec28158.zip
FreeBSD-src-f3ab4f716782c3dca46c3d508e4d82db5ec28158.tar.gz
Unbreak Russian KOI8-R support.
Diffstat (limited to 'contrib/groff/tmac')
-rw-r--r--contrib/groff/tmac/eqnrc2
-rw-r--r--contrib/groff/tmac/troffrc14
-rw-r--r--contrib/groff/tmac/tty-char.tmac2
-rw-r--r--contrib/groff/tmac/tty.tmac7
4 files changed, 13 insertions, 12 deletions
diff --git a/contrib/groff/tmac/eqnrc b/contrib/groff/tmac/eqnrc
index 7c10296..e23db46 100644
--- a/contrib/groff/tmac/eqnrc
+++ b/contrib/groff/tmac/eqnrc
@@ -52,9 +52,9 @@ ifdef ps|X|html ! set draw_lines 1 !
ifdef ascii ! define n %1% !
ifdef latin1 ! define n %1% !
+ifdef koi8-r ! define n %1% !
ifdef utf8 ! define n %1% !
ifdef cp1047 ! define n %1% !
-ifdef koi8-r ! define n %1% !
ifdef n !
set nroff 1
!
diff --git a/contrib/groff/tmac/troffrc b/contrib/groff/tmac/troffrc
index fb7c6c4..231a66c 100644
--- a/contrib/groff/tmac/troffrc
+++ b/contrib/groff/tmac/troffrc
@@ -28,7 +28,10 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp troffrc!html
.
.\" test whether we work under EBCDIC
.do ie '\[char97]'a' \
-. if !"\*[.T]"koi8-r" .do tr \[char160]\~
+. ie '\*[.T]'koi8-r' \
+. do tr \[char154]\~
+. el \
+. do tr \[char160]\~
.el \
. do tr \[char65]\~
.
@@ -38,13 +41,8 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp troffrc!html
.\" Load hyphenation patterns and exceptions.
.do hpf hyphen.us
.do hpfa hyphenex.us
-.
-.if "\*[.T]"koi8-r" \{\
-.
-.\" Append hyphenation patterns from `hyphen.ru' (in the tmac directory).
-.do hpfa hyphen.ru
-.
-.\}
+.if '\*[.T]'koi8-r' \
+. do hpfa hyphen.ru
.
.\" Load composite mappings.
.do mso composite.tmac
diff --git a/contrib/groff/tmac/tty-char.tmac b/contrib/groff/tmac/tty-char.tmac
index c5483ac..b7cf2e3 100644
--- a/contrib/groff/tmac/tty-char.tmac
+++ b/contrib/groff/tmac/tty-char.tmac
@@ -227,5 +227,7 @@
.
.ie '\*(.T'cp1047' \
. do mso cp1047.tmac
+.el .ie '\*(.T'koi8-r' \
+. do mso koi8-r.tmac
.el \
. do mso latin1.tmac
diff --git a/contrib/groff/tmac/tty.tmac b/contrib/groff/tmac/tty.tmac
index 4b337fd..34fa11d 100644
--- a/contrib/groff/tmac/tty.tmac
+++ b/contrib/groff/tmac/tty.tmac
@@ -79,9 +79,10 @@
.
.ie '\*(.T'cp1047' \
. do mso cp1047.tmac
-.el \
-. if !'\*(.T'ascii' \
-. do mso latin1.tmac
+.el .ie '\*(.T'koi8-r' \
+. do mso koi8-r.tmac
+.el .if !'\*(.T'ascii' \
+. do mso latin1.tmac
.
.\" If you want the character definitions in tty-char.tmac to be loaded
.\" automatically, remove the `\"' from the next line.
OpenPOWER on IntegriCloud