1999-12-24 04:10:22 +00:00
|
|
|
|
--- bg5ps.orig Fri Oct 2 08:35:41 1998
|
|
|
|
|
+++ bg5ps Fri Dec 17 17:01:21 1999
|
1998-06-26 14:19:47 +00:00
|
|
|
|
@@ -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 #
|
1999-12-24 04:10:22 +00:00
|
|
|
|
@@ -418,10 +418,10 @@
|
|
|
|
|
exec l
|
|
|
|
|
cf.close()
|
|
|
|
|
else:
|
|
|
|
|
- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/bg5ps.conf.")
|
|
|
|
|
- if os.path.isfile("/etc/bg5ps.conf"):
|
|
|
|
|
- sys.stderr.write("\n /etc/bg5ps.conf found. Use configuration file /etc/bg5ps.conf")
|
|
|
|
|
- cf=open("/etc/bg5ps.conf","r")
|
|
|
|
|
+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/chinese/bg5ps.conf.")
|
|
|
|
|
+ if os.path.isfile("/usr/local/etc/chinese/bg5ps.conf"):
|
|
|
|
|
+ sys.stderr.write("\n /usr/local/etc/chinese/bg5ps.conf found. Use configuration file /usr/local/etc/chinese/bg5ps.conf")
|
|
|
|
|
+ cf=open("/usr/local/etc/chinese/bg5ps.conf","r")
|
|
|
|
|
for l in cf.readlines():
|
|
|
|
|
exec l
|
|
|
|
|
cf.close()
|
|
|
|
|
--- bg5ps.conf.orig Fri Dec 17 16:58:30 1999
|
|
|
|
|
+++ bg5ps.conf Fri Dec 17 17:07:48 1999
|
|
|
|
|
@@ -1,9 +1,9 @@
|
|
|
|
|
#chineseFontPath: <20><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|(<28>w<EFBFBD>]<5D><>: <20>P bg5ps <20>P)
|
|
|
|
|
-chineseFontPath=""
|
|
|
|
|
+chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType"
|
|
|
|
|
#modify the above line
|
|
|
|
|
|
|
|
|
|
#fontName: <20><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD><72><EFBFBD><EFBFBD><EFBFBD>ɮצW<D7A6><57>(<28>w<EFBFBD>]<5D><>: ntu_kai)
|
|
|
|
|
-fontName="ntu_kai"
|
|
|
|
|
+fontName="moe_kai"
|
|
|
|
|
|
|
|
|
|
#oddPages: 0 <20><><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>_<EFBFBD>ƭ<EFBFBD><C6AD>A1 <20><><EFBFBD>X<EFBFBD>_<EFBFBD>ƭ<EFBFBD>(<28>w<EFBFBD>]<5D><>: 1)
|
|
|
|
|
#true=1, false=0
|
|
|
|
|
--- ttf2psm.c.orig Wed Aug 26 21:50:26 1998
|
|
|
|
|
+++ ttf2psm.c Fri Dec 17 17:03:31 1999
|
|
|
|
|
@@ -10,7 +10,6 @@
|
1998-06-26 14:19:47 +00:00
|
|
|
|
#include <math.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
-#include <malloc.h>
|
|
|
|
|
#include <memory.h>
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
1999-12-24 04:10:22 +00:00
|
|
|
|
@@ -96,7 +95,7 @@
|
|
|
|
|
void Beg();
|
|
|
|
|
void End();
|
|
|
|
|
|
|
|
|
|
-void main(int argc, char *argv[]){
|
|
|
|
|
+int main(int argc, char *argv[]){
|
|
|
|
|
FILE *fn;
|
|
|
|
|
short cidx, i;
|
|
|
|
|
time_t t1, t2;
|