mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
VNroff converts VIQR format Vietnamese characters into troff format so
groff/troff can print it out.
This commit is contained in:
parent
a5b245b377
commit
ac4e289cb8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5090
38
vietnamese/vnroff/Makefile
Normal file
38
vietnamese/vnroff/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# ex:ts=8
|
||||
# Ports collection makefile for: vnTeX
|
||||
# Version required: 2.0
|
||||
# Date created: Monday, Dec 9, 1996
|
||||
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
||||
#
|
||||
# $Id: Makefile,v 1.1.1.1 1996/08/09 04:17:16 asami Exp $
|
||||
#
|
||||
|
||||
PKGNAME= vn-vnroff-2.0
|
||||
CATEGORIES= vietnamese
|
||||
MASTER_SITES= ftp://ftp.media.mit.edu/pub/Vietnet/Viscii/Troff/
|
||||
DISTFILES= vnroff.c.Z vnroff.1.Z
|
||||
|
||||
MAINTAINER= obrien@cs.ucdavis.edu
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
MAN1= vnroff.1
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@(cd ${WRKDIR} && ${GZCAT} ${DISTDIR}/vnroff.c.Z \
|
||||
| /usr/bin/sed -e '1,/-cut here-/d' \
|
||||
> vnroff.c)
|
||||
@(cd ${WRKDIR} && ${GZCAT} ${DISTDIR}/vnroff.1.Z \
|
||||
| /usr/bin/sed -e '1,/Status:/d' -e '//,//d' \
|
||||
| /usr/bin/sed -e '1,1d' \
|
||||
> vnroff.1)
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o vnroff vnroff.c)
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vnroff ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/vnroff.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
2
vietnamese/vnroff/distinfo
Normal file
2
vietnamese/vnroff/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (vnroff.c.Z) = 873d72108800be359a51e8c3a18cdbec
|
||||
MD5 (vnroff.1.Z) = 50331cee1a7e715db25c32311901154b
|
20
vietnamese/vnroff/files/patch-01
Normal file
20
vietnamese/vnroff/files/patch-01
Normal file
@ -0,0 +1,20 @@
|
||||
--- vnroff.c.orig Tue Dec 10 04:12:31 1996
|
||||
+++ vnroff.c Tue Dec 10 04:13:02 1996
|
||||
@@ -19,7 +19,7 @@
|
||||
* #define Dau_Mu '^' *
|
||||
* #define Dau_Trang '(' *
|
||||
* #define Dau_Rau '+' *
|
||||
- * #define Escape_Symbol '#' *
|
||||
+ * #define Escape_Symbol '\\' *
|
||||
* *
|
||||
* Change them to any symbol you are comfortable with. *
|
||||
* *
|
||||
@@ -54,7 +54,7 @@
|
||||
#define Dau_Mu '^'
|
||||
#define Dau_Trang '('
|
||||
#define Dau_Rau '+'
|
||||
-#define Escape_Symbol '#'
|
||||
+#define Escape_Symbol '\\'
|
||||
|
||||
#define NON 0 /* ^ as in a^ */
|
||||
#define RAU 1 /* + as in u+, o+ */
|
51
vietnamese/vnroff/files/patch-02
Normal file
51
vietnamese/vnroff/files/patch-02
Normal file
@ -0,0 +1,51 @@
|
||||
--- vnroff.1.orig Wed Dec 25 04:16:16 1996
|
||||
+++ vnroff.1 Wed Dec 25 04:29:49 1996
|
||||
@@ -1,21 +1,21 @@
|
||||
.TH vnroff 1
|
||||
.SH NAME
|
||||
-vnroff \- Vietnamese pre-processor for troff
|
||||
+vnroff \- Vietnamese pre-processor for groff
|
||||
.SH SYNTAX
|
||||
.B vnroff
|
||||
-filename | troff [\fItroff-options\fR]
|
||||
+filename | groff [\fIgroff-options\fR]
|
||||
.SH DESCRIPTION
|
||||
-.NXB "troff command"
|
||||
+.NXB "groff command"
|
||||
This program processes a text file with special Vietnamese character
|
||||
sequences giving an output suitable for
|
||||
-.I troff(1)
|
||||
+.I groff(1)
|
||||
processing.
|
||||
The output should work for all point sizes supported by
|
||||
-.I troff(1)
|
||||
+.I groff(1)
|
||||
.sp
|
||||
The default diacritical marks are defined as:
|
||||
.br
|
||||
- Dau_Sac \\
|
||||
+ Dau_Sac \'
|
||||
Dau_Huyen `
|
||||
Dau_Hoi ?
|
||||
Dau_Nga ~
|
||||
@@ -23,7 +23,7 @@
|
||||
Dau_Mu ^
|
||||
Dau_Trang (
|
||||
Dau_Rau +
|
||||
- Escape_Symbol #
|
||||
+ Escape_Symbol \\
|
||||
.sp
|
||||
.SH SPELLING RULES
|
||||
Only one diacritical mark:
|
||||
@@ -43,7 +43,10 @@
|
||||
.br
|
||||
i.e: the question Anh ddi dda^u?
|
||||
.br
|
||||
- should be typed Anh ddi dda^u#?
|
||||
+ should be typed Anh ddi dda^u\\?
|
||||
+.SH SEE ALSO
|
||||
+groff(1),
|
||||
+troff(1)
|
||||
.SH AUTHORS
|
||||
Written in Pascal by Hu+~u (University of California at Berkeley).
|
||||
Converted to C & modified by Tra^`n H. Nha^n (Concurrent Computer).
|
1
vietnamese/vnroff/pkg-comment
Normal file
1
vietnamese/vnroff/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
converts Vietnamese VIQR text into troff format
|
7
vietnamese/vnroff/pkg-descr
Normal file
7
vietnamese/vnroff/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
VNroff converts VIQR format Vietnamese characters into troff format so
|
||||
groff/troff can print it out.
|
||||
|
||||
To use this program:
|
||||
|
||||
vnroff file | groff | ... or
|
||||
vnroff file | whater_program_that_print_out_a_troff_file
|
2
vietnamese/vnroff/pkg-plist
Normal file
2
vietnamese/vnroff/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/vnroff
|
||||
man/man1/vnroff.1.gz
|
Loading…
Reference in New Issue
Block a user