From owner-freebsd-ports Sun Dec 2 6:40: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9E13437B417 for ; Sun, 2 Dec 2001 06:40:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB2Ee0r10590; Sun, 2 Dec 2001 06:40:00 -0800 (PST) (envelope-from gnats) Received: from softwareliberty.org (freebsd.sinica.edu.tw [140.109.13.51]) by hub.freebsd.org (Postfix) with ESMTP id 60A9C37B405 for ; Sun, 2 Dec 2001 06:36:41 -0800 (PST) Received: by softwareliberty.org (Postfix, from userid 1014) id 1D17A752A; Sun, 2 Dec 2001 22:36:43 +0800 (CST) Message-Id: <20011202143643.1D17A752A@softwareliberty.org> Date: Sun, 2 Dec 2001 22:36:43 +0800 (CST) From: Statue Reply-To: Statue To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32439: New port: chinese/ttf2pt1 chinese maps Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32439 >Category: ports >Synopsis: New port: chinese/ttf2pt1 chinese maps >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 02 06:40:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.4-STABLE FreeBSD 4.4-STABLE #0: Tue Oct 9 02:45:16 CST 2001 ycheng@freebsd.sinica.edu.tw:/usr/src/sys/compile/FREEBSD i386 >Description: True Type Font to Postscript Type 1 Converter with chinese maps >How-To-Repeat: #!/bin/sh # # This code is public domain(i change my mind.:). # if [ $# -ne 1 ] then echo "Usage: `basename $0` your.ttf" exit 1 fi echo echo "Now create *.t1a and *.enc files. Wait... " echo FONTNAME=$1 MAPFILE=/usr/local/share/ttf2pt1/maps/cubig5.map n=1 while [ $n -lt 10 ] do m=0$n ttf2pt1 -GE -pft -Ohub -W0 -L $MAPFILE+$m $FONTNAME ${FONTNAME%.ttf}$m n=`expr $n + 1` done m=10 while [ $m -lt 56 ] do ttf2pt1 -GE -pft -Ohub -W0 -L $MAPFILE+$m $FONTNAME ${FONTNAME%.ttf}$m m=`expr $m + 1` done # avoid dvips(k)(before v5.86) t1part module bug. # perl -pi -e 's/_/Z/g' *.t1a *.afm echo echo "Now create *.pfb, wait... " echo for ps in *.t1a do t1asm -b $ps > ${ps%.t1a}.pfb done echo echo "Now create *.tfm, wait... " echo for afm in *.afm do afm2tfm $afm done AFM=${FONTNAME%.ttf}-afm TFM=${FONTNAME%.ttf}-tfm PFB=${FONTNAME%.ttf}-pfb ENC=${FONTNAME%.ttf}-enc rm -f *.t1a mkdir -p $AFM $TFM $PFB $ENC mv -f *.enc $ENC mv -f *.afm $AFM mv -f *.tfm $TFM mv -f *.pfb $PFB echo echo "OK, all done. :-)" echo >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ttf2pt1/ # ttf2pt1/Makefile # ttf2pt1/distinfo # ttf2pt1/pkg-comment # ttf2pt1/pkg-descr # ttf2pt1/pkg-plist # echo c - ttf2pt1/ mkdir -p ttf2pt1/ > /dev/null 2>&1 echo x - ttf2pt1/Makefile sed 's/^X//' >ttf2pt1/Makefile << 'END-of-ttf2pt1/Makefile' X# New ports collection makefile for: zh-ttf2pt1 X# Date created: 8 March 2001 X# Whom: Shen Chuan-Hsing X# X# $FreeBSD$ X# X XPORTNAME= ttf2pt1 XPORTVERSION= 3.4.0 XCATEGORIES= chinese XMASTER_SITES= http://download.sourceforge.net/ttf2pt1/ \ X http://freebsd.sinica.edu.tw/~statue/ XDISTNAME= ${PORTNAME}-chinese-${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= statue@freebsd.sinica.edu.tw X XRUN_DEPENDS= ttf2pt1:${PORTSDIR}/print/ttf2pt1 X XNO_BUILD= yes X X.include END-of-ttf2pt1/Makefile echo x - ttf2pt1/distinfo sed 's/^X//' >ttf2pt1/distinfo << 'END-of-ttf2pt1/distinfo' XMD5 (ttf2pt1-chinese-3.4.0.tgz) = 981d8f92b5fda5898d1cd6daf4e86144 END-of-ttf2pt1/distinfo echo x - ttf2pt1/pkg-comment sed 's/^X//' >ttf2pt1/pkg-comment << 'END-of-ttf2pt1/pkg-comment' XTrue Type Font to Postscript Type 1 Converter with chinese maps END-of-ttf2pt1/pkg-comment echo x - ttf2pt1/pkg-descr sed 's/^X//' >ttf2pt1/pkg-descr << 'END-of-ttf2pt1/pkg-descr' XTTF2PT1 is a modification of Andrew Weeks TTF2PFA True Type to Postscript XType 3 converter. Which will convert Most True Type Fonts to and Adobe XType 1 .pfa file. The files produced are in human readable form, which Xfurther needs to be encrypted with the t1utilities, to work with most Xsoftware requiring type 1 fonts. X XWWW: http://ttf2pt1.sourceforge.net/ END-of-ttf2pt1/pkg-descr echo x - ttf2pt1/pkg-plist sed 's/^X//' >ttf2pt1/pkg-plist << 'END-of-ttf2pt1/pkg-plist' Xshare/ttf2pt1/maps/cubg5plus.map Xshare/ttf2pt1/maps/cubig5.map Xshare/ttf2pt1/maps/cugb.map Xshare/ttf2pt1/maps/cugbk.map Xshare/ttf2pt1/maps/ubig5.map Xshare/ttf2pt1/maps/ugb.map Xshare/ttf2pt1/maps/ugbk.map END-of-ttf2pt1/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message