readme
来自「bbs server linux平台下软件源码」· 代码 · 共 56 行
TXT
56 行
Big5/GB Chinese Text Convertor1. Requirement for buildingYou need a working C compiler, a make program and a Pythoninterpreter to build this software.The converting table is gerenated according to the data filesfrom Unicode Consortium. Three files are needed: Unihan.txtfor traditional-simplified variant mapping, CP936.TXT for GBK-Unicode mapping and CP950.TXT for Big5-Unicode mapping.Microsoft CP936 is used instead of GB2312, and CP950 is usedinstead of BIG5, since most master pieces of BBS ASCII-art usesvendor-specific extentions over standard charsets.You can get these three files from ftp.unicode.org.CP936.TXT and CP950.TXT are in the following path: /Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/Unihan.txt can be found in Unidata or version specific directory,maybe you sould rename it after downloaded.Especially, if you are inside Zhejiang University, you can downloadthese tables from ftp://ftp.zju.edu.cn/pub/ftp.unicode.org/; thereis also other site such as ftp.gbuchina.org which have mirrored datafrom ftp.unicode.org, for poor CERNET users.2. BuildJust run make [PYTHON=/your/python] [CC=/your/cc] [CFLAGS=your_cflags]...It will take quite several minutes to build big2gb, dependingon your hardware configuration.After big2gb is built, you can copy it to anywhere you like.3. UseRun big2gb. It reads from stdin and write to stdout, converting from Big5to GB. You can use redirection or pipe for its input and/or output.Big2gb receives an argument '-r', for converting from GB to Big5.4. FutureSince the converting table is horriblly large, the executable file is largetoo. If many instances of this program are running, they will spend a lotof memory. It may be an interesting idea to use DLL or shared memory or evena daemon listening on unix-domain socket. But I am too lazy to do that. :(Adoal Xu, adoal@shanty-bbs2001.12.15
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?