hjnhjn123 / opencc

Automatically exported from code.google.com/p/opencc
0 stars 1 forks source link

opencc 在mac上安装 #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
您好,我在我的mac上可以通过brew 
安装opencc,但是那个应该是只能在终端运行的命令 
192:~ liupeng$ opencc --h

Open Chinese Convert (OpenCC) Command Line Tool
Version 0.4.3

Author: BYVoid <byvoid@byvoid.com>
Bug Report: http://github.com/BYVoid/OpenCC/issues

Usage:
 opencc [Options]

Options:
 -i [file], --input=[file]   Read original text from [file].
 -o [file], --output=[file]  Write converted text to [file].
 -c [file], --config=[file]  Load configuration of conversion from [file].
 -v, --version               Print version and build information.
 -h, --help                  Print this help.

With no input file, reads standard input and writes converted stream to 
standard output.
Default configuration(zhs2zht.ini) will be loaded if not set.

192:~ liupeng$ 

我想Python调用他,就是引入opencc
这里有一个https://github.com/lepture/opencc-python  
但是没有mac上的资源吧。我不清楚怎么安装了的。
希望你们能帮助下。
谢谢

Original issue reported on code.google.com by liupw...@gmail.com on 8 Aug 2014 at 9:13