Index: head/vietnamese/vnpstext/files/patch-01 =================================================================== --- head/vietnamese/vnpstext/files/patch-01 (revision 363338) +++ head/vietnamese/vnpstext/files/patch-01 (nonexistent) @@ -1,12 +0,0 @@ ---- Makefile.orig Thu May 14 21:59:59 1992 -+++ Makefile Sat Dec 7 23:15:47 1996 -@@ -4,7 +4,8 @@ - - .SUFFIXES: .src .ps .pro - --DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" -+#DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" -+DEFAULT_PSLIBDIR = "\"$(DESTDIR)$(PREFIX)/share/vn-fonts\"" - - SHELL = /bin/sh - VNLIBDIR= ../lib Property changes on: head/vietnamese/vnpstext/files/patch-01 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-02 =================================================================== --- head/vietnamese/vnpstext/files/patch-02 (revision 363338) +++ head/vietnamese/vnpstext/files/patch-02 (nonexistent) @@ -1,11 +0,0 @@ ---- ../lib/vntype/Makefile.orig Sat Jun 6 00:05:40 1992 -+++ ../lib/vntype/Makefile Sat Dec 7 23:17:27 1996 -@@ -15,7 +15,7 @@ - #FLAGS = -DNOANSI_C - CFLAGS = $(FLAGS) $(INC) - CC = cc --CPP = /lib/cpp -+CPP = cpp - - .c.o: - $(CC) $(CFLAGS) -c $*.c Property changes on: head/vietnamese/vnpstext/files/patch-02 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-03 =================================================================== --- head/vietnamese/vnpstext/files/patch-03 (revision 363338) +++ head/vietnamese/vnpstext/files/patch-03 (nonexistent) @@ -1,31 +0,0 @@ ---- ./vnpstext.c.orig 1992-09-02 23:01:59.000000000 +0200 -+++ ./vnpstext.c 2013-05-27 16:27:32.390245389 +0200 -@@ -86,7 +86,8 @@ - dofile(input) - FILE *input; - { -- u_char line[1024]; -+#define LINESIZE 1024 -+ u_char line[LINESIZE]; - register u_char *s; - register int pageno = 1; - register short col = 0; -@@ -95,7 +96,8 @@ - - printf("StartDoc\n"); - -- while (gets(line)) { -+ while (fgets(line, LINESIZE, stdin)) { -+ if (line[ strlen(line) - 1 ] == '\n') line[ strlen(line) - 1 ] = '\0'; - if (!*line) printf("B\n"); - else { - -@@ -180,7 +182,7 @@ - printf("/S{Lcheck count{gsave show grestore}repeat 0 ld rmoveto}def\n"); - printf("/L{Lcheck ld mul 0 exch rmoveto}def\n"); - printf("/B{Lcheck 0 ld rmoveto}def\n"); -- return; -+ return NULL; - } - - /* filename specified, use it */ Property changes on: head/vietnamese/vnpstext/files/patch-03 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-04 =================================================================== --- head/vietnamese/vnpstext/files/patch-04 (revision 363338) +++ head/vietnamese/vnpstext/files/patch-04 (nonexistent) @@ -1,20 +0,0 @@ ---- vnpstext.1V.orig Thu May 14 21:43:57 1992 -+++ vnpstext.1V Sun Dec 8 02:13:22 1996 -@@ -41,7 +41,7 @@ - .PP - The location of the prolog file can either be - the current directory, or in --.I /usr/local/lib/ps. -+.I /usr/local/share/vn-fonts. - The latter setting may be overridden by - the environment variable - .I PSLIBDIR. -@@ -113,7 +113,7 @@ - Lines are not wrapped. If a line is too long to - fit across a page width, it is truncated (by the printer). - .SH FILES --.IP \fI/usr/local/lib/ps:\fP 20m -+.IP \fI/usr/local/share/vn-fonts:\fP 20m - default prolog search directory - .IP \fIinitcour.ps:\fP 20m - Vietnamese Courier font file to download to the printer. Property changes on: head/vietnamese/vnpstext/files/patch-04 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-Makefile =================================================================== --- head/vietnamese/vnpstext/files/patch-Makefile (nonexistent) +++ head/vietnamese/vnpstext/files/patch-Makefile (revision 363339) @@ -0,0 +1,12 @@ +--- Makefile.orig Thu May 14 21:59:59 1992 ++++ Makefile Sat Dec 7 23:15:47 1996 +@@ -4,7 +4,8 @@ + + .SUFFIXES: .src .ps .pro + +-DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" ++#DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" ++DEFAULT_PSLIBDIR = "\"$(DESTDIR)$(PREFIX)/share/vn-fonts\"" + + SHELL = /bin/sh + VNLIBDIR= ../lib Property changes on: head/vietnamese/vnpstext/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile =================================================================== --- head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile (nonexistent) +++ head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile (revision 363339) @@ -0,0 +1,11 @@ +--- ../lib/vntype/Makefile.orig Sat Jun 6 00:05:40 1992 ++++ ../lib/vntype/Makefile Sat Dec 7 23:17:27 1996 +@@ -15,7 +15,7 @@ + #FLAGS = -DNOANSI_C + CFLAGS = $(FLAGS) $(INC) + CC = cc +-CPP = /lib/cpp ++CPP = cpp + + .c.o: + $(CC) $(CFLAGS) -c $*.c Property changes on: head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-vnpstext.1V =================================================================== --- head/vietnamese/vnpstext/files/patch-vnpstext.1V (nonexistent) +++ head/vietnamese/vnpstext/files/patch-vnpstext.1V (revision 363339) @@ -0,0 +1,20 @@ +--- vnpstext.1V.orig Thu May 14 21:43:57 1992 ++++ vnpstext.1V Sun Dec 8 02:13:22 1996 +@@ -41,7 +41,7 @@ + .PP + The location of the prolog file can either be + the current directory, or in +-.I /usr/local/lib/ps. ++.I /usr/local/share/vn-fonts. + The latter setting may be overridden by + the environment variable + .I PSLIBDIR. +@@ -113,7 +113,7 @@ + Lines are not wrapped. If a line is too long to + fit across a page width, it is truncated (by the printer). + .SH FILES +-.IP \fI/usr/local/lib/ps:\fP 20m ++.IP \fI/usr/local/share/vn-fonts:\fP 20m + default prolog search directory + .IP \fIinitcour.ps:\fP 20m + Vietnamese Courier font file to download to the printer. Property changes on: head/vietnamese/vnpstext/files/patch-vnpstext.1V ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/vietnamese/vnpstext/files/patch-vnpstext.c =================================================================== --- head/vietnamese/vnpstext/files/patch-vnpstext.c (nonexistent) +++ head/vietnamese/vnpstext/files/patch-vnpstext.c (revision 363339) @@ -0,0 +1,31 @@ +--- ./vnpstext.c.orig 1992-09-02 23:01:59.000000000 +0200 ++++ ./vnpstext.c 2013-05-27 16:27:32.390245389 +0200 +@@ -86,7 +86,8 @@ + dofile(input) + FILE *input; + { +- u_char line[1024]; ++#define LINESIZE 1024 ++ u_char line[LINESIZE]; + register u_char *s; + register int pageno = 1; + register short col = 0; +@@ -95,7 +96,8 @@ + + printf("StartDoc\n"); + +- while (gets(line)) { ++ while (fgets(line, LINESIZE, stdin)) { ++ if (line[ strlen(line) - 1 ] == '\n') line[ strlen(line) - 1 ] = '\0'; + if (!*line) printf("B\n"); + else { + +@@ -180,7 +182,7 @@ + printf("/S{Lcheck count{gsave show grestore}repeat 0 ld rmoveto}def\n"); + printf("/L{Lcheck ld mul 0 exch rmoveto}def\n"); + printf("/B{Lcheck 0 ld rmoveto}def\n"); +- return; ++ return NULL; + } + + /* filename specified, use it */ Property changes on: head/vietnamese/vnpstext/files/patch-vnpstext.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/vietnamese/vnroff/files/patch-01 =================================================================== --- head/vietnamese/vnroff/files/patch-01 (revision 363338) +++ head/vietnamese/vnroff/files/patch-01 (nonexistent) @@ -1,52 +0,0 @@ ---- vnroff.c.orig Sat May 20 11:32:08 2000 -+++ vnroff.c Sat May 20 11:52:54 2000 -@@ -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. * - * * -@@ -29,8 +29,8 @@ - * 2 diacritical marks: vowel followed by Dau_Mu, Dau_Trang, Dau_Rau * - * then other symbols, i.e: a^' o+~ a(` ... * - * * -- * DD and dd: self-explanatory, you have to type DD or dd, Dd or dD * -- * will not work. You can change the code to ignore this. * -+ * DD and dd: self-explanatory, the resulting case is the same as the * -+ * first character of [Dd][Dd]. * - * * - * The Escape_Symbol is provided to avoid the confusion between the * - * diacritical marks and end-of-sentence symbols (. ; ? ! ...) * -@@ -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+ */ -@@ -308,7 +308,7 @@ - int ch,nextch,loai; - - if (argc < 2) { -- printf("Usage: vpp filename\n"); -+ printf("Usage: vnroff filename\n"); - exit(0); - } - if ((infile = fopen(argv[1],"r")) == NULL) { -@@ -344,9 +344,9 @@ - else - putchar(ch); - } -- else if (ch == 'D' || ch == 'd') { /* take care DD, dd */ -+ else if (toupper(ch) == 'D') { /* take care DD, dd */ - putchar(ch); -- if (nextchar() == ch) { -+ if (toupper(nextchar()) == toupper(ch)) { - getc(infile); - if (ch == 'd') - Move(0.30,0.35,'-'); Property changes on: head/vietnamese/vnroff/files/patch-01 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnroff/files/patch-02 =================================================================== --- head/vietnamese/vnroff/files/patch-02 (revision 363338) +++ head/vietnamese/vnroff/files/patch-02 (nonexistent) @@ -1,75 +0,0 @@ ---- vnroff.1.orig Tue Nov 27 17:28:57 2001 -+++ vnroff.1 Tue Nov 27 17:29:35 2001 -@@ -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) -+sequences (VIQR syntax) giving an output suitable for -+.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: -@@ -34,16 +34,31 @@ - .br - vowel followed by Dau_Mu, Dau_Trang, Dau_Rau then other symbols. - .sp --DD and dd: self-explanatory, you have to type DD or dd, -+DD and dd: self-explanatory, - .br -- Dd or dD will not work. You can change the code to ignore this. -+ the resulting case is the same as the first character of the sequence. - .sp - The Escape_Symbol is provided to avoid the confusion between the - diacritical marks and end-of-sentence symbols. - .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 STANDARDS -+Vietnamese Standard Code for Information Interchange (VISCII version 1.1, 1992) -+ http://www.vietstd.org/. -+.PP -+RFC 1456 Vietnamese Standardization Working Group, -+"Conventions for Encoding the Vietnamese Language -+.br -+VISCII: VIetnamese Standard Code for Information Interchange -+.br -+VIQR: VIetnamese Quoted-Readable Specification Revision 1.1", -+.br -+May 1993. - .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). Property changes on: head/vietnamese/vnroff/files/patch-02 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/vietnamese/vnroff/files/patch-vnroff.1 =================================================================== --- head/vietnamese/vnroff/files/patch-vnroff.1 (nonexistent) +++ head/vietnamese/vnroff/files/patch-vnroff.1 (revision 363339) @@ -0,0 +1,75 @@ +--- vnroff.1.orig Tue Nov 27 17:28:57 2001 ++++ vnroff.1 Tue Nov 27 17:29:35 2001 +@@ -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) ++sequences (VIQR syntax) giving an output suitable for ++.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: +@@ -34,16 +34,31 @@ + .br + vowel followed by Dau_Mu, Dau_Trang, Dau_Rau then other symbols. + .sp +-DD and dd: self-explanatory, you have to type DD or dd, ++DD and dd: self-explanatory, + .br +- Dd or dD will not work. You can change the code to ignore this. ++ the resulting case is the same as the first character of the sequence. + .sp + The Escape_Symbol is provided to avoid the confusion between the + diacritical marks and end-of-sentence symbols. + .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 STANDARDS ++Vietnamese Standard Code for Information Interchange (VISCII version 1.1, 1992) ++ http://www.vietstd.org/. ++.PP ++RFC 1456 Vietnamese Standardization Working Group, ++"Conventions for Encoding the Vietnamese Language ++.br ++VISCII: VIetnamese Standard Code for Information Interchange ++.br ++VIQR: VIetnamese Quoted-Readable Specification Revision 1.1", ++.br ++May 1993. + .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). Property changes on: head/vietnamese/vnroff/files/patch-vnroff.1 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/vietnamese/vnroff/files/patch-vnroff.c =================================================================== --- head/vietnamese/vnroff/files/patch-vnroff.c (nonexistent) +++ head/vietnamese/vnroff/files/patch-vnroff.c (revision 363339) @@ -0,0 +1,52 @@ +--- vnroff.c.orig Sat May 20 11:32:08 2000 ++++ vnroff.c Sat May 20 11:52:54 2000 +@@ -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. * + * * +@@ -29,8 +29,8 @@ + * 2 diacritical marks: vowel followed by Dau_Mu, Dau_Trang, Dau_Rau * + * then other symbols, i.e: a^' o+~ a(` ... * + * * +- * DD and dd: self-explanatory, you have to type DD or dd, Dd or dD * +- * will not work. You can change the code to ignore this. * ++ * DD and dd: self-explanatory, the resulting case is the same as the * ++ * first character of [Dd][Dd]. * + * * + * The Escape_Symbol is provided to avoid the confusion between the * + * diacritical marks and end-of-sentence symbols (. ; ? ! ...) * +@@ -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+ */ +@@ -308,7 +308,7 @@ + int ch,nextch,loai; + + if (argc < 2) { +- printf("Usage: vpp filename\n"); ++ printf("Usage: vnroff filename\n"); + exit(0); + } + if ((infile = fopen(argv[1],"r")) == NULL) { +@@ -344,9 +344,9 @@ + else + putchar(ch); + } +- else if (ch == 'D' || ch == 'd') { /* take care DD, dd */ ++ else if (toupper(ch) == 'D') { /* take care DD, dd */ + putchar(ch); +- if (nextchar() == ch) { ++ if (toupper(nextchar()) == toupper(ch)) { + getc(infile); + if (ch == 'd') + Move(0.30,0.35,'-'); Property changes on: head/vietnamese/vnroff/files/patch-vnroff.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property