From 5a1f6c7d3ee4ad560496db73b7d031b43311f785 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 15:22:16 +0000 Subject: Rename vietnamese/ patch-xy patches to reflect the files they modify. --- vietnamese/vnpstext/files/patch-01 | 12 ---- vietnamese/vnpstext/files/patch-02 | 11 ---- vietnamese/vnpstext/files/patch-03 | 31 --------- vietnamese/vnpstext/files/patch-04 | 20 ------ vietnamese/vnpstext/files/patch-Makefile | 12 ++++ .../vnpstext/files/patch-lib__vntype__Makefile | 11 ++++ vietnamese/vnpstext/files/patch-vnpstext.1V | 20 ++++++ vietnamese/vnpstext/files/patch-vnpstext.c | 31 +++++++++ vietnamese/vnroff/files/patch-01 | 52 --------------- vietnamese/vnroff/files/patch-02 | 75 ---------------------- vietnamese/vnroff/files/patch-vnroff.1 | 75 ++++++++++++++++++++++ vietnamese/vnroff/files/patch-vnroff.c | 52 +++++++++++++++ 12 files changed, 201 insertions(+), 201 deletions(-) delete mode 100644 vietnamese/vnpstext/files/patch-01 delete mode 100644 vietnamese/vnpstext/files/patch-02 delete mode 100644 vietnamese/vnpstext/files/patch-03 delete mode 100644 vietnamese/vnpstext/files/patch-04 create mode 100644 vietnamese/vnpstext/files/patch-Makefile create mode 100644 vietnamese/vnpstext/files/patch-lib__vntype__Makefile create mode 100644 vietnamese/vnpstext/files/patch-vnpstext.1V create mode 100644 vietnamese/vnpstext/files/patch-vnpstext.c delete mode 100644 vietnamese/vnroff/files/patch-01 delete mode 100644 vietnamese/vnroff/files/patch-02 create mode 100644 vietnamese/vnroff/files/patch-vnroff.1 create mode 100644 vietnamese/vnroff/files/patch-vnroff.c (limited to 'vietnamese') diff --git a/vietnamese/vnpstext/files/patch-01 b/vietnamese/vnpstext/files/patch-01 deleted file mode 100644 index 0795e9e4bc8d..000000000000 --- a/vietnamese/vnpstext/files/patch-01 +++ /dev/null @@ -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 diff --git a/vietnamese/vnpstext/files/patch-02 b/vietnamese/vnpstext/files/patch-02 deleted file mode 100644 index 49ea510cc22c..000000000000 --- a/vietnamese/vnpstext/files/patch-02 +++ /dev/null @@ -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 diff --git a/vietnamese/vnpstext/files/patch-03 b/vietnamese/vnpstext/files/patch-03 deleted file mode 100644 index 52c6b9fa935a..000000000000 --- a/vietnamese/vnpstext/files/patch-03 +++ /dev/null @@ -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 */ diff --git a/vietnamese/vnpstext/files/patch-04 b/vietnamese/vnpstext/files/patch-04 deleted file mode 100644 index 6ac41ff2d8c0..000000000000 --- a/vietnamese/vnpstext/files/patch-04 +++ /dev/null @@ -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. diff --git a/vietnamese/vnpstext/files/patch-Makefile b/vietnamese/vnpstext/files/patch-Makefile new file mode 100644 index 000000000000..0795e9e4bc8d --- /dev/null +++ b/vietnamese/vnpstext/files/patch-Makefile @@ -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 diff --git a/vietnamese/vnpstext/files/patch-lib__vntype__Makefile b/vietnamese/vnpstext/files/patch-lib__vntype__Makefile new file mode 100644 index 000000000000..49ea510cc22c --- /dev/null +++ b/vietnamese/vnpstext/files/patch-lib__vntype__Makefile @@ -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 diff --git a/vietnamese/vnpstext/files/patch-vnpstext.1V b/vietnamese/vnpstext/files/patch-vnpstext.1V new file mode 100644 index 000000000000..6ac41ff2d8c0 --- /dev/null +++ b/vietnamese/vnpstext/files/patch-vnpstext.1V @@ -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. diff --git a/vietnamese/vnpstext/files/patch-vnpstext.c b/vietnamese/vnpstext/files/patch-vnpstext.c new file mode 100644 index 000000000000..52c6b9fa935a --- /dev/null +++ b/vietnamese/vnpstext/files/patch-vnpstext.c @@ -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 */ diff --git a/vietnamese/vnroff/files/patch-01 b/vietnamese/vnroff/files/patch-01 deleted file mode 100644 index 811d87c0d123..000000000000 --- a/vietnamese/vnroff/files/patch-01 +++ /dev/null @@ -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,'-'); diff --git a/vietnamese/vnroff/files/patch-02 b/vietnamese/vnroff/files/patch-02 deleted file mode 100644 index 344f68d553c6..000000000000 --- a/vietnamese/vnroff/files/patch-02 +++ /dev/null @@ -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). diff --git a/vietnamese/vnroff/files/patch-vnroff.1 b/vietnamese/vnroff/files/patch-vnroff.1 new file mode 100644 index 000000000000..344f68d553c6 --- /dev/null +++ b/vietnamese/vnroff/files/patch-vnroff.1 @@ -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). diff --git a/vietnamese/vnroff/files/patch-vnroff.c b/vietnamese/vnroff/files/patch-vnroff.c new file mode 100644 index 000000000000..811d87c0d123 --- /dev/null +++ b/vietnamese/vnroff/files/patch-vnroff.c @@ -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,'-'); -- cgit v1.2.3