mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
translator between GuoBiao / Big5 and HZ
PR: ports/4622 Submitted by: Ada T Lim <ada@not-enough.bandwidth.org>
This commit is contained in:
parent
6f609835ff
commit
82d9fcc2fc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=8149
26
chinese/hztty/Makefile
Normal file
26
chinese/hztty/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# Ports collection makefile for: hztty
|
||||
# Version required: 2.0
|
||||
# Date created: Wed Sep 24, 1997
|
||||
# Whom: Ada T Lim <ada@not-enough.bandwidth.org>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= hztty-2.0
|
||||
PKGNAME= zh-hztty-2.0
|
||||
CATEGORIES= chinese
|
||||
MASTER_SITES= ftp://ftp.ifcss.org/pub/software/convert/ \
|
||||
ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/convert/ \
|
||||
ftp://ftp.edu.tw/Chinese/ifcss/software/convert/ \
|
||||
ftp://ftp.mpi-sb.mpg.de/pub/chinese/mirror/ftp.ifcss.org/software/convert/
|
||||
|
||||
MAINTAINER= ada@bsd.org
|
||||
|
||||
ALL_TARGET= bsd
|
||||
MAN1= hztty.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hztty ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/hztty.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
1
chinese/hztty/distinfo
Normal file
1
chinese/hztty/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (hztty-2.0.tar.gz) = 7ec5907ad55825780274b8a77b217e21
|
20
chinese/hztty/files/patch-aa
Normal file
20
chinese/hztty/files/patch-aa
Normal file
@ -0,0 +1,20 @@
|
||||
*** Makefile.dist Thu Sep 25 00:26:00 1997
|
||||
--- Makefile Thu Sep 25 00:47:01 1997
|
||||
***************
|
||||
*** 132,138 ****
|
||||
|
||||
|
||||
bsd:
|
||||
! miniconf.sh $(CPP)
|
||||
${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG}
|
||||
|
||||
posix:
|
||||
--- 134,140 ----
|
||||
|
||||
|
||||
bsd:
|
||||
! ./miniconf.sh $(CPP)
|
||||
${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG}
|
||||
|
||||
posix:
|
||||
|
11
chinese/hztty/files/patch-ab
Normal file
11
chinese/hztty/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- tty.c.orig Sun Jan 29 12:24:55 1995
|
||||
+++ tty.c Mon Oct 6 23:56:32 1997
|
||||
@@ -26,7 +26,7 @@
|
||||
# define TTYDEV "/dev/pty/ttyxx"
|
||||
#else /* !hpux */
|
||||
# define PTYCHAR1 "pqrstuvwxyzPQRSTUVWXYZ"
|
||||
-# define PTYCHAR2 "0123456789abcdef"
|
||||
+# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
|
||||
# define PTYDEV "/dev/ptyxx"
|
||||
# define TTYDEV "/dev/ttyxx"
|
||||
#endif /* !hpux */
|
1
chinese/hztty/pkg-comment
Normal file
1
chinese/hztty/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
a translator between GuoBiao / Big5 and HZ
|
17
chinese/hztty/pkg-descr
Normal file
17
chinese/hztty/pkg-descr
Normal file
@ -0,0 +1,17 @@
|
||||
hztty
|
||||
|
||||
This program turns a tty session from one encoding to another.
|
||||
For example, running hztty on cxterm can allow you to read/write
|
||||
Chinese in HZ format, which was not supported by cxterm.
|
||||
If you have many applications in different encodings but your
|
||||
favor terminal program only supports one, hztty can make life easy.
|
||||
For example, hztty can your GB cxterm into a HZ terminal, a
|
||||
Unicode (16bit, or UTF8, or UTF7) terminal, or a Big5 terminal.
|
||||
|
||||
The idea is to open a new shell session on top of the current one
|
||||
and to translate the encoding between the new tty and the orignal.
|
||||
For example, if your application uses encoding A and your terminal
|
||||
supports encoding B. Hztty catches the output of the application
|
||||
and converts them from A to B before sending to the terminal.
|
||||
Similarly, hztty converts all the terminal input from B to A before
|
||||
sending to the application.
|
2
chinese/hztty/pkg-plist
Normal file
2
chinese/hztty/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/hztty
|
||||
man/man1/hztty.1.gz
|
Loading…
Reference in New Issue
Block a user