Index: head/chinese/bg5ps/Makefile =================================================================== --- head/chinese/bg5ps/Makefile (revision 363161) +++ head/chinese/bg5ps/Makefile (revision 363162) @@ -1,34 +1,34 @@ # Created by: Jing-Tang Keith Jang # $FreeBSD$ PORTNAME= bg5ps PORTVERSION= 1.3.0p3 CATEGORIES= chinese print MASTER_SITES= http://ftp.jaist.ac.jp/pub/FreeBSD/distfiles/ \ http://www.gtlib.gatech.edu/pub/FreeBSD/distfiles/ DISTNAME= bg5ps-1.3.0 MAINTAINER= ports@FreeBSD.org COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts LIB_DEPENDS= libttf.so:${PORTSDIR}/print/freetype USE_PYTHON= yes SUB_FILES= pkg-message -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${STAGEDIR}${PREFIX}/etc/bg5ps.conf.sample ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${STAGEDIR}${PREFIX}/etc/gb2312-bg5ps.conf.sample @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/netscape.ps ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/test.big5 ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/test.gb2312 ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/examples/test.sh ${STAGEDIR}${EXAMPLESDIR} .include Index: head/chinese/bg5ps/files/patch-aa =================================================================== --- head/chinese/bg5ps/files/patch-aa (revision 363161) +++ head/chinese/bg5ps/files/patch-aa (nonexistent) @@ -1,38 +0,0 @@ - -$FreeBSD$ - ---- Makefile.orig 2000-02-14 21:41:27.000000000 +0100 -+++ Makefile 2014-01-25 19:07:23.000000000 +0100 -@@ -17,23 +17,24 @@ - - OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o - --CC = gcc -+CC ?= gcc - INSTALL = install --CFLAGS = -+CFLAGS += -I${LOCALBASE}/include/freetype1 -I${LOCALBASE}/include - LIBS = -lttf -lm --INCLUDEDIR = -+LIBSDIR = -L${LOCALBASE}/lib - --prefix = /usr --BINDIR = $(prefix)/bin --ETCDIR = /etc/chinese/ -+ -+PREFIX?= /usr/local -+BINDIR = $(PREFIX)/bin -+ETCDIR = $(PREFIX)/etc - - all: ttf2psm - - %.o : %.c -- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@ -+ $(CC) -c $(CFLAGS) $< -o $@ - - ttf2psm: $(OBJS) -- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS) -+ $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS) - - install: all bg5ps bg5ps.conf - mkdir -p $(ETCDIR) Property changes on: head/chinese/bg5ps/files/patch-aa ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/chinese/bg5ps/files/patch-ab =================================================================== --- head/chinese/bg5ps/files/patch-ab (revision 363161) +++ head/chinese/bg5ps/files/patch-ab (nonexistent) @@ -1,11 +0,0 @@ ---- bg5ps.conf.orig Thu Nov 2 23:47:35 2000 -+++ bg5ps.conf Thu Nov 2 23:50:27 2000 -@@ -4,7 +4,7 @@ - Encoding="big5" - - #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) --chineseFontPath="/usr/share/fonts/ttf/" -+chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType" - - #modify the above line - Property changes on: head/chinese/bg5ps/files/patch-ab ___________________________________________________________________ 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/chinese/bg5ps/files/patch-ac =================================================================== --- head/chinese/bg5ps/files/patch-ac (revision 363161) +++ head/chinese/bg5ps/files/patch-ac (nonexistent) @@ -1,23 +0,0 @@ ---- bg5ps.orig Thu Nov 2 23:50:38 2000 -+++ bg5ps Thu Nov 2 23:55:25 2000 -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/local/bin/python - ################################################################################ - # bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese # - # text into printable postscript file. Since it uses true type font, the # -@@ -443,10 +443,10 @@ - exec l - cf.close() - else: -- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.") -- if os.path.isfile("/etc/chinese/bg5ps.conf"): -- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf") -- cf=open("/etc/chinese/bg5ps.conf","r") -+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/bg5ps.conf.") -+ if os.path.isfile("/usr/local/etc/bg5ps.conf"): -+ sys.stderr.write("\n /usr/local/etc/bg5ps.conf found. Use configuration file /usr/local/etc/bg5ps.conf") -+ cf=open("/usr/local/etc/bg5ps.conf","r") - for l in cf.readlines(): - exec l - cf.close() Property changes on: head/chinese/bg5ps/files/patch-ac ___________________________________________________________________ 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/chinese/bg5ps/files/patch-ae =================================================================== --- head/chinese/bg5ps/files/patch-ae (revision 363161) +++ head/chinese/bg5ps/files/patch-ae (nonexistent) @@ -1,9 +0,0 @@ ---- gb2312-bg5ps.conf.orig Fri Nov 3 01:31:43 2000 -+++ gb2312-bg5ps.conf Fri Nov 3 01:31:49 2000 -@@ -1,5 +1,5 @@ - #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) --chineseFontPath="/usr/share/fonts/ttf/" -+chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType" - - #modify the above line - Property changes on: head/chinese/bg5ps/files/patch-ae ___________________________________________________________________ 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/chinese/bg5ps/files/patch-Makefile =================================================================== --- head/chinese/bg5ps/files/patch-Makefile (nonexistent) +++ head/chinese/bg5ps/files/patch-Makefile (revision 363162) @@ -0,0 +1,38 @@ + +$FreeBSD$ + +--- Makefile.orig 2000-02-14 21:41:27.000000000 +0100 ++++ Makefile 2014-01-25 19:07:23.000000000 +0100 +@@ -17,23 +17,24 @@ + + OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o + +-CC = gcc ++CC ?= gcc + INSTALL = install +-CFLAGS = ++CFLAGS += -I${LOCALBASE}/include/freetype1 -I${LOCALBASE}/include + LIBS = -lttf -lm +-INCLUDEDIR = ++LIBSDIR = -L${LOCALBASE}/lib + +-prefix = /usr +-BINDIR = $(prefix)/bin +-ETCDIR = /etc/chinese/ ++ ++PREFIX?= /usr/local ++BINDIR = $(PREFIX)/bin ++ETCDIR = $(PREFIX)/etc + + all: ttf2psm + + %.o : %.c +- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@ ++ $(CC) -c $(CFLAGS) $< -o $@ + + ttf2psm: $(OBJS) +- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS) ++ $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS) + + install: all bg5ps bg5ps.conf + mkdir -p $(ETCDIR) Property changes on: head/chinese/bg5ps/files/patch-Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/bg5ps/files/patch-bg5ps =================================================================== --- head/chinese/bg5ps/files/patch-bg5ps (nonexistent) +++ head/chinese/bg5ps/files/patch-bg5ps (revision 363162) @@ -0,0 +1,23 @@ +--- bg5ps.orig Thu Nov 2 23:50:38 2000 ++++ bg5ps Thu Nov 2 23:55:25 2000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/local/bin/python + ################################################################################ + # bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese # + # text into printable postscript file. Since it uses true type font, the # +@@ -443,10 +443,10 @@ + exec l + cf.close() + else: +- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.") +- if os.path.isfile("/etc/chinese/bg5ps.conf"): +- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf") +- cf=open("/etc/chinese/bg5ps.conf","r") ++ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/bg5ps.conf.") ++ if os.path.isfile("/usr/local/etc/bg5ps.conf"): ++ sys.stderr.write("\n /usr/local/etc/bg5ps.conf found. Use configuration file /usr/local/etc/bg5ps.conf") ++ cf=open("/usr/local/etc/bg5ps.conf","r") + for l in cf.readlines(): + exec l + cf.close() Property changes on: head/chinese/bg5ps/files/patch-bg5ps ___________________________________________________________________ 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/chinese/bg5ps/files/patch-bg5ps.conf =================================================================== --- head/chinese/bg5ps/files/patch-bg5ps.conf (nonexistent) +++ head/chinese/bg5ps/files/patch-bg5ps.conf (revision 363162) @@ -0,0 +1,11 @@ +--- bg5ps.conf.orig Thu Nov 2 23:47:35 2000 ++++ bg5ps.conf Thu Nov 2 23:50:27 2000 +@@ -4,7 +4,7 @@ + Encoding="big5" + + #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) +-chineseFontPath="/usr/share/fonts/ttf/" ++chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType" + + #modify the above line + Property changes on: head/chinese/bg5ps/files/patch-bg5ps.conf ___________________________________________________________________ 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/chinese/bg5ps/files/patch-gb2312-bg5ps.conf =================================================================== --- head/chinese/bg5ps/files/patch-gb2312-bg5ps.conf (nonexistent) +++ head/chinese/bg5ps/files/patch-gb2312-bg5ps.conf (revision 363162) @@ -0,0 +1,9 @@ +--- gb2312-bg5ps.conf.orig Fri Nov 3 01:31:43 2000 ++++ gb2312-bg5ps.conf Fri Nov 3 01:31:49 2000 +@@ -1,5 +1,5 @@ + #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) +-chineseFontPath="/usr/share/fonts/ttf/" ++chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType" + + #modify the above line + Property changes on: head/chinese/bg5ps/files/patch-gb2312-bg5ps.conf ___________________________________________________________________ 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/chinese/bg5ps/pkg-plist =================================================================== --- head/chinese/bg5ps/pkg-plist (revision 363161) +++ head/chinese/bg5ps/pkg-plist (revision 363162) @@ -1,24 +1,24 @@ %%PORTDOCS%%%%DOCSDIR%%/COPYING.txt %%PORTDOCS%%%%DOCSDIR%%/bg5ps.sgml %%PORTDOCS%%%%DOCSDIR%%/bg5ps.txt %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-1.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-2.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-3.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-4.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-5.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-6.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-7.html %%PORTDOCS%%%%DOCSDIR%%/html/bg5ps.html %%PORTDOCS%%%%DOCSDIR%%/makeps %%PORTDOCS%%%%DOCSDIR%%/ttf2ps.doc -%%EXAMPLESDIR%%/netscape.ps -%%EXAMPLESDIR%%/test.big5 -%%EXAMPLESDIR%%/test.gb2312 -%%EXAMPLESDIR%%/test.sh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/netscape.ps +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.big5 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.gb2312 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.sh bin/bg5ps bin/ttf2psm etc/bg5ps.conf.sample etc/gb2312-bg5ps.conf.sample -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%/html %%PORTDOCS%%@dirrm %%DOCSDIR%% Index: head/chinese/c2t/files/patch-01 =================================================================== --- head/chinese/c2t/files/patch-01 (revision 363161) +++ head/chinese/c2t/files/patch-01 (nonexistent) @@ -1,15 +0,0 @@ ---- Makefile.orig 1993-02-24 14:21:39.000000000 +0800 -+++ Makefile 2011-09-05 14:22:03.000000000 +0800 -@@ -1,9 +1,9 @@ --CC=cc -+DEFINE= -DCHINDICT=\"$(PREFIX)/share/chinese/gb/TONEPY.tit\" - - all: c2t - - c2t: c2t.o -- $(CC) -O -o c2t c2t.o -+ $(CC) $(CFLAGS) $(DEFINE) -o c2t c2t.o - - c2t.o: c2t.c -- $(CC) -O -c c2t.c -+ $(CC) $(CFLAGS) $(DEFINE) -c c2t.c Property changes on: head/chinese/c2t/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/chinese/c2t/files/patch-02 =================================================================== --- head/chinese/c2t/files/patch-02 (revision 363161) +++ head/chinese/c2t/files/patch-02 (nonexistent) @@ -1,54 +0,0 @@ ---- c2t.c.orig 1993-02-24 14:29:23.000000000 +0800 -+++ c2t.c 2011-09-05 14:25:34.000000000 +0800 -@@ -18,14 +18,18 @@ - - #define MEMAREA 4096 /* max number of lines in DICT file, wc -l DICT */ - --main(argc, argv) -+int main(argc, argv) - int argc; - char **argv; - { -+#ifndef CHINDICT - char *DICT="/home/ftp/software/unix/X-Window/cxterm-dictionary/TONEPY.tit"; -+#else -+ char *DICT=CHINDICT; -+#endif - register int eka=0, toka=0, i=0; - register char hz[4], **pipo=0; -- register char **taulu=0, rivi[82]; -+ char **taulu=0, rivi[82]; - register int rpit=0, tila=0, rraja=0, mulpin=0; - int monitila=0; - FILE *piffi=0; -@@ -57,12 +61,12 @@ char **argv; - i =0; - } /*if argc > 1 */ - if ((piffi = fopen (DICT, "r")) == 0) { -- printf (stderr, "Error: unable to open pinyin dictionnary %s\n", -+ fprintf (stderr, "Error: unable to open pinyin dictionnary %s\n", - DICT); - exit (-1); - } - if ((taulu = (char **)malloc (MEMAREA*sizeof(char *))) == 0) { -- printf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n"); -+ fprintf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n"); - exit (-2); - } - pipo = taulu; -@@ -81,13 +85,13 @@ char **argv; - } else { - if (rivi[0] == '#') continue; - if ((*pipo = (char *)malloc (rpit+8)) == 0) { -- printf (stderr, "Error: out of memory when allocating *pipo\n"); -+ fprintf (stderr, "Error: out of memory when allocating *pipo\n"); - exit (-3); - } - strcpy (*pipo, rivi); - pipo++; - if (++rraja >= MEMAREA) { -- printf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n"); -+ fprintf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n"); - exit (-4); - } - } Property changes on: head/chinese/c2t/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/chinese/c2t/files/patch-Makefile =================================================================== --- head/chinese/c2t/files/patch-Makefile (nonexistent) +++ head/chinese/c2t/files/patch-Makefile (revision 363162) @@ -0,0 +1,15 @@ +--- Makefile.orig 1993-02-24 14:21:39.000000000 +0800 ++++ Makefile 2011-09-05 14:22:03.000000000 +0800 +@@ -1,9 +1,9 @@ +-CC=cc ++DEFINE= -DCHINDICT=\"$(PREFIX)/share/chinese/gb/TONEPY.tit\" + + all: c2t + + c2t: c2t.o +- $(CC) -O -o c2t c2t.o ++ $(CC) $(CFLAGS) $(DEFINE) -o c2t c2t.o + + c2t.o: c2t.c +- $(CC) -O -c c2t.c ++ $(CC) $(CFLAGS) $(DEFINE) -c c2t.c Property changes on: head/chinese/c2t/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/chinese/c2t/files/patch-c2t.c =================================================================== --- head/chinese/c2t/files/patch-c2t.c (nonexistent) +++ head/chinese/c2t/files/patch-c2t.c (revision 363162) @@ -0,0 +1,54 @@ +--- c2t.c.orig 1993-02-24 14:29:23.000000000 +0800 ++++ c2t.c 2011-09-05 14:25:34.000000000 +0800 +@@ -18,14 +18,18 @@ + + #define MEMAREA 4096 /* max number of lines in DICT file, wc -l DICT */ + +-main(argc, argv) ++int main(argc, argv) + int argc; + char **argv; + { ++#ifndef CHINDICT + char *DICT="/home/ftp/software/unix/X-Window/cxterm-dictionary/TONEPY.tit"; ++#else ++ char *DICT=CHINDICT; ++#endif + register int eka=0, toka=0, i=0; + register char hz[4], **pipo=0; +- register char **taulu=0, rivi[82]; ++ char **taulu=0, rivi[82]; + register int rpit=0, tila=0, rraja=0, mulpin=0; + int monitila=0; + FILE *piffi=0; +@@ -57,12 +61,12 @@ char **argv; + i =0; + } /*if argc > 1 */ + if ((piffi = fopen (DICT, "r")) == 0) { +- printf (stderr, "Error: unable to open pinyin dictionnary %s\n", ++ fprintf (stderr, "Error: unable to open pinyin dictionnary %s\n", + DICT); + exit (-1); + } + if ((taulu = (char **)malloc (MEMAREA*sizeof(char *))) == 0) { +- printf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n"); ++ fprintf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n"); + exit (-2); + } + pipo = taulu; +@@ -81,13 +85,13 @@ char **argv; + } else { + if (rivi[0] == '#') continue; + if ((*pipo = (char *)malloc (rpit+8)) == 0) { +- printf (stderr, "Error: out of memory when allocating *pipo\n"); ++ fprintf (stderr, "Error: out of memory when allocating *pipo\n"); + exit (-3); + } + strcpy (*pipo, rivi); + pipo++; + if (++rraja >= MEMAREA) { +- printf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n"); ++ fprintf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n"); + exit (-4); + } + } Property changes on: head/chinese/c2t/files/patch-c2t.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/chinese/celvis/files/patch-aa =================================================================== --- head/chinese/celvis/files/patch-aa (revision 363161) +++ head/chinese/celvis/files/patch-aa (nonexistent) @@ -1,11 +0,0 @@ ---- Makefile.orig Thu May 16 03:09:50 1991 -+++ Makefile Sun Apr 2 11:44:47 2000 -@@ -22,7 +22,7 @@ - SRC5= regexp.c regexp.h regsub.c sysdos.c system.c tinytcap.c tio.c tmp.c - SRC6= vars.c vcmd.c vi.c vi.h ctags.c ref.c virec.c wildcard.c shell.c - EXTRA= --CFLAGS= -O -+CFLAGS+= -D_HAVE_PARAM_H - LIBS= -ltermcap - - all: $(PROGS) Property changes on: head/chinese/celvis/files/patch-aa ___________________________________________________________________ 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/chinese/celvis/files/patch-ab =================================================================== --- head/chinese/celvis/files/patch-ab (revision 363161) +++ head/chinese/celvis/files/patch-ab (nonexistent) @@ -1,30 +0,0 @@ ---- config.h.orig Tue Nov 6 11:53:55 1990 -+++ config.h Thu Aug 15 05:42:16 1996 -@@ -5,6 +5,10 @@ - */ - - /*************************** autoconf section ************************/ -+/* Can we tell a little more about this system? */ -+#ifdef _HAVE_PARAM_H -+# include -+#endif - - /* standard unix V (?) */ - #ifdef M_SYSV -@@ -175,9 +179,15 @@ - #endif - - /******************* Names of files and environment vars **********************/ -+#if (defined(BSD) && (BSD >= 199103)) -+# define TMPDIR "/var/tmp" /* directory where temp files live */ -+# define COMPILED_BY "{Free,Net,Open,4.4,4.3/Reno}BSD (ported by David O'Brien)" -+#endif - - #if ANY_UNIX --# define TMPDIR "/usr/tmp" /* directory where temp files live */ -+# ifndef TMPDIR -+# define TMPDIR "/usr/tmp" /* directory where temp files live */ -+# endif - # define TMPNAME "%s/elvt%04x%03x" /* temp file */ - # define CUTNAME "%s/elvc%04x%03x" /* cut buffer's temp file */ - # define EXRC ".exrc" /* init file in current directory */ Property changes on: head/chinese/celvis/files/patch-ab ___________________________________________________________________ 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/chinese/celvis/files/patch-ac =================================================================== --- head/chinese/celvis/files/patch-ac (revision 363161) +++ head/chinese/celvis/files/patch-ac (nonexistent) @@ -1,11 +0,0 @@ ---- vi.h.orig Sun Oct 20 19:08:33 1991 -+++ vi.h Thu Aug 15 04:45:45 1996 -@@ -101,7 +101,7 @@ - #define READONLY 0x0002 /* the file is read-only */ - #define HADNUL 0x0004 /* the file contained NUL characters */ - #define MODIFIED 0x0008 /* the file has been modified */ --#define NOFILE 0x0010 /* no name is known for the current text */ -+#define NOFILENAME 0x0010 /* no name is known for the current text */ - #define ADDEDNL 0x0020 /* newlines were added to the file */ - - /* macros used to set/clear/test flags */ Property changes on: head/chinese/celvis/files/patch-ac ___________________________________________________________________ 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/chinese/celvis/files/patch-ad =================================================================== --- head/chinese/celvis/files/patch-ad (revision 363161) +++ head/chinese/celvis/files/patch-ad (nonexistent) @@ -1,12 +0,0 @@ ---- blk.c.orig Tue Nov 6 11:53:55 1990 -+++ blk.c Thu Aug 15 04:47:18 1996 -@@ -19,7 +19,9 @@ - # define NBUFS 5 /* must be at least 3 -- more is better */ - #endif - -+#if !(defined(BSD) && (BSD >= 199103)) - extern long lseek(); -+#endif - - /*------------------------------------------------------------------------*/ - Property changes on: head/chinese/celvis/files/patch-ad ___________________________________________________________________ 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/chinese/celvis/files/patch-ae =================================================================== --- head/chinese/celvis/files/patch-ae (revision 363161) +++ head/chinese/celvis/files/patch-ae (nonexistent) @@ -1,12 +0,0 @@ ---- recycle.c.orig Tue Nov 6 11:53:56 1990 -+++ recycle.c Thu Aug 15 04:51:43 1996 -@@ -18,7 +18,9 @@ - #ifndef NO_RECYCLE - /* this whole file would have be skipped if NO_RECYCLE is defined */ - -+#if !(defined(BSD) && (BSD >= 199103)) - extern long lseek(); -+#endif - - #define BTST(bitno, byte) ((byte) & (1 << (bitno))) - #define BSET(bitno, byte) ((byte) |= (1 << (bitno))) Property changes on: head/chinese/celvis/files/patch-ae ___________________________________________________________________ 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/chinese/celvis/files/patch-af =================================================================== --- head/chinese/celvis/files/patch-af (revision 363161) +++ head/chinese/celvis/files/patch-af (nonexistent) @@ -1,28 +0,0 @@ ---- tmp.c.orig Thu Aug 15 04:45:57 1996 -+++ tmp.c Thu Aug 15 05:14:50 1996 -@@ -21,6 +21,7 @@ - - /* The FAIL() macro prints an error message and then exits. */ - #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) -+#define FAIL2(why,arg1,arg2) mode = MODE_EX; msg(why, arg1, arg2); endwin(); HZ_abort(9) - - /* This is the name of the temp file */ - static char tmpname[80]; -@@ -91,7 +92,7 @@ - if (*o_readonly || (statb.st_mode & S_IJRON)) - #endif - #if OS9 -- if we don't have write permission... -+ /* if we don't have write permission... */ - #endif - #if ANY_UNIX - if (*o_readonly || !(statb.st_mode & -@@ -149,7 +150,7 @@ - tmpfd = open(tmpname, O_RDWR | O_BINARY); - if (tmpfd < 0) - { -- FAIL("Can't create temporary file, errno=%d", errno); -+ FAIL2("Can't create temporary file (%s), errno=%d", tmpname, errno); - return 1; - } - Property changes on: head/chinese/celvis/files/patch-af ___________________________________________________________________ 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/chinese/celvis/files/patch-ag =================================================================== --- head/chinese/celvis/files/patch-ag (revision 363161) +++ head/chinese/celvis/files/patch-ag (nonexistent) @@ -1,22 +0,0 @@ ---- cmd1.c.orig Tue Nov 6 11:53:55 1990 -+++ cmd1.c Sat Aug 17 15:18:01 1996 -@@ -882,9 +882,6 @@ - #else - msg("%s (%s)", VERSION, DATE); - #endif --#ifdef COMPILED_BY -- msg("Compiled by %s", COMPILED_BY); --#endif - #ifdef CREDIT - msg("%s", CREDIT); - #endif -@@ -893,6 +890,9 @@ - #endif - #ifdef CVERSION - msg("%s", CVERSION); -+#endif -+#ifdef COMPILED_BY -+ msg("Compiled by %s", COMPILED_BY); - #endif - #ifdef COPYING - msg("%s", COPYING); Property changes on: head/chinese/celvis/files/patch-ag ___________________________________________________________________ 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/chinese/celvis/files/patch-Makefile =================================================================== --- head/chinese/celvis/files/patch-Makefile (nonexistent) +++ head/chinese/celvis/files/patch-Makefile (revision 363162) @@ -0,0 +1,11 @@ +--- Makefile.orig Thu May 16 03:09:50 1991 ++++ Makefile Sun Apr 2 11:44:47 2000 +@@ -22,7 +22,7 @@ + SRC5= regexp.c regexp.h regsub.c sysdos.c system.c tinytcap.c tio.c tmp.c + SRC6= vars.c vcmd.c vi.c vi.h ctags.c ref.c virec.c wildcard.c shell.c + EXTRA= +-CFLAGS= -O ++CFLAGS+= -D_HAVE_PARAM_H + LIBS= -ltermcap + + all: $(PROGS) Property changes on: head/chinese/celvis/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/chinese/celvis/files/patch-blk.c =================================================================== --- head/chinese/celvis/files/patch-blk.c (nonexistent) +++ head/chinese/celvis/files/patch-blk.c (revision 363162) @@ -0,0 +1,12 @@ +--- blk.c.orig Tue Nov 6 11:53:55 1990 ++++ blk.c Thu Aug 15 04:47:18 1996 +@@ -19,7 +19,9 @@ + # define NBUFS 5 /* must be at least 3 -- more is better */ + #endif + ++#if !(defined(BSD) && (BSD >= 199103)) + extern long lseek(); ++#endif + + /*------------------------------------------------------------------------*/ + Property changes on: head/chinese/celvis/files/patch-blk.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/chinese/celvis/files/patch-cmd1.c =================================================================== --- head/chinese/celvis/files/patch-cmd1.c (nonexistent) +++ head/chinese/celvis/files/patch-cmd1.c (revision 363162) @@ -0,0 +1,22 @@ +--- cmd1.c.orig Tue Nov 6 11:53:55 1990 ++++ cmd1.c Sat Aug 17 15:18:01 1996 +@@ -882,9 +882,6 @@ + #else + msg("%s (%s)", VERSION, DATE); + #endif +-#ifdef COMPILED_BY +- msg("Compiled by %s", COMPILED_BY); +-#endif + #ifdef CREDIT + msg("%s", CREDIT); + #endif +@@ -893,6 +890,9 @@ + #endif + #ifdef CVERSION + msg("%s", CVERSION); ++#endif ++#ifdef COMPILED_BY ++ msg("Compiled by %s", COMPILED_BY); + #endif + #ifdef COPYING + msg("%s", COPYING); Property changes on: head/chinese/celvis/files/patch-cmd1.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/chinese/celvis/files/patch-config.h =================================================================== --- head/chinese/celvis/files/patch-config.h (nonexistent) +++ head/chinese/celvis/files/patch-config.h (revision 363162) @@ -0,0 +1,30 @@ +--- config.h.orig Tue Nov 6 11:53:55 1990 ++++ config.h Thu Aug 15 05:42:16 1996 +@@ -5,6 +5,10 @@ + */ + + /*************************** autoconf section ************************/ ++/* Can we tell a little more about this system? */ ++#ifdef _HAVE_PARAM_H ++# include ++#endif + + /* standard unix V (?) */ + #ifdef M_SYSV +@@ -175,9 +179,15 @@ + #endif + + /******************* Names of files and environment vars **********************/ ++#if (defined(BSD) && (BSD >= 199103)) ++# define TMPDIR "/var/tmp" /* directory where temp files live */ ++# define COMPILED_BY "{Free,Net,Open,4.4,4.3/Reno}BSD (ported by David O'Brien)" ++#endif + + #if ANY_UNIX +-# define TMPDIR "/usr/tmp" /* directory where temp files live */ ++# ifndef TMPDIR ++# define TMPDIR "/usr/tmp" /* directory where temp files live */ ++# endif + # define TMPNAME "%s/elvt%04x%03x" /* temp file */ + # define CUTNAME "%s/elvc%04x%03x" /* cut buffer's temp file */ + # define EXRC ".exrc" /* init file in current directory */ Property changes on: head/chinese/celvis/files/patch-config.h ___________________________________________________________________ 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/chinese/celvis/files/patch-recycle.c =================================================================== --- head/chinese/celvis/files/patch-recycle.c (nonexistent) +++ head/chinese/celvis/files/patch-recycle.c (revision 363162) @@ -0,0 +1,12 @@ +--- recycle.c.orig Tue Nov 6 11:53:56 1990 ++++ recycle.c Thu Aug 15 04:51:43 1996 +@@ -18,7 +18,9 @@ + #ifndef NO_RECYCLE + /* this whole file would have be skipped if NO_RECYCLE is defined */ + ++#if !(defined(BSD) && (BSD >= 199103)) + extern long lseek(); ++#endif + + #define BTST(bitno, byte) ((byte) & (1 << (bitno))) + #define BSET(bitno, byte) ((byte) |= (1 << (bitno))) Property changes on: head/chinese/celvis/files/patch-recycle.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/chinese/celvis/files/patch-tmp.c =================================================================== --- head/chinese/celvis/files/patch-tmp.c (nonexistent) +++ head/chinese/celvis/files/patch-tmp.c (revision 363162) @@ -0,0 +1,28 @@ +--- tmp.c.orig Thu Aug 15 04:45:57 1996 ++++ tmp.c Thu Aug 15 05:14:50 1996 +@@ -21,6 +21,7 @@ + + /* The FAIL() macro prints an error message and then exits. */ + #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ++#define FAIL2(why,arg1,arg2) mode = MODE_EX; msg(why, arg1, arg2); endwin(); HZ_abort(9) + + /* This is the name of the temp file */ + static char tmpname[80]; +@@ -91,7 +92,7 @@ + if (*o_readonly || (statb.st_mode & S_IJRON)) + #endif + #if OS9 +- if we don't have write permission... ++ /* if we don't have write permission... */ + #endif + #if ANY_UNIX + if (*o_readonly || !(statb.st_mode & +@@ -149,7 +150,7 @@ + tmpfd = open(tmpname, O_RDWR | O_BINARY); + if (tmpfd < 0) + { +- FAIL("Can't create temporary file, errno=%d", errno); ++ FAIL2("Can't create temporary file (%s), errno=%d", tmpname, errno); + return 1; + } + Property changes on: head/chinese/celvis/files/patch-tmp.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/chinese/celvis/files/patch-vi.h =================================================================== --- head/chinese/celvis/files/patch-vi.h (nonexistent) +++ head/chinese/celvis/files/patch-vi.h (revision 363162) @@ -0,0 +1,11 @@ +--- vi.h.orig Sun Oct 20 19:08:33 1991 ++++ vi.h Thu Aug 15 04:45:45 1996 +@@ -101,7 +101,7 @@ + #define READONLY 0x0002 /* the file is read-only */ + #define HADNUL 0x0004 /* the file contained NUL characters */ + #define MODIFIED 0x0008 /* the file has been modified */ +-#define NOFILE 0x0010 /* no name is known for the current text */ ++#define NOFILENAME 0x0010 /* no name is known for the current text */ + #define ADDEDNL 0x0020 /* newlines were added to the file */ + + /* macros used to set/clear/test flags */ Property changes on: head/chinese/celvis/files/patch-vi.h ___________________________________________________________________ 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/chinese/cless/Makefile =================================================================== --- head/chinese/cless/Makefile (revision 363161) +++ head/chinese/cless/Makefile (revision 363162) @@ -1,26 +1,23 @@ # Created by: David O'Brien (obrien@cs.ucdavis.edu) # $FreeBSD$ PORTNAME= cless PORTVERSION= 290 CATEGORIES= chinese MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/ MAINTAINER= ports@FreeBSD.org COMMENT= Better pager utility (and it speaks Chinese) GNU_CONFIGURE= yes CFLAGS+= -DHANZI # LDFLAGS=-s datadir=/usr/local/lib/less CPP= # OPTIONS_DEFINE= DOCS -.include post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/cless - ${INSTALL_DATA} ${WRKSRC}/README.CLESS ${STAGEDIR}${PREFIX}/share/doc/cless -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.CLESS ${STAGEDIR}${DOCSDIR} .include Index: head/chinese/cless/files/patch-aa =================================================================== --- head/chinese/cless/files/patch-aa (revision 363161) +++ head/chinese/cless/files/patch-aa (nonexistent) @@ -1,39 +0,0 @@ ---- Makefile.in.orig 1995-04-25 10:41:39.000000000 +0800 -+++ Makefile.in 2014-01-08 23:13:25.000000000 +0800 -@@ -73,24 +73,24 @@ lesskey: lesskey.${O} version.${O} - ${OBJ}: less.h defines.h funcs.h - - filename.${O}: filename.c -- ${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c -+ ${CC} -c -DHELPFILE=\"${datadir}/cless.gb\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c - - install: all less.hlp less.bg5 less.gb less.nro installdirs -- ${INSTALL_PROGRAM} less ${bindir}/${binprefix}less -- ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey -- ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp -- ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/less.bg5 -- ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/less.gb -- ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext} -- ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext} -+ ${INSTALL_PROGRAM} less $(DESTDIR)${bindir}/${binprefix}cless -+ ${INSTALL_PROGRAM} lesskey $(DESTDIR)${bindir}/${binprefix}clesskey -+ ${INSTALL_DATA} ${srcdir}/less.hlp $(DESTDIR)${datadir}/cless.hlp -+ ${INSTALL_DATA} ${srcdir}/less.bg5 $(DESTDIR)${datadir}/cless.bg5 -+ ${INSTALL_DATA} ${srcdir}/less.gb $(DESTDIR)${datadir}/cless.gb -+ ${INSTALL_DATA} ${srcdir}/less.nro $(DESTDIR)${mandir}/${manprefix}cless.${manext} -+ ${INSTALL_DATA} ${srcdir}/lesskey.nro $(DESTDIR)${mandir}/${manprefix}clesskey.${manext} - - installdirs: mkinstalldirs -- ${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir} -+ ${srcdir}/mkinstalldirs $(DESTDIR)${bindir} $(DESTDIR)${datadir} $(DESTDIR)${mandir} - - uninstall: -- rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey -- rm -f ${datadir}/less.hlp ${datadir}/less.bg5 ${datadir}/less.gb -- rm -f ${mandir}/less.${manext} ${mandir}/lesskey.${manext} -+ rm -f ${bindir}/${binprefix}cless ${bindir}/${binprefix}clesskey -+ rm -f ${datadir}/cless.hlp ${datadir}/cless.bg5 ${datadir}/cless.gb -+ rm -f ${mandir}/cless.${manext} ${mandir}/clesskey.${manext} - - info: - install-info: Property changes on: head/chinese/cless/files/patch-aa ___________________________________________________________________ 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/chinese/cless/files/patch-ab =================================================================== --- head/chinese/cless/files/patch-ab (revision 363161) +++ head/chinese/cless/files/patch-ab (nonexistent) @@ -1,13 +0,0 @@ ---- defines.h.in.orig Sun Sep 15 22:58:20 1996 -+++ defines.h.in Sun Sep 15 22:58:27 1996 -@@ -104,8 +104,8 @@ - * DEF_LESSKEYINFILE is the filename of the default lesskey input - * (in the HOME directory). - */ --#define LESSKEYFILE ".less" --#define DEF_LESSKEYINFILE ".lesskey" -+#define LESSKEYFILE ".cless" -+#define DEF_LESSKEYINFILE ".clesskey" - - - /* Settings always true on Unix. */ Property changes on: head/chinese/cless/files/patch-ab ___________________________________________________________________ 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/chinese/cless/files/patch-ac =================================================================== --- head/chinese/cless/files/patch-ac (revision 363161) +++ head/chinese/cless/files/patch-ac (nonexistent) @@ -1,433 +0,0 @@ ---- less.nro.orig Sun Sep 15 23:00:49 1996 -+++ less.nro Sun Sep 15 23:06:46 1996 -@@ -1,12 +1,12 @@ - .TH LESS 1 - .SH NAME --less \- opposite of more -+cless \- opposite of more - .SH SYNOPSIS --.B "less -?" -+.B "cless -?" - .br --.B "less -V" -+.B "cless -V" - .br --.B "less [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]" -+.B "cless [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]" - .br - .B " [-b \fIbufs\fP] [-h \fIlines\fP] [-j \fIline\fP] [-k \fIkeyfile\fP]" - .br -@@ -23,7 +23,7 @@ - (1), but which allows backward movement - in the file as well as forward movement. - Also, --.I less -+.I cless - does not have to read the entire input file before starting, - so with large input files it starts up faster than text editors like - .I vi -@@ -114,7 +114,7 @@ - Go to a position N percent into the file. - N should be between 0 and 100. - (This works if standard input is being read, but only if --.I less -+.I cless - has already read to the end of the file. - It is always fast, but not always useful.) - .PP -@@ -329,18 +329,18 @@ - .IP +cmd - Causes the specified cmd to be executed each time a new file is examined. - For example, +G causes --.I less -+.I cless - to initially display each file starting at the end - rather than the beginning. - .PP - .IP V - Prints the version number of --.I less -+.I cless - being run. - .PP - .IP "q or :q or :Q or ZZ" - Exits --.I less. -+.I cless. - .PP - The following - three -@@ -374,13 +374,13 @@ - .SH OPTIONS - Command line options are described below. - Most options may be changed while --.I less -+.I cless - is running, via the "\-" command. - .PP - Options are also taken from the environment variable "LESS". - For example, --to avoid typing "less -options ..." each time --.I less -+to avoid typing "cless -options ..." each time -+.I cless - is invoked, you might tell - .I csh: - .sp -@@ -402,10 +402,10 @@ - following string. - .IP -? - This option displays a summary of the commands accepted by --.I less -+.I cless - (the same as the h command). - If this option is given, all other options are ignored, and --.I less -+.I cless - exits after the help screen is viewed. - (Depending on how your shell interprets the question mark, - it may be necessary to quote the question mark, thus: "-\\?".) -@@ -417,7 +417,7 @@ - (or after the last found line; see the -j option). - .IP -b\fIn\fP - Specifies the number of buffers --.I less -+.I cless - will use for each file. - Buffers are 1K, and by default 10 buffers are used for each file - (except if the file is a pipe; see the -B option). -@@ -444,7 +444,7 @@ - that is, lacks some important capability, - such as the ability to clear the screen or scroll backward. - The -d option does not otherwise change the behavior of --.I less -+.I cless - on a dumb terminal). - .IP -D\fBx\fP\fIcolor\fP - [MS-DOS only] -@@ -457,31 +457,31 @@ - A single number \fIN\fP is the same as \fIN.0\fP. - .IP -e - Causes --.I less -+.I cless - to automatically exit - the second time it reaches end-of-file. - By default, the only way to exit --.I less -+.I cless - is via the "q" command. - .IP -E - Causes --.I less -+.I cless - to automatically exit the first time it reaches end-of-file. - .IP -f - Forces non-regular files to be opened. - (A non-regular file is a directory or a device special file.) - Also suppresses the warning message when a binary file is opened. - By default, --.I less -+.I cless - will refuse to open non-regular files. - .IP -g - Normally, --.I less -+.I cless - will highlight ALL strings which match the last search command. - The -g flag changes this behavior to highlight only the particular string - which was found by the last search command. - This can cause --.I less -+.I cless - to run somewhat faster than the default. - .IP -G - The -G flag suppresses all highlighting of strings found by search commands. -@@ -519,32 +519,32 @@ - on the screen. - .IP -k\fIfilename\fP - Causes --.I less -+.I cless - to open and interpret the named file as a --.I lesskey -+.I clesskey - (1) file. - Multiple -k options may be specified. --If a file called .less exists in the user's home directory, this -+If a file called .cless exists in the user's home directory, this - file is also used as a --.I lesskey -+.I clesskey - file. - .IP -m - Causes --.I less -+.I cless - to prompt verbosely (like \fImore\fP), - with the percent into the file. - By default, --.I less -+.I cless - prompts with a colon. - .IP -M - Causes --.I less -+.I cless - to prompt even more verbosely than - .I more. - .IP -n - Suppresses line numbers. - The default (to use line numbers) may cause --.I less -+.I cless - to run more slowly in some cases, especially with a very large input file. - Suppressing line numbers with the -n flag will avoid this problem. - Using line numbers means: the line number will be displayed in the verbose -@@ -556,12 +556,12 @@ - each line in the display. - .IP -o\fIfilename\fP - Causes --.I less -+.I cless - to copy its input to the named file as it is being viewed. - This applies only when the input file is a pipe, - not an ordinary file. - If the file already exists, --.I less -+.I cless - will ask for confirmation before overwriting it. - .IP -O\fIfilename\fP - The -O option is like -o, but it will overwrite an existing -@@ -569,23 +569,23 @@ - .sp - If no log file has been specified, - the -o and -O options can be used from within --.I less -+.I cless - to specify a log file. - Without a file name, they will simply report the name of the log file. - The "s" command is equivalent to specifying -o from within --.I less. -+.I cless. - .IP -p\fIpattern\fP - The -p option on the command line is equivalent to - specifying +/\fIpattern\fP; - that is, it tells --.I less -+.I cless - to start at the first occurrence of \fIpattern\fP in the file. - .IP -P\fIprompt\fP - Provides a way to tailor the three prompt - styles to your own preference. - This option would normally be put in the LESS environment - variable, rather than being typed in with each --.I less -+.I cless - command. - Such an option must either be the last option in the LESS variable, - or be terminated by a dollar sign. -@@ -613,7 +613,7 @@ - The default is to display control characters using the caret notation; - for example, a control-A (octal 001) is displayed as "^A". - Warning: when the -r flag is used, --.I less -+.I cless - cannot keep track of the actual appearance of the screen - (since this depends on how the screen responds to - each type of control character). -@@ -638,10 +638,10 @@ - .I ctags - (1) command. - This option may also be specified from within --.I less -+.I cless - (using the \- command) as a way of examining a new file. - The command ":t" is equivalent to specifying -t from within --.I less. -+.I cless. - .IP -T\fItagsfile\fP - Specifies a tags file to be used instead of "tags". - .IP -u -@@ -667,7 +667,7 @@ - if neither -u nor -U is in effect. - .IP -V - Displays the version number of --.I less. -+.I cless. - .IP -w - Causes blank lines to be used to represent lines - past the end of the file. -@@ -705,9 +705,9 @@ - .IP + - If a command line option begins with \fB+\fP, - the remainder of that option is taken to be an initial command to --.I less. -+.I cless. - For example, +G tells --.I less -+.I cless - to start at the end of the file rather than the beginning, - and +/xyz tells it to start at the first occurrence of "xyz" in the file. - As a special case, + acts like +g; -@@ -777,25 +777,25 @@ - - .SH "KEY BINDINGS" - You may define your own --.I less -+.I cless - commands by using the program --.I lesskey -+.I clesskey - (1) --to create a file called ".less" in your home directory. -+to create a file called ".cless" in your home directory. - This file specifies a set of command keys and an action - associated with each key. - You may also use --.I lesskey -+.I clesskey - to change the line-editing keys (see LINE EDITING). - See the --.I lesskey -+.I clesskey - manual page for more details. - - .SH "INPUT PREPROCESSOR" - You may define an "input preprocessor" for --.I less. -+.I cless. - Before --.I less -+.I cless - opens a file, it first gives your input preprocessor a chance to modify the - way the contents of the file are displayed. - An input preprocessor is simply an executable program (or shell script), -@@ -805,7 +805,7 @@ - in place of the contents of the original file. - However, it will appear to the user as if the original file is opened; - that is, --.I less -+.I cless - will display the original filename as the name of the current file. - .PP - An input preprocessor receives one command line argument, the original filename, -@@ -813,7 +813,7 @@ - It should create the replacement file, and when finished, - print the name of the replacement file to its standard output. - If the input preprocessor does not output a replacement filename, --.I less -+.I cless - uses the original file, as normal. - The input preprocessor is not called when viewing standard input. - To set up an input preprocessor, set the LESSOPEN environment variable -@@ -823,7 +823,7 @@ - when the input preprocessor command is invoked. - .PP - When --.I less -+.I cless - closes a file opened in such a way, it will call another program, - called the input postprocessor, - which may perform any desired clean-up action (such as deleting the -@@ -839,24 +839,24 @@ - .PP - For example, on many Unix systems, these two scripts will allow you - to keep files in compressed format, but still let --.I less -+.I cless - view them directly: - .PP --lessopen.sh: -+clessopen.sh: - .br - #! /bin/sh - .br - case "$1" in - .br -- *.Z) uncompress -c $1 >/tmp/less.$$ 2>/dev/null -+ *.Z) uncompress -c $1 >/tmp/cless.$$ 2>/dev/null - .br -- if [ -s /tmp/less.$$ ]; then -+ if [ -s /tmp/cless.$$ ]; then - .br -- echo /tmp/less.$$ -+ echo /tmp/cless.$$ - .br - else - .br -- rm -f /tmp/less.$$ -+ rm -f /tmp/cless.$$ - .br - fi - .br -@@ -878,7 +878,7 @@ - .PP - It is also possible to set up an input preprocessor to - pipe the file data directly to --.I less, -+.I cless, - rather than putting the data into a replacement file. - This avoids the need to decompress the entire file before - starting to view it. -@@ -888,7 +888,7 @@ - writes the entire contents of the replacement file on its standard output. - If the input pipe does not write any characters on its standard output, - then there is no replacement file and --.I less -+.I cless - uses the original file, as normal. - To use an input pipe, - make the first character in the LESSOPEN environment variable a -@@ -950,7 +950,7 @@ - Selects a character set appropriate for NeXT computers. - .PP - In special cases, it may be desired to tailor --.I less -+.I cless - to use a character set other than the ones definable by LESSCHARSET. - In this case, the environment variable LESSCHARDEF can be used - to define a character set. -@@ -983,7 +983,7 @@ - but your system supports the - .I setlocale - interface, --.I less -+.I cless - will use setlocale to determine the character set. - setlocale is controlled by setting the LANG or LC_CTYPE environment variables. - .PP -@@ -1173,14 +1173,14 @@ - .IP EDITOR - The name of the editor (used for the v command). - .IP HOME --Name of the user's home directory (used to find a .less file). -+Name of the user's home directory (used to find a .cless file). - .IP LANG - Language for determining the character set. - .IP LC_CTYPE - Language for determining the character set. - .IP LESS - Flags which are passed to --.I less -+.I cless - automatically. - .IP LESSBINFMT - Format for displaying non-printable, non-control characters. -@@ -1204,13 +1204,14 @@ - The shell used to execute the ! command, as well as to expand filenames. - .IP TERM - The type of terminal on which --.I less -+.I cless - is being run. - .IP VISUAL - The name of the editor (used for the v command). - - .SH "SEE ALSO" --lesskey(1) -+clesskey(1) -+less(1) - - .SH WARNINGS - The = command and prompts (unless changed by -P) Property changes on: head/chinese/cless/files/patch-ac ___________________________________________________________________ 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/chinese/cless/files/patch-ad =================================================================== --- head/chinese/cless/files/patch-ad (revision 363161) +++ head/chinese/cless/files/patch-ad (nonexistent) @@ -1,103 +0,0 @@ ---- lesskey.nro.orig Sun Sep 15 23:00:54 1996 -+++ lesskey.nro Sun Sep 15 23:03:28 1996 -@@ -1,22 +1,22 @@ - .TH LESSKEY 1 - .SH NAME --lesskey \- specify key bindings for less -+clesskey \- specify key bindings for cless - .SH SYNOPSIS --.B "lesskey [-o output] [input]" -+.B "clesskey [-o output] [input]" - .br --.B "lesskey -V" -+.B "clesskey -V" - .SH DESCRIPTION - .I Lesskey - is used to specify a set of key bindings to be used by --.I less. -+.I cless. - The input file is a text file which describes the key bindings, - If the input file is "-", standard input is read. --If no input file is specified, $HOME/.lesskey is read. -+If no input file is specified, $HOME/.clesskey is read. - The output file is a binary file which is used by --.I less. --If no output file is specified, $HOME/.less is written. -+.I cless. -+If no output file is specified, $HOME/.cless is written. - If the output file already exists, --.I lesskey -+.I clesskey - will overwrite it. - .PP - The input file consists of lines of the form: -@@ -26,7 +26,7 @@ - Whitespace is any sequence of one or more spaces and/or tabs. - The \fIstring\fP is the command key(s) which invoke the action. - The \fIstring\fP may be a single command key, or a sequence of up to 15 keys. --The \fIaction\fP is the name of the less action, from the list below. -+The \fIaction\fP is the name of the cless action, from the list below. - The characters in the \fIstring\fP may appear literally, or be - prefixed by a caret to indicate a control key. - A backslash followed by one to three octal digits may be used to -@@ -41,22 +41,22 @@ - .PP - An action may be followed by an "extra" string. - When such a command is entered while running --.I less, -+.I cless, - the action is performed, and then the extra - string is parsed, just as if it were typed in to --.I less. -+.I cless. - This feature can be used in certain cases to extend - the functionality of a command. - For example, see the "{" and ":t" commands in the example below. - .PP - The -V flag causes --.I lesskey -+.I clesskey - to print its version number and immediately exit. - Other flags and arguments are ignored. - - .SH EXAMPLE - The following input file describes the set of --default command keys used by less: -+default command keys used by cless: - .sp - .nf - \er forw-line -@@ -147,14 +147,14 @@ - .sp - .SH PRECEDENCE - Commands specified by --.I lesskey -+.I clesskey - take precedence over the default commands. - A default command key may be disabled by including it in the - input file with the action "invalid". - Alternatively, a key may be defined - to do nothing by using the action "noaction". - "noaction" is similar to "invalid", but --.I less -+.I cless - will give an error beep for an "invalid" command, - but not for a "noaction" command. - In addition, ALL default commands may be disabled by -@@ -185,7 +185,7 @@ - - .SH EXAMPLE - The following input file describes the set of --default line-editing keys used by less: -+default line-editing keys used by cless: - .sp - .nf - #line-edit -@@ -210,6 +210,7 @@ - .sp - - .SH "SEE ALSO" -+cless(1) - less(1) - - .SH COPYRIGHT Property changes on: head/chinese/cless/files/patch-ad ___________________________________________________________________ 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/chinese/cless/files/patch-Makefile.in =================================================================== --- head/chinese/cless/files/patch-Makefile.in (nonexistent) +++ head/chinese/cless/files/patch-Makefile.in (revision 363162) @@ -0,0 +1,39 @@ +--- Makefile.in.orig 1995-04-25 10:41:39.000000000 +0800 ++++ Makefile.in 2014-01-08 23:13:25.000000000 +0800 +@@ -73,24 +73,24 @@ lesskey: lesskey.${O} version.${O} + ${OBJ}: less.h defines.h funcs.h + + filename.${O}: filename.c +- ${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c ++ ${CC} -c -DHELPFILE=\"${datadir}/cless.gb\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c + + install: all less.hlp less.bg5 less.gb less.nro installdirs +- ${INSTALL_PROGRAM} less ${bindir}/${binprefix}less +- ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey +- ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp +- ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/less.bg5 +- ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/less.gb +- ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext} +- ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext} ++ ${INSTALL_PROGRAM} less $(DESTDIR)${bindir}/${binprefix}cless ++ ${INSTALL_PROGRAM} lesskey $(DESTDIR)${bindir}/${binprefix}clesskey ++ ${INSTALL_DATA} ${srcdir}/less.hlp $(DESTDIR)${datadir}/cless.hlp ++ ${INSTALL_DATA} ${srcdir}/less.bg5 $(DESTDIR)${datadir}/cless.bg5 ++ ${INSTALL_DATA} ${srcdir}/less.gb $(DESTDIR)${datadir}/cless.gb ++ ${INSTALL_DATA} ${srcdir}/less.nro $(DESTDIR)${mandir}/${manprefix}cless.${manext} ++ ${INSTALL_DATA} ${srcdir}/lesskey.nro $(DESTDIR)${mandir}/${manprefix}clesskey.${manext} + + installdirs: mkinstalldirs +- ${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir} ++ ${srcdir}/mkinstalldirs $(DESTDIR)${bindir} $(DESTDIR)${datadir} $(DESTDIR)${mandir} + + uninstall: +- rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey +- rm -f ${datadir}/less.hlp ${datadir}/less.bg5 ${datadir}/less.gb +- rm -f ${mandir}/less.${manext} ${mandir}/lesskey.${manext} ++ rm -f ${bindir}/${binprefix}cless ${bindir}/${binprefix}clesskey ++ rm -f ${datadir}/cless.hlp ${datadir}/cless.bg5 ${datadir}/cless.gb ++ rm -f ${mandir}/cless.${manext} ${mandir}/clesskey.${manext} + + info: + install-info: Property changes on: head/chinese/cless/files/patch-Makefile.in ___________________________________________________________________ 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/chinese/cless/files/patch-defines.h.in =================================================================== --- head/chinese/cless/files/patch-defines.h.in (nonexistent) +++ head/chinese/cless/files/patch-defines.h.in (revision 363162) @@ -0,0 +1,13 @@ +--- defines.h.in.orig Sun Sep 15 22:58:20 1996 ++++ defines.h.in Sun Sep 15 22:58:27 1996 +@@ -104,8 +104,8 @@ + * DEF_LESSKEYINFILE is the filename of the default lesskey input + * (in the HOME directory). + */ +-#define LESSKEYFILE ".less" +-#define DEF_LESSKEYINFILE ".lesskey" ++#define LESSKEYFILE ".cless" ++#define DEF_LESSKEYINFILE ".clesskey" + + + /* Settings always true on Unix. */ Property changes on: head/chinese/cless/files/patch-defines.h.in ___________________________________________________________________ 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/chinese/cless/files/patch-less.nro =================================================================== --- head/chinese/cless/files/patch-less.nro (nonexistent) +++ head/chinese/cless/files/patch-less.nro (revision 363162) @@ -0,0 +1,433 @@ +--- less.nro.orig Sun Sep 15 23:00:49 1996 ++++ less.nro Sun Sep 15 23:06:46 1996 +@@ -1,12 +1,12 @@ + .TH LESS 1 + .SH NAME +-less \- opposite of more ++cless \- opposite of more + .SH SYNOPSIS +-.B "less -?" ++.B "cless -?" + .br +-.B "less -V" ++.B "cless -V" + .br +-.B "less [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]" ++.B "cless [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]" + .br + .B " [-b \fIbufs\fP] [-h \fIlines\fP] [-j \fIline\fP] [-k \fIkeyfile\fP]" + .br +@@ -23,7 +23,7 @@ + (1), but which allows backward movement + in the file as well as forward movement. + Also, +-.I less ++.I cless + does not have to read the entire input file before starting, + so with large input files it starts up faster than text editors like + .I vi +@@ -114,7 +114,7 @@ + Go to a position N percent into the file. + N should be between 0 and 100. + (This works if standard input is being read, but only if +-.I less ++.I cless + has already read to the end of the file. + It is always fast, but not always useful.) + .PP +@@ -329,18 +329,18 @@ + .IP +cmd + Causes the specified cmd to be executed each time a new file is examined. + For example, +G causes +-.I less ++.I cless + to initially display each file starting at the end + rather than the beginning. + .PP + .IP V + Prints the version number of +-.I less ++.I cless + being run. + .PP + .IP "q or :q or :Q or ZZ" + Exits +-.I less. ++.I cless. + .PP + The following + three +@@ -374,13 +374,13 @@ + .SH OPTIONS + Command line options are described below. + Most options may be changed while +-.I less ++.I cless + is running, via the "\-" command. + .PP + Options are also taken from the environment variable "LESS". + For example, +-to avoid typing "less -options ..." each time +-.I less ++to avoid typing "cless -options ..." each time ++.I cless + is invoked, you might tell + .I csh: + .sp +@@ -402,10 +402,10 @@ + following string. + .IP -? + This option displays a summary of the commands accepted by +-.I less ++.I cless + (the same as the h command). + If this option is given, all other options are ignored, and +-.I less ++.I cless + exits after the help screen is viewed. + (Depending on how your shell interprets the question mark, + it may be necessary to quote the question mark, thus: "-\\?".) +@@ -417,7 +417,7 @@ + (or after the last found line; see the -j option). + .IP -b\fIn\fP + Specifies the number of buffers +-.I less ++.I cless + will use for each file. + Buffers are 1K, and by default 10 buffers are used for each file + (except if the file is a pipe; see the -B option). +@@ -444,7 +444,7 @@ + that is, lacks some important capability, + such as the ability to clear the screen or scroll backward. + The -d option does not otherwise change the behavior of +-.I less ++.I cless + on a dumb terminal). + .IP -D\fBx\fP\fIcolor\fP + [MS-DOS only] +@@ -457,31 +457,31 @@ + A single number \fIN\fP is the same as \fIN.0\fP. + .IP -e + Causes +-.I less ++.I cless + to automatically exit + the second time it reaches end-of-file. + By default, the only way to exit +-.I less ++.I cless + is via the "q" command. + .IP -E + Causes +-.I less ++.I cless + to automatically exit the first time it reaches end-of-file. + .IP -f + Forces non-regular files to be opened. + (A non-regular file is a directory or a device special file.) + Also suppresses the warning message when a binary file is opened. + By default, +-.I less ++.I cless + will refuse to open non-regular files. + .IP -g + Normally, +-.I less ++.I cless + will highlight ALL strings which match the last search command. + The -g flag changes this behavior to highlight only the particular string + which was found by the last search command. + This can cause +-.I less ++.I cless + to run somewhat faster than the default. + .IP -G + The -G flag suppresses all highlighting of strings found by search commands. +@@ -519,32 +519,32 @@ + on the screen. + .IP -k\fIfilename\fP + Causes +-.I less ++.I cless + to open and interpret the named file as a +-.I lesskey ++.I clesskey + (1) file. + Multiple -k options may be specified. +-If a file called .less exists in the user's home directory, this ++If a file called .cless exists in the user's home directory, this + file is also used as a +-.I lesskey ++.I clesskey + file. + .IP -m + Causes +-.I less ++.I cless + to prompt verbosely (like \fImore\fP), + with the percent into the file. + By default, +-.I less ++.I cless + prompts with a colon. + .IP -M + Causes +-.I less ++.I cless + to prompt even more verbosely than + .I more. + .IP -n + Suppresses line numbers. + The default (to use line numbers) may cause +-.I less ++.I cless + to run more slowly in some cases, especially with a very large input file. + Suppressing line numbers with the -n flag will avoid this problem. + Using line numbers means: the line number will be displayed in the verbose +@@ -556,12 +556,12 @@ + each line in the display. + .IP -o\fIfilename\fP + Causes +-.I less ++.I cless + to copy its input to the named file as it is being viewed. + This applies only when the input file is a pipe, + not an ordinary file. + If the file already exists, +-.I less ++.I cless + will ask for confirmation before overwriting it. + .IP -O\fIfilename\fP + The -O option is like -o, but it will overwrite an existing +@@ -569,23 +569,23 @@ + .sp + If no log file has been specified, + the -o and -O options can be used from within +-.I less ++.I cless + to specify a log file. + Without a file name, they will simply report the name of the log file. + The "s" command is equivalent to specifying -o from within +-.I less. ++.I cless. + .IP -p\fIpattern\fP + The -p option on the command line is equivalent to + specifying +/\fIpattern\fP; + that is, it tells +-.I less ++.I cless + to start at the first occurrence of \fIpattern\fP in the file. + .IP -P\fIprompt\fP + Provides a way to tailor the three prompt + styles to your own preference. + This option would normally be put in the LESS environment + variable, rather than being typed in with each +-.I less ++.I cless + command. + Such an option must either be the last option in the LESS variable, + or be terminated by a dollar sign. +@@ -613,7 +613,7 @@ + The default is to display control characters using the caret notation; + for example, a control-A (octal 001) is displayed as "^A". + Warning: when the -r flag is used, +-.I less ++.I cless + cannot keep track of the actual appearance of the screen + (since this depends on how the screen responds to + each type of control character). +@@ -638,10 +638,10 @@ + .I ctags + (1) command. + This option may also be specified from within +-.I less ++.I cless + (using the \- command) as a way of examining a new file. + The command ":t" is equivalent to specifying -t from within +-.I less. ++.I cless. + .IP -T\fItagsfile\fP + Specifies a tags file to be used instead of "tags". + .IP -u +@@ -667,7 +667,7 @@ + if neither -u nor -U is in effect. + .IP -V + Displays the version number of +-.I less. ++.I cless. + .IP -w + Causes blank lines to be used to represent lines + past the end of the file. +@@ -705,9 +705,9 @@ + .IP + + If a command line option begins with \fB+\fP, + the remainder of that option is taken to be an initial command to +-.I less. ++.I cless. + For example, +G tells +-.I less ++.I cless + to start at the end of the file rather than the beginning, + and +/xyz tells it to start at the first occurrence of "xyz" in the file. + As a special case, + acts like +g; +@@ -777,25 +777,25 @@ + + .SH "KEY BINDINGS" + You may define your own +-.I less ++.I cless + commands by using the program +-.I lesskey ++.I clesskey + (1) +-to create a file called ".less" in your home directory. ++to create a file called ".cless" in your home directory. + This file specifies a set of command keys and an action + associated with each key. + You may also use +-.I lesskey ++.I clesskey + to change the line-editing keys (see LINE EDITING). + See the +-.I lesskey ++.I clesskey + manual page for more details. + + .SH "INPUT PREPROCESSOR" + You may define an "input preprocessor" for +-.I less. ++.I cless. + Before +-.I less ++.I cless + opens a file, it first gives your input preprocessor a chance to modify the + way the contents of the file are displayed. + An input preprocessor is simply an executable program (or shell script), +@@ -805,7 +805,7 @@ + in place of the contents of the original file. + However, it will appear to the user as if the original file is opened; + that is, +-.I less ++.I cless + will display the original filename as the name of the current file. + .PP + An input preprocessor receives one command line argument, the original filename, +@@ -813,7 +813,7 @@ + It should create the replacement file, and when finished, + print the name of the replacement file to its standard output. + If the input preprocessor does not output a replacement filename, +-.I less ++.I cless + uses the original file, as normal. + The input preprocessor is not called when viewing standard input. + To set up an input preprocessor, set the LESSOPEN environment variable +@@ -823,7 +823,7 @@ + when the input preprocessor command is invoked. + .PP + When +-.I less ++.I cless + closes a file opened in such a way, it will call another program, + called the input postprocessor, + which may perform any desired clean-up action (such as deleting the +@@ -839,24 +839,24 @@ + .PP + For example, on many Unix systems, these two scripts will allow you + to keep files in compressed format, but still let +-.I less ++.I cless + view them directly: + .PP +-lessopen.sh: ++clessopen.sh: + .br + #! /bin/sh + .br + case "$1" in + .br +- *.Z) uncompress -c $1 >/tmp/less.$$ 2>/dev/null ++ *.Z) uncompress -c $1 >/tmp/cless.$$ 2>/dev/null + .br +- if [ -s /tmp/less.$$ ]; then ++ if [ -s /tmp/cless.$$ ]; then + .br +- echo /tmp/less.$$ ++ echo /tmp/cless.$$ + .br + else + .br +- rm -f /tmp/less.$$ ++ rm -f /tmp/cless.$$ + .br + fi + .br +@@ -878,7 +878,7 @@ + .PP + It is also possible to set up an input preprocessor to + pipe the file data directly to +-.I less, ++.I cless, + rather than putting the data into a replacement file. + This avoids the need to decompress the entire file before + starting to view it. +@@ -888,7 +888,7 @@ + writes the entire contents of the replacement file on its standard output. + If the input pipe does not write any characters on its standard output, + then there is no replacement file and +-.I less ++.I cless + uses the original file, as normal. + To use an input pipe, + make the first character in the LESSOPEN environment variable a +@@ -950,7 +950,7 @@ + Selects a character set appropriate for NeXT computers. + .PP + In special cases, it may be desired to tailor +-.I less ++.I cless + to use a character set other than the ones definable by LESSCHARSET. + In this case, the environment variable LESSCHARDEF can be used + to define a character set. +@@ -983,7 +983,7 @@ + but your system supports the + .I setlocale + interface, +-.I less ++.I cless + will use setlocale to determine the character set. + setlocale is controlled by setting the LANG or LC_CTYPE environment variables. + .PP +@@ -1173,14 +1173,14 @@ + .IP EDITOR + The name of the editor (used for the v command). + .IP HOME +-Name of the user's home directory (used to find a .less file). ++Name of the user's home directory (used to find a .cless file). + .IP LANG + Language for determining the character set. + .IP LC_CTYPE + Language for determining the character set. + .IP LESS + Flags which are passed to +-.I less ++.I cless + automatically. + .IP LESSBINFMT + Format for displaying non-printable, non-control characters. +@@ -1204,13 +1204,14 @@ + The shell used to execute the ! command, as well as to expand filenames. + .IP TERM + The type of terminal on which +-.I less ++.I cless + is being run. + .IP VISUAL + The name of the editor (used for the v command). + + .SH "SEE ALSO" +-lesskey(1) ++clesskey(1) ++less(1) + + .SH WARNINGS + The = command and prompts (unless changed by -P) Property changes on: head/chinese/cless/files/patch-less.nro ___________________________________________________________________ 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/chinese/cless/files/patch-lesskey.nro =================================================================== --- head/chinese/cless/files/patch-lesskey.nro (nonexistent) +++ head/chinese/cless/files/patch-lesskey.nro (revision 363162) @@ -0,0 +1,103 @@ +--- lesskey.nro.orig Sun Sep 15 23:00:54 1996 ++++ lesskey.nro Sun Sep 15 23:03:28 1996 +@@ -1,22 +1,22 @@ + .TH LESSKEY 1 + .SH NAME +-lesskey \- specify key bindings for less ++clesskey \- specify key bindings for cless + .SH SYNOPSIS +-.B "lesskey [-o output] [input]" ++.B "clesskey [-o output] [input]" + .br +-.B "lesskey -V" ++.B "clesskey -V" + .SH DESCRIPTION + .I Lesskey + is used to specify a set of key bindings to be used by +-.I less. ++.I cless. + The input file is a text file which describes the key bindings, + If the input file is "-", standard input is read. +-If no input file is specified, $HOME/.lesskey is read. ++If no input file is specified, $HOME/.clesskey is read. + The output file is a binary file which is used by +-.I less. +-If no output file is specified, $HOME/.less is written. ++.I cless. ++If no output file is specified, $HOME/.cless is written. + If the output file already exists, +-.I lesskey ++.I clesskey + will overwrite it. + .PP + The input file consists of lines of the form: +@@ -26,7 +26,7 @@ + Whitespace is any sequence of one or more spaces and/or tabs. + The \fIstring\fP is the command key(s) which invoke the action. + The \fIstring\fP may be a single command key, or a sequence of up to 15 keys. +-The \fIaction\fP is the name of the less action, from the list below. ++The \fIaction\fP is the name of the cless action, from the list below. + The characters in the \fIstring\fP may appear literally, or be + prefixed by a caret to indicate a control key. + A backslash followed by one to three octal digits may be used to +@@ -41,22 +41,22 @@ + .PP + An action may be followed by an "extra" string. + When such a command is entered while running +-.I less, ++.I cless, + the action is performed, and then the extra + string is parsed, just as if it were typed in to +-.I less. ++.I cless. + This feature can be used in certain cases to extend + the functionality of a command. + For example, see the "{" and ":t" commands in the example below. + .PP + The -V flag causes +-.I lesskey ++.I clesskey + to print its version number and immediately exit. + Other flags and arguments are ignored. + + .SH EXAMPLE + The following input file describes the set of +-default command keys used by less: ++default command keys used by cless: + .sp + .nf + \er forw-line +@@ -147,14 +147,14 @@ + .sp + .SH PRECEDENCE + Commands specified by +-.I lesskey ++.I clesskey + take precedence over the default commands. + A default command key may be disabled by including it in the + input file with the action "invalid". + Alternatively, a key may be defined + to do nothing by using the action "noaction". + "noaction" is similar to "invalid", but +-.I less ++.I cless + will give an error beep for an "invalid" command, + but not for a "noaction" command. + In addition, ALL default commands may be disabled by +@@ -185,7 +185,7 @@ + + .SH EXAMPLE + The following input file describes the set of +-default line-editing keys used by less: ++default line-editing keys used by cless: + .sp + .nf + #line-edit +@@ -210,6 +210,7 @@ + .sp + + .SH "SEE ALSO" ++cless(1) + less(1) + + .SH COPYRIGHT Property changes on: head/chinese/cless/files/patch-lesskey.nro ___________________________________________________________________ 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/chinese/enscript/files/patch-aa =================================================================== --- head/chinese/enscript/files/patch-aa (revision 363161) +++ head/chinese/enscript/files/patch-aa (nonexistent) @@ -1,235 +0,0 @@ -diff -ruN src.orib/gsint.h src/gsint.h ---- src.orib/gsint.h Thu May 13 12:41:04 2004 -+++ src/gsint.h Thu May 13 12:58:29 2004 -@@ -190,7 +190,9 @@ - ENC_VMS, - ENC_HP8, - ENC_KOI8, -- ENC_PS -+ ENC_PS, -+ ENC_BIG5, -+ ENC_UNICNS_UTF8, - } InputEncoding; - - struct encoding_registry_st -diff -ruN src.orib/main.c src/main.c ---- src.orib/main.c Thu May 13 12:41:04 2004 -+++ src/main.c Thu May 13 12:42:28 2004 -@@ -817,6 +817,8 @@ - {{"koi8", NULL, NULL}, ENC_KOI8, '\n', 8}, - {{"ps", "PS", NULL}, ENC_PS, '\n', 8}, - {{"pslatin1", "ISOLatin1Encoding", NULL}, ENC_ISO_8859_1, '\n', 8}, -+ {{"big5", "Formal Chinese", NULL}, ENC_BIG5, '\n', 8}, -+ {{"UniCNS-UTF8", "Formal Chinese", NULL}, ENC_UNICNS_UTF8, '\n', 8}, - - {{NULL, NULL, NULL}, 0, 0, 0}, - }; -diff -ruN src.orib/psgen.c src/psgen.c ---- src.orib/psgen.c Thu May 13 12:41:04 2004 -+++ src/psgen.c Thu May 13 12:53:07 2004 -@@ -323,15 +323,21 @@ - if (!paste_file ("enscript", ".pro")) - FATAL ((stderr, _("couldn't find prolog \"%s\": %s\n"), "enscript.pro", - strerror (errno))); -+ if (encoding == ENC_BIG5 || encoding == ENC_UNICNS_UTF8) -+ { /*overwrite the defintion of MF for CJK */ -+ OUTPUT((cofp, "/MF {exch findfont definefont pop} def\n")); -+ } - OUTPUT ((cofp, "%%%%EndResource\n")); - - /* Encoding vector. */ -- OUTPUT ((cofp, "%%%%BeginResource: procset Enscript-Encoding-%s %s\n", -- encoding_name, ps_version_string)); -- if (!paste_file (encoding_name, ".enc")) -- FATAL ((stderr, _("couldn't find encoding file \"%s.enc\": %s\n"), -- encoding_name, strerror (errno))); -- OUTPUT ((cofp, "%%%%EndResource\n")); -+ if (encoding != ENC_BIG5 && encoding != ENC_UNICNS_UTF8) { -+ OUTPUT ((cofp, "%%%%BeginResource: procset Enscript-Encoding-%s %s\n", -+ encoding_name, ps_version_string)); -+ if (!paste_file (encoding_name, ".enc")) -+ FATAL ((stderr, _("couldn't find encoding file \"%s.enc\": %s\n"), -+ encoding_name, strerror (errno))); -+ OUTPUT ((cofp, "%%%%EndResource\n")); -+ } - - OUTPUT ((cofp, "%%%%EndProlog\n")); - -@@ -1129,7 +1135,12 @@ - /* Help macros. */ - - /* Check if character fits to current line. */ --#define FITS_ON_LINE(ch) ((linepos + CHAR_WIDTH (ch) < linew) || col == 0) -+/* NO wraping for CJK at this moment. Added by C.S. Chin Sept.1 */ -+ -+#define FITS_ON_LINE(ch) ( ( (encoding == ENC_BIG5 && b5firstc) ||\ -+ (encoding == ENC_UNICNS_UTF8 && u8firstc) ) ?\ -+ (linepos + 2 * CHAR_WIDTH (ch) < linew) :\ -+ (linepos + CHAR_WIDTH (ch) < linew || in_u8) ) - - /* Is line buffer empty? */ - #define BUFFER_EMPTY() (bufpos == 0) -@@ -1594,8 +1605,12 @@ - static unsigned int buflen = 0; /* output buffer's length */ - unsigned int bufpos = 0; /* current position in output buffer */ - int ch = 0; -+ int ch2 = 0; - int done = 0; - int i; -+ int b5firstc = 0; -+ int u8firstc = 0; -+ int in_u8 = 0; - static int pending_token = tNONE; - unsigned int original_col = col; - -@@ -1745,6 +1760,39 @@ - break; - } - -+ /*Check for big5 characters*/ -+ if (encoding == ENC_BIG5) -+ { -+ if (ch >= 161 && ch <= 249 && b5firstc == 0) -+ { -+ ch2 = is_getc (is); -+ if ((ch2 >= 161 && ch2 <=254) || (ch2 >=64 && ch2 <= 126)) /*big5 char*/ -+ { -+ b5firstc = 1; -+ } else { -+ b5firstc = 0; -+ } -+ is_ungetc(ch2, is); -+ } else { -+ b5firstc = 0; -+ } -+ } -+ -+ /*Check for utf8 character*/ -+ if (encoding == ENC_UNICNS_UTF8) -+ { -+ if (ch >= 0340 && u8firstc==0) { -+ u8firstc = 1; -+ } else { -+ u8firstc = 0; -+ } -+ if (ch >= 0200) { -+ in_u8 = 1; -+ } else { -+ in_u8 = 0; -+ } -+ } -+ - /* Check normal characters. */ - if (EXISTS (ch)) - { -diff -ruN src.orib/util.c src/util.c ---- src.orib/util.c Thu May 13 12:41:04 2004 -+++ src/util.c Thu May 13 12:56:31 2004 -@@ -890,11 +890,18 @@ - * Do not report failures for "Courier*" fonts because - * AFM library's default font will fix them. - */ -- if (strncmp (Fname, COUR, strlen (COUR)) != 0) -- MESSAGE (0, -- (stderr, -- _("couldn't open AFM file for font \"%s\", using default\n"), -- Fname)); -+ if (strncmp (Fname, COUR, strlen (COUR)) != 0) { -+ if (encoding == ENC_BIG5 || encoding == ENC_UNICNS_UTF8) -+ { MESSAGE(0, -+ (stderr, -+ _("CJK encoding, ignore AFM file, use default.\n"),Fname)); -+ } else { -+ MESSAGE (0, -+ (stderr, -+ _("couldn't open AFM file for font \"%s\", using default\n"), -+ Fname)); -+ } -+ } - error = afm_open_default_font (afm, &font); - if (error != AFM_SUCCESS) - { -@@ -997,6 +1004,12 @@ - case ENC_PS: - /* Let's use font's default encoding -- nothing here. */ - break; -+ case ENC_BIG5: -+ /* CJK encoding, ignore AFM, added by C.S.Chin Aug.31 00 */ -+ break; -+ case ENC_UNICNS_UTF8: -+ /* CJK encoding, ignore AFM, added by C.S.Chin Aug.31 00 */ -+ break; - } - - /* Put it to the AFM cache. */ -@@ -1006,20 +1019,56 @@ - - font_info = (CachedFontInfo *) xcalloc (1, sizeof (*font_info)); - /* Read character widths and types. */ -- for (i = 0; i < 256; i++) -- { -- AFMNumber w0x, w0y; -- -- (void) afm_font_charwidth (font, Fpt.w, i, &w0x, &w0y); -- font_info->font_widths[i] = w0x; -- -- if (font->encoding[i] == AFM_ENC_NONE) -- font_info->font_ctype[i] = ' '; -- else if (font->encoding[i] == AFM_ENC_NON_EXISTENT) -- font_info->font_ctype[i] = '.'; -- else -- font_info->font_ctype[i] = '*'; -- } -+ if (encoding != ENC_BIG5 && encoding != ENC_UNICNS_UTF8) { -+ for (i = 0; i < 256; i++) -+ { -+ AFMNumber w0x, w0y; -+ -+ (void) afm_font_charwidth (font, Fpt.w, i, &w0x, &w0y); -+ font_info->font_widths[i] = w0x; -+ -+ if (font->encoding[i] == AFM_ENC_NONE) -+ font_info->font_ctype[i] = ' '; -+ else if (font->encoding[i] == AFM_ENC_NON_EXISTENT) -+ font_info->font_ctype[i] = '.'; -+ else -+ font_info->font_ctype[i] = '*'; -+ } -+ } else { -+ if (encoding == ENC_BIG5) -+ { -+ for (i = 0; i < 256; i++) -+ { -+ AFMNumber w0x, w0y; -+ if ( i < 040 ) -+ { -+ font_info->font_widths[i] = Fpt.w * 0.525; -+ font_info->font_ctype[i] = ' '; -+ } else { -+ font_info->font_widths[i] = Fpt.w * 0.525; -+ font_info->font_ctype[i] = '*'; -+ } -+ } -+ } else { -+ /*UTF8*/ -+ for (i = 0; i < 256; i++) -+ { -+ AFMNumber w0x, w0y; -+ if ( i < 040 ) -+ { -+ font_info->font_widths[i] = Fpt.w * 0.525; -+ font_info->font_ctype[i] = ' '; -+ } else { -+ if (i >= 0200) { -+ font_info->font_widths[i] = Fpt.w * 0.525 * 2.0 / 3.0; -+ } else { -+ font_info->font_widths[i] = Fpt.w * 0.525; -+ } -+ font_info->font_ctype[i] = '*'; -+ } -+ } -+ } -+ } - - font_info->font_is_fixed - = font->writing_direction_metrics[0].IsFixedPitch; Property changes on: head/chinese/enscript/files/patch-aa ___________________________________________________________________ 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/chinese/enscript/files/patch-ab =================================================================== --- head/chinese/enscript/files/patch-ab (revision 363161) +++ head/chinese/enscript/files/patch-ab (nonexistent) @@ -1,11 +0,0 @@ ---- lib/enscript.cfg.in.orig Mon Nov 27 22:26:17 2000 -+++ lib/enscript.cfg.in Mon Nov 27 22:39:04 2000 -@@ -42,7 +42,7 @@ - Clean7Bit: 1 - - # Default input encoding. --DefaultEncoding: latin1 -+DefaultEncoding: big5 - - # Default fancy header. - DefaultFancyHeader: enscript Property changes on: head/chinese/enscript/files/patch-ab ___________________________________________________________________ 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/chinese/enscript/files/patch-chinese-escript =================================================================== --- head/chinese/enscript/files/patch-chinese-escript (nonexistent) +++ head/chinese/enscript/files/patch-chinese-escript (revision 363162) @@ -0,0 +1,235 @@ +diff -ruN src.orib/gsint.h src/gsint.h +--- src.orib/gsint.h Thu May 13 12:41:04 2004 ++++ src/gsint.h Thu May 13 12:58:29 2004 +@@ -190,7 +190,9 @@ + ENC_VMS, + ENC_HP8, + ENC_KOI8, +- ENC_PS ++ ENC_PS, ++ ENC_BIG5, ++ ENC_UNICNS_UTF8, + } InputEncoding; + + struct encoding_registry_st +diff -ruN src.orib/main.c src/main.c +--- src.orib/main.c Thu May 13 12:41:04 2004 ++++ src/main.c Thu May 13 12:42:28 2004 +@@ -817,6 +817,8 @@ + {{"koi8", NULL, NULL}, ENC_KOI8, '\n', 8}, + {{"ps", "PS", NULL}, ENC_PS, '\n', 8}, + {{"pslatin1", "ISOLatin1Encoding", NULL}, ENC_ISO_8859_1, '\n', 8}, ++ {{"big5", "Formal Chinese", NULL}, ENC_BIG5, '\n', 8}, ++ {{"UniCNS-UTF8", "Formal Chinese", NULL}, ENC_UNICNS_UTF8, '\n', 8}, + + {{NULL, NULL, NULL}, 0, 0, 0}, + }; +diff -ruN src.orib/psgen.c src/psgen.c +--- src.orib/psgen.c Thu May 13 12:41:04 2004 ++++ src/psgen.c Thu May 13 12:53:07 2004 +@@ -323,15 +323,21 @@ + if (!paste_file ("enscript", ".pro")) + FATAL ((stderr, _("couldn't find prolog \"%s\": %s\n"), "enscript.pro", + strerror (errno))); ++ if (encoding == ENC_BIG5 || encoding == ENC_UNICNS_UTF8) ++ { /*overwrite the defintion of MF for CJK */ ++ OUTPUT((cofp, "/MF {exch findfont definefont pop} def\n")); ++ } + OUTPUT ((cofp, "%%%%EndResource\n")); + + /* Encoding vector. */ +- OUTPUT ((cofp, "%%%%BeginResource: procset Enscript-Encoding-%s %s\n", +- encoding_name, ps_version_string)); +- if (!paste_file (encoding_name, ".enc")) +- FATAL ((stderr, _("couldn't find encoding file \"%s.enc\": %s\n"), +- encoding_name, strerror (errno))); +- OUTPUT ((cofp, "%%%%EndResource\n")); ++ if (encoding != ENC_BIG5 && encoding != ENC_UNICNS_UTF8) { ++ OUTPUT ((cofp, "%%%%BeginResource: procset Enscript-Encoding-%s %s\n", ++ encoding_name, ps_version_string)); ++ if (!paste_file (encoding_name, ".enc")) ++ FATAL ((stderr, _("couldn't find encoding file \"%s.enc\": %s\n"), ++ encoding_name, strerror (errno))); ++ OUTPUT ((cofp, "%%%%EndResource\n")); ++ } + + OUTPUT ((cofp, "%%%%EndProlog\n")); + +@@ -1129,7 +1135,12 @@ + /* Help macros. */ + + /* Check if character fits to current line. */ +-#define FITS_ON_LINE(ch) ((linepos + CHAR_WIDTH (ch) < linew) || col == 0) ++/* NO wraping for CJK at this moment. Added by C.S. Chin Sept.1 */ ++ ++#define FITS_ON_LINE(ch) ( ( (encoding == ENC_BIG5 && b5firstc) ||\ ++ (encoding == ENC_UNICNS_UTF8 && u8firstc) ) ?\ ++ (linepos + 2 * CHAR_WIDTH (ch) < linew) :\ ++ (linepos + CHAR_WIDTH (ch) < linew || in_u8) ) + + /* Is line buffer empty? */ + #define BUFFER_EMPTY() (bufpos == 0) +@@ -1594,8 +1605,12 @@ + static unsigned int buflen = 0; /* output buffer's length */ + unsigned int bufpos = 0; /* current position in output buffer */ + int ch = 0; ++ int ch2 = 0; + int done = 0; + int i; ++ int b5firstc = 0; ++ int u8firstc = 0; ++ int in_u8 = 0; + static int pending_token = tNONE; + unsigned int original_col = col; + +@@ -1745,6 +1760,39 @@ + break; + } + ++ /*Check for big5 characters*/ ++ if (encoding == ENC_BIG5) ++ { ++ if (ch >= 161 && ch <= 249 && b5firstc == 0) ++ { ++ ch2 = is_getc (is); ++ if ((ch2 >= 161 && ch2 <=254) || (ch2 >=64 && ch2 <= 126)) /*big5 char*/ ++ { ++ b5firstc = 1; ++ } else { ++ b5firstc = 0; ++ } ++ is_ungetc(ch2, is); ++ } else { ++ b5firstc = 0; ++ } ++ } ++ ++ /*Check for utf8 character*/ ++ if (encoding == ENC_UNICNS_UTF8) ++ { ++ if (ch >= 0340 && u8firstc==0) { ++ u8firstc = 1; ++ } else { ++ u8firstc = 0; ++ } ++ if (ch >= 0200) { ++ in_u8 = 1; ++ } else { ++ in_u8 = 0; ++ } ++ } ++ + /* Check normal characters. */ + if (EXISTS (ch)) + { +diff -ruN src.orib/util.c src/util.c +--- src.orib/util.c Thu May 13 12:41:04 2004 ++++ src/util.c Thu May 13 12:56:31 2004 +@@ -890,11 +890,18 @@ + * Do not report failures for "Courier*" fonts because + * AFM library's default font will fix them. + */ +- if (strncmp (Fname, COUR, strlen (COUR)) != 0) +- MESSAGE (0, +- (stderr, +- _("couldn't open AFM file for font \"%s\", using default\n"), +- Fname)); ++ if (strncmp (Fname, COUR, strlen (COUR)) != 0) { ++ if (encoding == ENC_BIG5 || encoding == ENC_UNICNS_UTF8) ++ { MESSAGE(0, ++ (stderr, ++ _("CJK encoding, ignore AFM file, use default.\n"),Fname)); ++ } else { ++ MESSAGE (0, ++ (stderr, ++ _("couldn't open AFM file for font \"%s\", using default\n"), ++ Fname)); ++ } ++ } + error = afm_open_default_font (afm, &font); + if (error != AFM_SUCCESS) + { +@@ -997,6 +1004,12 @@ + case ENC_PS: + /* Let's use font's default encoding -- nothing here. */ + break; ++ case ENC_BIG5: ++ /* CJK encoding, ignore AFM, added by C.S.Chin Aug.31 00 */ ++ break; ++ case ENC_UNICNS_UTF8: ++ /* CJK encoding, ignore AFM, added by C.S.Chin Aug.31 00 */ ++ break; + } + + /* Put it to the AFM cache. */ +@@ -1006,20 +1019,56 @@ + + font_info = (CachedFontInfo *) xcalloc (1, sizeof (*font_info)); + /* Read character widths and types. */ +- for (i = 0; i < 256; i++) +- { +- AFMNumber w0x, w0y; +- +- (void) afm_font_charwidth (font, Fpt.w, i, &w0x, &w0y); +- font_info->font_widths[i] = w0x; +- +- if (font->encoding[i] == AFM_ENC_NONE) +- font_info->font_ctype[i] = ' '; +- else if (font->encoding[i] == AFM_ENC_NON_EXISTENT) +- font_info->font_ctype[i] = '.'; +- else +- font_info->font_ctype[i] = '*'; +- } ++ if (encoding != ENC_BIG5 && encoding != ENC_UNICNS_UTF8) { ++ for (i = 0; i < 256; i++) ++ { ++ AFMNumber w0x, w0y; ++ ++ (void) afm_font_charwidth (font, Fpt.w, i, &w0x, &w0y); ++ font_info->font_widths[i] = w0x; ++ ++ if (font->encoding[i] == AFM_ENC_NONE) ++ font_info->font_ctype[i] = ' '; ++ else if (font->encoding[i] == AFM_ENC_NON_EXISTENT) ++ font_info->font_ctype[i] = '.'; ++ else ++ font_info->font_ctype[i] = '*'; ++ } ++ } else { ++ if (encoding == ENC_BIG5) ++ { ++ for (i = 0; i < 256; i++) ++ { ++ AFMNumber w0x, w0y; ++ if ( i < 040 ) ++ { ++ font_info->font_widths[i] = Fpt.w * 0.525; ++ font_info->font_ctype[i] = ' '; ++ } else { ++ font_info->font_widths[i] = Fpt.w * 0.525; ++ font_info->font_ctype[i] = '*'; ++ } ++ } ++ } else { ++ /*UTF8*/ ++ for (i = 0; i < 256; i++) ++ { ++ AFMNumber w0x, w0y; ++ if ( i < 040 ) ++ { ++ font_info->font_widths[i] = Fpt.w * 0.525; ++ font_info->font_ctype[i] = ' '; ++ } else { ++ if (i >= 0200) { ++ font_info->font_widths[i] = Fpt.w * 0.525 * 2.0 / 3.0; ++ } else { ++ font_info->font_widths[i] = Fpt.w * 0.525; ++ } ++ font_info->font_ctype[i] = '*'; ++ } ++ } ++ } ++ } + + font_info->font_is_fixed + = font->writing_direction_metrics[0].IsFixedPitch; Property changes on: head/chinese/enscript/files/patch-chinese-escript ___________________________________________________________________ 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/chinese/enscript/files/patch-lib_enscript.cfg.in =================================================================== --- head/chinese/enscript/files/patch-lib_enscript.cfg.in (nonexistent) +++ head/chinese/enscript/files/patch-lib_enscript.cfg.in (revision 363162) @@ -0,0 +1,11 @@ +--- lib/enscript.cfg.in.orig Mon Nov 27 22:26:17 2000 ++++ lib/enscript.cfg.in Mon Nov 27 22:39:04 2000 +@@ -42,7 +42,7 @@ + Clean7Bit: 1 + + # Default input encoding. +-DefaultEncoding: latin1 ++DefaultEncoding: big5 + + # Default fancy header. + DefaultFancyHeader: enscript Property changes on: head/chinese/enscript/files/patch-lib_enscript.cfg.in ___________________________________________________________________ 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/chinese/gb2ps/Makefile =================================================================== --- head/chinese/gb2ps/Makefile (revision 363161) +++ head/chinese/gb2ps/Makefile (revision 363162) @@ -1,36 +1,32 @@ # Created by: David O'Brien (obrien@FreeBSD.org) # $FreeBSD$ PORTNAME= gb2ps PORTVERSION= 2.02 CATEGORIES= chinese print MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/print/:sw \ ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/fonts/gb/misc/:font DISTNAME= gb2ps.2.02 DISTFILES= ${DISTNAME}.tar.gz:sw \ csong24.ccf.gz:font ckai24.ccf.gz:font cfang24.ccf.gz:font \ chei24.ccf.gz:font cfan24.ccf.gz:font MAINTAINER= ports@FreeBSD.org COMMENT= Converts Chinese GB (simple) encoded text to PostScript EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} WRKSRC= ${WRKDIR}/GB2PS OPTIONS_DEFINE= DOCS -.include - do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/chinese/gb ${INSTALL_PROGRAM} ${WRKSRC}/gb2ps ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/cover.ps ${STAGEDIR}${PREFIX}/share/chinese .for font in csong24.ccf ckai24.ccf cfang24.ccf chei24.ccf cfan24.ccf ${GUNZIP_CMD} -c ${DISTDIR}/${font}.gz > ${STAGEDIR}${PREFIX}/share/chinese/gb/${font} .endfor -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/gb2ps - ${INSTALL_DATA} ${WRKSRC}/gb2ps.help ${STAGEDIR}${PREFIX}/share/doc/gb2ps -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/gb2ps.help ${STAGEDIR}${DOCSDIR} .include Index: head/chinese/gb2ps/files/patch-01 =================================================================== --- head/chinese/gb2ps/files/patch-01 (revision 363161) +++ head/chinese/gb2ps/files/patch-01 (nonexistent) @@ -1,44 +0,0 @@ ---- Makefile.orig 1992-08-17 13:34:14.000000000 +0800 -+++ Makefile 2013-09-26 21:07:54.000000000 +0800 -@@ -5,31 +5,31 @@ - # COVERPAGE -- the absolute path and name of coverpage PS file - # -- default is current directory - --CFONT=./ -+CFONT=${PREFIX}/share/chinese/gb/ - --COVERPAGE=./cover.ps -+COVERPAGE=${PREFIX}/share/chinese/cover.ps - --CFLAGS = -DCFONT=\"${CFONT}\" -DCOVERPAGE=\"${COVERPAGE}\" -+CFLAGS += -DCFONT=\"${CFONT}\" -DCOVERPAGE=\"${COVERPAGE}\" - - all: gb2ps - - gb2ps:gbmain.o gbchar.o gbinit.o gbpage.o cover.o -- cc ${CFLAGS} -o gb2ps gbmain.o gbchar.o gbinit.o \ -+ ${CC} ${CFLAGS} -o gb2ps gbmain.o gbchar.o gbinit.o \ - gbpage.o cover.o - - cover.o:cover.c Makefile -- cc ${CFLAGS} -c cover.c -+ ${CC} ${CFLAGS} -c cover.c - - gbmain.o: gbmain.c Makefile -- cc ${CFLAGS} -c gbmain.c -+ ${CC} ${CFLAGS} -c gbmain.c - gbchar.o: gbchar.c Makefile -- cc ${CFLAGS} -c gbchar.c -+ ${CC} ${CFLAGS} -c gbchar.c - gbinit.o: gbinit.c Makefile -- cc ${CFLAGS} -c gbinit.c -+ ${CC} ${CFLAGS} -c gbinit.c - gbpage.o: gbpage.c Makefile -- cc ${CFLAGS} -c gbpage.c -+ ${CC} ${CFLAGS} -c gbpage.c - gbpost.o: gbpost.c Makefile -- cc ${CFLAGS} -c gbpost.c -+ ${CC} ${CFLAGS} -c gbpost.c - - clean: - rm -f *.o core gb2ps plib2ccf Property changes on: head/chinese/gb2ps/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/chinese/gb2ps/files/patch-Makefile =================================================================== --- head/chinese/gb2ps/files/patch-Makefile (nonexistent) +++ head/chinese/gb2ps/files/patch-Makefile (revision 363162) @@ -0,0 +1,44 @@ +--- Makefile.orig 1992-08-17 13:34:14.000000000 +0800 ++++ Makefile 2013-09-26 21:07:54.000000000 +0800 +@@ -5,31 +5,31 @@ + # COVERPAGE -- the absolute path and name of coverpage PS file + # -- default is current directory + +-CFONT=./ ++CFONT=${PREFIX}/share/chinese/gb/ + +-COVERPAGE=./cover.ps ++COVERPAGE=${PREFIX}/share/chinese/cover.ps + +-CFLAGS = -DCFONT=\"${CFONT}\" -DCOVERPAGE=\"${COVERPAGE}\" ++CFLAGS += -DCFONT=\"${CFONT}\" -DCOVERPAGE=\"${COVERPAGE}\" + + all: gb2ps + + gb2ps:gbmain.o gbchar.o gbinit.o gbpage.o cover.o +- cc ${CFLAGS} -o gb2ps gbmain.o gbchar.o gbinit.o \ ++ ${CC} ${CFLAGS} -o gb2ps gbmain.o gbchar.o gbinit.o \ + gbpage.o cover.o + + cover.o:cover.c Makefile +- cc ${CFLAGS} -c cover.c ++ ${CC} ${CFLAGS} -c cover.c + + gbmain.o: gbmain.c Makefile +- cc ${CFLAGS} -c gbmain.c ++ ${CC} ${CFLAGS} -c gbmain.c + gbchar.o: gbchar.c Makefile +- cc ${CFLAGS} -c gbchar.c ++ ${CC} ${CFLAGS} -c gbchar.c + gbinit.o: gbinit.c Makefile +- cc ${CFLAGS} -c gbinit.c ++ ${CC} ${CFLAGS} -c gbinit.c + gbpage.o: gbpage.c Makefile +- cc ${CFLAGS} -c gbpage.c ++ ${CC} ${CFLAGS} -c gbpage.c + gbpost.o: gbpost.c Makefile +- cc ${CFLAGS} -c gbpost.c ++ ${CC} ${CFLAGS} -c gbpost.c + + clean: + rm -f *.o core gb2ps plib2ccf Property changes on: head/chinese/gb2ps/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/chinese/hc/files/patch-01 =================================================================== --- head/chinese/hc/files/patch-01 (revision 363161) +++ head/chinese/hc/files/patch-01 (nonexistent) @@ -1,22 +0,0 @@ ---- Makefile.orig 1993-03-11 15:22:44.000000000 +0800 -+++ Makefile 2011-09-05 14:30:15.000000000 +0800 -@@ -1,16 +1,16 @@ - # Makefile for hc (Hanzi Converter) 3.0 - - hc: hc.o hclib.o -- cc -o hc hc.o hclib.o -+ $(CC) -o hc hc.o hclib.o - - b2g: - echo "#! /bin/csh" > b2g -- echo $(PWD)/hc "-m b2g -t" $(PWD)/hc.tab "$$*" >> b2g -+ echo $(PREFIX)/bin/hc "-m b2g -t" $(PREFIX)/share/chinese/hc.tab "$$*" >> b2g - chmod a+x b2g - - g2b: - echo "#! /bin/csh" > g2b -- echo $(PWD)/hc -m g2b -t $(PWD)/hc.tab "$$*" >> g2b -+ echo $(PREFIX)/bin/hc -m g2b -t $(PREFIX)/share/chinese/hc.tab "$$*" >> g2b - chmod a+x g2b - - clean: Property changes on: head/chinese/hc/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/chinese/hc/files/patch-Makefile =================================================================== --- head/chinese/hc/files/patch-Makefile (nonexistent) +++ head/chinese/hc/files/patch-Makefile (revision 363162) @@ -0,0 +1,22 @@ +--- Makefile.orig 1993-03-11 15:22:44.000000000 +0800 ++++ Makefile 2011-09-05 14:30:15.000000000 +0800 +@@ -1,16 +1,16 @@ + # Makefile for hc (Hanzi Converter) 3.0 + + hc: hc.o hclib.o +- cc -o hc hc.o hclib.o ++ $(CC) -o hc hc.o hclib.o + + b2g: + echo "#! /bin/csh" > b2g +- echo $(PWD)/hc "-m b2g -t" $(PWD)/hc.tab "$$*" >> b2g ++ echo $(PREFIX)/bin/hc "-m b2g -t" $(PREFIX)/share/chinese/hc.tab "$$*" >> b2g + chmod a+x b2g + + g2b: + echo "#! /bin/csh" > g2b +- echo $(PWD)/hc -m g2b -t $(PWD)/hc.tab "$$*" >> g2b ++ echo $(PREFIX)/bin/hc -m g2b -t $(PREFIX)/share/chinese/hc.tab "$$*" >> g2b + chmod a+x g2b + + clean: Property changes on: head/chinese/hc/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/chinese/lunar/files/patch-01 =================================================================== --- head/chinese/lunar/files/patch-01 (revision 363161) +++ head/chinese/lunar/files/patch-01 (nonexistent) @@ -1,12 +0,0 @@ ---- Makefile.orig Mon Aug 10 21:14:48 1992 -+++ Makefile Tue Feb 4 01:20:50 1997 -@@ -1,6 +1,8 @@ - # Makefile of LUNAR - --CFLAGS= -O -+CFLAGS+= -DBITMAPFILE=\"$(BITMAPFILE)\" -+ -+BITMAPFILE= $(PREFIX)/share/chinese/lunar.bitmap - - lunar: lunar.o - cc -o lunar lunar.o Property changes on: head/chinese/lunar/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/chinese/lunar/files/patch-02 =================================================================== --- head/chinese/lunar/files/patch-02 (revision 363161) +++ head/chinese/lunar/files/patch-02 (nonexistent) @@ -1,22 +0,0 @@ ---- lunar.c.orig Mon Aug 10 21:14:48 1992 -+++ lunar.c Tue Feb 4 01:04:18 1997 -@@ -60,6 +60,10 @@ - #define GanBM 4 - #define ZhiBM 14 - -+#ifndef BITMAPFILE -+#define BITMAPFILE "lunar.bitmap" -+#endif -+ - typedef struct { - int year, month, day, hour, weekday; - int leap; /* the lunar month is a leap month */ -@@ -124,7 +128,7 @@ - - int showHZ = 0; /* output in hanzi */ - int showBM = 0; /* output in bitmap */ --char BMfile[] = "lunar.bitmap"; /* bit map file */ -+char BMfile[] = BITMAPFILE; /* bit map file */ - char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ - char *progname; - Property changes on: head/chinese/lunar/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/chinese/lunar/files/patch-03 =================================================================== --- head/chinese/lunar/files/patch-03 (revision 363161) +++ head/chinese/lunar/files/patch-03 (nonexistent) @@ -1,120 +0,0 @@ ---- lunar.c.orig Tue Feb 26 20:54:23 2002 -+++ lunar.c Tue Feb 26 21:01:38 2002 -@@ -118,6 +118,26 @@ - "侐", "拻", "鞠" - }; - -+static char *GanBIG5[] = { -+ "甲", "乙", "丙", "丁", "戊", -+ "己", "庚", "辛", "壬", "癸" -+}; -+ -+static char *ZhiBIG5[] = { -+ "子", "丑", "寅", "卯", "辰", "巳", -+ "午", "未", "申", "酉", "戌", "亥" -+}; -+ -+static char *ShengXiaoBIG5[] = { -+ "鼠", "牛", "虎", "兔", "龍", "蛇", -+ "馬", "羊", "猴", "雞", "狗", "豬" -+}; -+ -+static char *weekdayBIG5[] = { -+ "日", "一", "二", "三", -+ "四", "五", "六" -+}; -+ - - Date solar, lunar, gan, zhi, gan2, zhi2, lunar2; - -@@ -127,6 +147,7 @@ - int jieAlert; /* if there is uncertainty in JieQi calculation */ - - int showHZ = 0; /* output in hanzi */ -+int showB5 = 0; /* output in big5 */ - int showBM = 0; /* output in bitmap */ - char BMfile[] = BITMAPFILE; /* bit map file */ - char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ -@@ -139,7 +160,7 @@ - void CalGZ(); - int JieDate(), JieDate(); - void readBM(), display3(); --void Report(), ReportE(), ReportBM(), ReportGB(); -+void Report(), ReportE(), ReportBM(), ReportGB(), ReportBIG5(); - void usage(), Error(); - - -@@ -162,6 +183,7 @@ - case 'l': if (inverse) leap=1; else usage(); break; - case 'h': showHZ = 1; break; - case 'b': showBM = 1; break; -+ case '5': showB5 = 1; break; - default: usage(); break; - } - } -@@ -213,13 +235,14 @@ - void usage() - { - printf("Usage:\n\n"); -- printf("Solar->Lunar:\t%s [-h] [-b] year month day [hour]\n", progname); -+ printf("Solar->Lunar:\t%s [-h] [-5] [-b] year month day [hour]\n", progname); - printf("\t\t(in Solar Calendar, 24 hour clock)\n\n"); -- printf("Lunar->Solar:\t%s [-h] [-b] -i [-l] year month day [hour]\n", -+ printf("Lunar->Solar:\t%s [-h] [-5] [-b] -i [-l] year month day [hour]\n", - progname); - printf("\t\t(in Lunar Calendar, 24 hour clock)\n"); - printf("\t\t-l means the month is a leap month (\"run4 yue4\")\n\n"); - printf("\t\t-h means output in hanzi (GB)\n"); -+ printf("\t\t-5 means output in traditional chinese(BIG5)\n"); - printf("\t\t-b means output in \"bitmap\"\n\n"); - printf("Date range: about %d years from the Solar Date %d.%d.%d\n", Nyear, - SolarFirstDate.year, SolarFirstDate.month, SolarFirstDate.day); -@@ -578,6 +601,8 @@ - { - if (showHZ) - ReportGB(); -+ else if (showB5) -+ ReportBIG5(); - else if (showBM) - ReportBM(); - else -@@ -614,6 +639,39 @@ - if (lunar2.month==1) - printf("* %s\n", "爛翐砫褫夔猁党蜊"); - printf("* %s\n", "③脤衄誹ァ奀潔眳勀爛盪"); -+ } -+} -+ -+ -+void ReportBIG5() -+{ -+ printf("%s%d%s%2d%s%2d%s%2d%s%s%s\n", "陽歷: ", -+ solar.year, "年", solar.month, "月", solar.day, -+ "日", solar.hour, "時 ", -+ "星期", weekdayBIG5[solar.weekday]); -+ printf("%s%d%s%s%2d%s%2d%s%s%s%s%s\n", "陰歷: ", -+ lunar.year, "年", (lunar.leap? "閏":""), -+ lunar.month, "月", lunar.day, "日", -+ ZhiBIG5[zhi.hour], "時 ", -+ "生肖屬", ShengXiaoBIG5[zhi.year]); -+ printf("%s%s%s%s%s%s%s%s%s%s%s%s%s\n", "干支: ", -+ GanBIG5[gan.year], ZhiBIG5[zhi.year], "年 ", -+ GanBIG5[gan.month], ZhiBIG5[zhi.month], "月 ", -+ GanBIG5[gan.day], ZhiBIG5[zhi.day], "日 ", -+ GanBIG5[gan.hour], ZhiBIG5[zhi.hour], "時 "); -+ printf("%s%s%s%s%s%s%s%s%s%s%s%s%s\n", -+ "用四柱神算推算之時辰八字: ", -+ GanBIG5[gan2.year], ZhiBIG5[zhi2.year], "年 ", -+ GanBIG5[gan2.month], ZhiBIG5[zhi2.month], "月 ", -+ GanBIG5[gan2.day], ZhiBIG5[zhi2.day], "日 ", -+ GanBIG5[gan2.hour], ZhiBIG5[zhi2.hour], "時 "); -+ if (jieAlert) -+ { -+ printf("* %s, %s\n", "是日為節", -+ "月柱可能要修改"); -+ if (lunar2.month==1) -+ printf("* %s\n", "年柱亦可能要修改"); -+ printf("* %s\n", "請查有節氣時間之萬年歷"); - } - } - Property changes on: head/chinese/lunar/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/chinese/lunar/files/patch-04 =================================================================== --- head/chinese/lunar/files/patch-04 (revision 363161) +++ head/chinese/lunar/files/patch-04 (nonexistent) @@ -1,44 +0,0 @@ ---- lunar.1.orig Tue Aug 11 12:14:48 1992 -+++ lunar.1 Tue Feb 26 21:00:38 2002 -@@ -4,13 +4,15 @@ - .SH SYNTAX - .B lunar - [ --.B\-h -+.B \-h - ] [ --.B\-b -+.B \-5 - ] [ --.B\-i -+.B \-b - ] [ --.B\-l -+.B \-i -+] [ -+.B \-l - ] - .I year month day - [ -@@ -56,14 +58,16 @@ - The ganzhi of the j-th leap month is the same as that of the j-th month. - - The possible options are --.IP b -+.IP \-b - output ganzhi in special "bitmap" characters. --.IP h --output hanzi or Chinese characters encoded in (highest-bit-set) GB code. --.IP i -+.IP \-h -+output hanzi or Simplified Chinese characters encoded in (highest-bit-set) GB code. -+.IP \-5 -+output Traditional Chinese characters encoded in (highest-bit-set) BIG5 code. -+.IP \-i - convert a lunar date to solar date. - The default is to convert a solar date to a lunar date. --.IP l -+.IP \-l - indicate the month is a lunar leap month. - This option is meaningful only when the "-i" option is used. - .SH COPYRIGHT Property changes on: head/chinese/lunar/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/chinese/lunar/files/patch-Makefile =================================================================== --- head/chinese/lunar/files/patch-Makefile (nonexistent) +++ head/chinese/lunar/files/patch-Makefile (revision 363162) @@ -0,0 +1,12 @@ +--- Makefile.orig Mon Aug 10 21:14:48 1992 ++++ Makefile Tue Feb 4 01:20:50 1997 +@@ -1,6 +1,8 @@ + # Makefile of LUNAR + +-CFLAGS= -O ++CFLAGS+= -DBITMAPFILE=\"$(BITMAPFILE)\" ++ ++BITMAPFILE= $(PREFIX)/share/chinese/lunar.bitmap + + lunar: lunar.o + cc -o lunar lunar.o Property changes on: head/chinese/lunar/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/chinese/lunar/files/patch-lunar.1 =================================================================== --- head/chinese/lunar/files/patch-lunar.1 (nonexistent) +++ head/chinese/lunar/files/patch-lunar.1 (revision 363162) @@ -0,0 +1,44 @@ +--- lunar.1.orig Tue Aug 11 12:14:48 1992 ++++ lunar.1 Tue Feb 26 21:00:38 2002 +@@ -4,13 +4,15 @@ + .SH SYNTAX + .B lunar + [ +-.B\-h ++.B \-h + ] [ +-.B\-b ++.B \-5 + ] [ +-.B\-i ++.B \-b + ] [ +-.B\-l ++.B \-i ++] [ ++.B \-l + ] + .I year month day + [ +@@ -56,14 +58,16 @@ + The ganzhi of the j-th leap month is the same as that of the j-th month. + + The possible options are +-.IP b ++.IP \-b + output ganzhi in special "bitmap" characters. +-.IP h +-output hanzi or Chinese characters encoded in (highest-bit-set) GB code. +-.IP i ++.IP \-h ++output hanzi or Simplified Chinese characters encoded in (highest-bit-set) GB code. ++.IP \-5 ++output Traditional Chinese characters encoded in (highest-bit-set) BIG5 code. ++.IP \-i + convert a lunar date to solar date. + The default is to convert a solar date to a lunar date. +-.IP l ++.IP \-l + indicate the month is a lunar leap month. + This option is meaningful only when the "-i" option is used. + .SH COPYRIGHT Property changes on: head/chinese/lunar/files/patch-lunar.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/chinese/lunar/files/patch-lunar.c_1 =================================================================== --- head/chinese/lunar/files/patch-lunar.c_1 (nonexistent) +++ head/chinese/lunar/files/patch-lunar.c_1 (revision 363162) @@ -0,0 +1,22 @@ +--- lunar.c.orig Mon Aug 10 21:14:48 1992 ++++ lunar.c Tue Feb 4 01:04:18 1997 +@@ -60,6 +60,10 @@ + #define GanBM 4 + #define ZhiBM 14 + ++#ifndef BITMAPFILE ++#define BITMAPFILE "lunar.bitmap" ++#endif ++ + typedef struct { + int year, month, day, hour, weekday; + int leap; /* the lunar month is a leap month */ +@@ -124,7 +128,7 @@ + + int showHZ = 0; /* output in hanzi */ + int showBM = 0; /* output in bitmap */ +-char BMfile[] = "lunar.bitmap"; /* bit map file */ ++char BMfile[] = BITMAPFILE; /* bit map file */ + char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ + char *progname; + Property changes on: head/chinese/lunar/files/patch-lunar.c_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/chinese/lunar/files/patch-lunar.c_2 =================================================================== --- head/chinese/lunar/files/patch-lunar.c_2 (nonexistent) +++ head/chinese/lunar/files/patch-lunar.c_2 (revision 363162) @@ -0,0 +1,120 @@ +--- lunar.c.orig Tue Feb 26 20:54:23 2002 ++++ lunar.c Tue Feb 26 21:01:38 2002 +@@ -118,6 +118,26 @@ + "侐", "拻", "鞠" + }; + ++static char *GanBIG5[] = { ++ "甲", "乙", "丙", "丁", "戊", ++ "己", "庚", "辛", "壬", "癸" ++}; ++ ++static char *ZhiBIG5[] = { ++ "子", "丑", "寅", "卯", "辰", "巳", ++ "午", "未", "申", "酉", "戌", "亥" ++}; ++ ++static char *ShengXiaoBIG5[] = { ++ "鼠", "牛", "虎", "兔", "龍", "蛇", ++ "馬", "羊", "猴", "雞", "狗", "豬" ++}; ++ ++static char *weekdayBIG5[] = { ++ "日", "一", "二", "三", ++ "四", "五", "六" ++}; ++ + + Date solar, lunar, gan, zhi, gan2, zhi2, lunar2; + +@@ -127,6 +147,7 @@ + int jieAlert; /* if there is uncertainty in JieQi calculation */ + + int showHZ = 0; /* output in hanzi */ ++int showB5 = 0; /* output in big5 */ + int showBM = 0; /* output in bitmap */ + char BMfile[] = BITMAPFILE; /* bit map file */ + char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ +@@ -139,7 +160,7 @@ + void CalGZ(); + int JieDate(), JieDate(); + void readBM(), display3(); +-void Report(), ReportE(), ReportBM(), ReportGB(); ++void Report(), ReportE(), ReportBM(), ReportGB(), ReportBIG5(); + void usage(), Error(); + + +@@ -162,6 +183,7 @@ + case 'l': if (inverse) leap=1; else usage(); break; + case 'h': showHZ = 1; break; + case 'b': showBM = 1; break; ++ case '5': showB5 = 1; break; + default: usage(); break; + } + } +@@ -213,13 +235,14 @@ + void usage() + { + printf("Usage:\n\n"); +- printf("Solar->Lunar:\t%s [-h] [-b] year month day [hour]\n", progname); ++ printf("Solar->Lunar:\t%s [-h] [-5] [-b] year month day [hour]\n", progname); + printf("\t\t(in Solar Calendar, 24 hour clock)\n\n"); +- printf("Lunar->Solar:\t%s [-h] [-b] -i [-l] year month day [hour]\n", ++ printf("Lunar->Solar:\t%s [-h] [-5] [-b] -i [-l] year month day [hour]\n", + progname); + printf("\t\t(in Lunar Calendar, 24 hour clock)\n"); + printf("\t\t-l means the month is a leap month (\"run4 yue4\")\n\n"); + printf("\t\t-h means output in hanzi (GB)\n"); ++ printf("\t\t-5 means output in traditional chinese(BIG5)\n"); + printf("\t\t-b means output in \"bitmap\"\n\n"); + printf("Date range: about %d years from the Solar Date %d.%d.%d\n", Nyear, + SolarFirstDate.year, SolarFirstDate.month, SolarFirstDate.day); +@@ -578,6 +601,8 @@ + { + if (showHZ) + ReportGB(); ++ else if (showB5) ++ ReportBIG5(); + else if (showBM) + ReportBM(); + else +@@ -614,6 +639,39 @@ + if (lunar2.month==1) + printf("* %s\n", "爛翐砫褫夔猁党蜊"); + printf("* %s\n", "③脤衄誹ァ奀潔眳勀爛盪"); ++ } ++} ++ ++ ++void ReportBIG5() ++{ ++ printf("%s%d%s%2d%s%2d%s%2d%s%s%s\n", "陽歷: ", ++ solar.year, "年", solar.month, "月", solar.day, ++ "日", solar.hour, "時 ", ++ "星期", weekdayBIG5[solar.weekday]); ++ printf("%s%d%s%s%2d%s%2d%s%s%s%s%s\n", "陰歷: ", ++ lunar.year, "年", (lunar.leap? "閏":""), ++ lunar.month, "月", lunar.day, "日", ++ ZhiBIG5[zhi.hour], "時 ", ++ "生肖屬", ShengXiaoBIG5[zhi.year]); ++ printf("%s%s%s%s%s%s%s%s%s%s%s%s%s\n", "干支: ", ++ GanBIG5[gan.year], ZhiBIG5[zhi.year], "年 ", ++ GanBIG5[gan.month], ZhiBIG5[zhi.month], "月 ", ++ GanBIG5[gan.day], ZhiBIG5[zhi.day], "日 ", ++ GanBIG5[gan.hour], ZhiBIG5[zhi.hour], "時 "); ++ printf("%s%s%s%s%s%s%s%s%s%s%s%s%s\n", ++ "用四柱神算推算之時辰八字: ", ++ GanBIG5[gan2.year], ZhiBIG5[zhi2.year], "年 ", ++ GanBIG5[gan2.month], ZhiBIG5[zhi2.month], "月 ", ++ GanBIG5[gan2.day], ZhiBIG5[zhi2.day], "日 ", ++ GanBIG5[gan2.hour], ZhiBIG5[zhi2.hour], "時 "); ++ if (jieAlert) ++ { ++ printf("* %s, %s\n", "是日為節", ++ "月柱可能要修改"); ++ if (lunar2.month==1) ++ printf("* %s\n", "年柱亦可能要修改"); ++ printf("* %s\n", "請查有節氣時間之萬年歷"); + } + } + Property changes on: head/chinese/lunar/files/patch-lunar.c_2 ___________________________________________________________________ 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/chinese/telnet/files/patch-aa =================================================================== --- head/chinese/telnet/files/patch-aa (revision 363161) +++ head/chinese/telnet/files/patch-aa (nonexistent) @@ -1,11 +0,0 @@ ---- sys_bsd.c.orig Sun May 4 16:03:33 2003 -+++ sys_bsd.c Sun May 4 16:04:12 2003 -@@ -572,7 +572,7 @@ - else - lmode &= ~LPASS8; - #else -- if (f & MODE_INBIN) -+ if (1) - tmp_tc.c_iflag &= ~ISTRIP; - else - tmp_tc.c_iflag |= ISTRIP; Property changes on: head/chinese/telnet/files/patch-aa ___________________________________________________________________ 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/chinese/telnet/files/patch-sys_bsd.c =================================================================== --- head/chinese/telnet/files/patch-sys_bsd.c (nonexistent) +++ head/chinese/telnet/files/patch-sys_bsd.c (revision 363162) @@ -0,0 +1,11 @@ +--- sys_bsd.c.orig Sun May 4 16:03:33 2003 ++++ sys_bsd.c Sun May 4 16:04:12 2003 +@@ -572,7 +572,7 @@ + else + lmode &= ~LPASS8; + #else +- if (f & MODE_INBIN) ++ if (1) + tmp_tc.c_iflag &= ~ISTRIP; + else + tmp_tc.c_iflag |= ISTRIP; Property changes on: head/chinese/telnet/files/patch-sys_bsd.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