koi8-r mandoc tweaks

Submitted by: "Alexey Zelkin" <phantom@crimea.edu>
This commit is contained in:
ache 1999-09-11 19:49:21 +00:00
parent 1ed5495243
commit 1097230631
2 changed files with 222 additions and 0 deletions

View File

@ -0,0 +1,209 @@
.\"
.\" Copyright (C) 1999 Alexey M. Zelkin <phantom@crimea.edu>,
.\" Simferopol, Urkaine
.\"
.\" This file is addition to groff package. It allows to translate Section
.\" Headers (.Sh) and correctly display man page header and footer. It
.\" also contains translated version of .Dt macros (.DtL).
.\" Current translation: Russian (ru_RU.KOI8-R)
.\"
.\" $FreeBSD$
.\"
.\" Localized (russian) .Sh macro version for troff
.\" Original code derived from mdoc/doc-ditroff
.\"
.if t \{\
. rm Sh
. de Sh
. nr nS 0
. nr sE 0
. nr iS 0
' ad
. ie "\\$1"NAME" \{\
. hK
' in 0
. \}
. el \{\
. ie "\\$1"îáú÷áîéå" \{\
. hK
' in 0
. \}
. el \{\
. nr nS 0
. nr nA 0
. nr nF 0
. nr nT 0
. nr nY 0
. nr oT 0
. if "\\$1"SYNOPSIS" \{\
. na
. nr nS 1
. \}
. if "\\$1"DESCRIPTION" \{\
. nr fY 0
. nr fZ 0
. nr fB 0
. nr Fb 0
. ds Fb
. \}
. if "\\$1"SEE" \{\
. nr nA 1
. na
. \}
. if "\\$1"FILES" .nr nF 1
. if "\\$1"STANDARDS" .nr nT 1
. if "\\$1"AUTHORS" .nr nY 1
. if "\\$1"SEE" .nr sE 1
.\"
.\" russian chapter names
.\"
. if "\\$1"óéîôáëóéó" \{\
. na
. nr nS 1
. \}
. if "\\$1"ïðéóáîéå" \{\
. nr fY 0
. nr fZ 0
. nr fB 0
. nr Fb 0
. ds Fb
. \}
. if "\\$1"óíïôòé" \{\
. nr nA 1
. na
. \}
. if "\\$1"æáêìù" .nr nF 1
. if "\\$1"óôáîäáòôù" .nr nT 1
. if "\\$1"á÷ôïòù" .nr nY 1
. if "\\$1"óíïôòé" .nr sE 1
. in 0
. nr aN 0
. \}
. \}
. pL
' sp
. ns
. ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
. if !\\n(cR .ne 3
' fi
\&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
\&\fP\s0\&
. in \\n(.iu+\\n(Tiu
. ns
..
. \}
.\"
.\" Localized .Sh macro version for nroff
.\" Original code derived from mdoc/doc-nroff
.\"
.if n \{\
. rm Sh
. de Sh
. nr nS 0
. nr sE 0
. nr iS 0
. ie "\\$1"NAME" \{\
. hK
' in 0
. \}
. el \{\
. ie "\\$1"îáú÷áîéå" \{\
. hK
' in 0
. \}
. el \{\
. nr nS 0
. nr nA 0
. nr nF 0
. nr nT 0
. nr nY 0
. nr aN 0
. nr oT 0
. if "\\$1"SEE" .nr nA 1
. if "\\$1"FILES" .nr nF 1
. if "\\$1"STANDARDS" .nr nT 1
. if "\\$1"SYNOPSIS" .nr nS 1
. if "\\$1"DESCRIPTION" \{\
. rr fB
. rr Fb
. ds Fb
. nr fY 0
. nr fZ 0
. \}
. if "\\$1"AUTHORS" .nr nY 1
.\"
.\" russian chapters names
.\"
. if "\\$1"óíïôòé" .nr nA 1
. if "\\$1"æáêìù" .nr nF 1
. if "\\$1"óôáîäáòôù" .nr nT 1
. if "\\$1"óéîôáëóéó" .nr nS 1
. if "\\$1"ïðéóáîéå" \{\
. rr fB
. rr Fb
. ds Fb
. nr fY 0
. nr fZ 0
. \}
. if "\\$1"á÷ôïòù" .nr nY 1
. in 0
. \}
. \}
. pL
' sp
. ns
. ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
. if !\\n(cR .ne 3
' fi
\&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
\&\fP\s0\&
. in \\n(.iu+\\n(Tiu
. if "\\$1"SEE" .nr sE 1
. if "\\$1"óíïôòé" .nr sE 1
. ns
..
.\}
.\"
.\" .Dt macro replacement for localized manpages (.DtL)
.\" Original code derived from mdoc/doc-common
.\"
.de DtL
.ds dT UNTITLED
.ds vT LOCAL
.ds cH Null
.if !"\\$1"" .ds dT \\$1
.if !"\\$2"" \{\
. ds cH \\$2
. if \\$2>=1 .if \\$2<=9 \{\
. ds vT óÐÒÁ×ÏÞÎÉË FreeBSD
. if "\\$2"1" .ds vT óÐÒÁ×ÏÞÎÉË ïÓÎÏ×ÎÙÈ ëÏÍÁÎÄ FreeBSD
. if "\\$2"2" .ds vT óÐÒÁ×ÏÞÎÉË óÉÓÔÅÍÎÙÈ ÷ÙÚÏ×Ï× FreeBSD
. if "\\$2"3" .ds vT óÐÒÁ×ÏÞÎÉË âÉÂÌÉÏÔÅÞÎÙÈ æÕÎËÃÉÊ FreeBSD
. if "\\$2"4" .ds vT óÐÒÁ×ÏÞÎÉË éÎÔÅÒÆÅÊÓÏ× ñÄÒÁ FreeBSD
. if "\\$2"5" .ds vT óÐÒÁ×ÏÞÎÉË æÏÒÍÁÔÏ× æÁÊÌÏ× FreeBSD
. if "\\$2"6" .ds vT óÐÒÁ×ÏÞÎÉË éÇÒ FreeBSD
. if "\\$2"7" .ds vT óÐÒÁ×ÏÞÎÉË òÁÚÎÏÊ éÎÆÏÒÍÁÃÉÉ FreeBSD
. if "\\$2"8" .ds vT óÐÒÁ×ÏÞÎÉË óÉÓÔÅÍÎÏÇÏ áÄÍÉÎÉÓÔÒÁÔÏÒÁ FreeBSD
. if "\\$2"9" .ds vT óÐÒÁ×ÏÞÎÉË òÁÚÒÁÂÏÔÞÉËÁ ñÄÒÁ FreeBSD
. nr sN \\$2
. \}
. if "\\$2"unass" .ds vT DRAFT
. if "\\$2"draft" .ds vT DRAFT
. if "\\$2"paper" .ds vT UNTITLED
.\}
.if !"\\$3"" \{\
. if "\\$3"USD" .ds vT FreeBSD äÏÐÏÌÎÉÔÅÌØÎÙÅ äÏËÕÍÅÎÔÙ ÄÌÑ ðÏÌØÚÏ×ÁÔÅÌÑ
. if "\\$3"PS1" .ds vT FreeBSD äÏÐÏÌÎÉÔÅÌØÎÙÅ äÏËÕÍÅÎÔÙ ÄÌÑ ðÒÏÇÒÁÍÍÉÓÔÁ
. if "\\$3"AMD" .ds vT FreeBSD äÏËÕÍÅÎÔÙ õÎÁÓÌÅÄÏ×ÁÎÎÏÇÏ óÐÒÁ×ÏÞÎÉËÁ
. if "\\$3"SMM" .ds vT FreeBSD òÕËÏ×ÏÄÓÔ×Ï óÉÓÔÅÍÎÏÇÏ áÄÍÉÎÉÓÔÒÁÔÏÒÁ
. if "\\$3"URM" .ds vT FreeBSD óÐÒÁ×ÏÞÎÏÅ òÕËÏ×ÏÄÓÔ×Ï
. if "\\$3"PRM" .ds vT FreeBSD òÕËÏ×ÏÄÓÔ×Ï ðÒÏÇÒÁÍÍÉÓÔÁ
. if "\\$3"IND" .ds vT FreeBSD ïÓÎÏ×ÎÏÊ ðÒÅÄÍÅÔÎÙÊ õËÁÚÁÔÅÌØ óÐÒÁ×ÏÞÎÉËÁ
. if "\\$3"LOCAL" .ds vT FreeBSD ìÏËÁÌØÎÙÊ óÐÒÁ×ÏÞÎÉË
. if "\\$3"tahoe" .as vT \ (áÒÈÉÔÅËÔÕÒÁ Tahoe)
. if "\\$3"vax" .as vT \ (áÒÈÉÔÅËÔÕÒÁ VAX)
. if "\\$3"hp300" .as vT \ (áÒÈÉÔÅËÔÕÒÁ HP300)
. if "\\$3"i386" .as vT \ (áÒÈÉÔÅËÔÕÒÁ i386)
. if "\\*(vT"LOCAL" .ds vT \\$3
.\}
..

View File

@ -0,0 +1,13 @@
.\"
.\" Copyright (C) 1999 Alexey M. Zelkin <phantom@crimea.edu>,
.\" Simferopol, Crimea, Urkaine
.\"
.\" DESC
.\"
.\" $FreeBSD$
.\"
.\" Include [tg]roff russian translated if [tg]roff invoked with -Tkoi8-r.
.\"
.if "\*[.T]"koi8-r" \{\
. sOl koi8-r
.\}