Sanzang is a compact and simple cross-platform machine translation system. This program is especially useful for translating from CJK languages (Chinese, Japanese, and Korean), and it is very suitable for ancient and otherwise difficult texts. Due to its origins in translating texts from the Chinese Buddhist canon, the program is called Sanzang (三藏), a literal translation of the Sanskrit word “Tripitaka,” which is a general term for the Buddhist canon. As demonstrated by the sanzang program itself:
$ echo '三藏' | sanzang t sztab [1.1] 三藏 [1.2] sānzàng [1.3] tripiṭaka
Anyone can learn how to use Sanzang, and use it to read and analyze texts. Unlike most other systems, Sanzang is small and approachable. Users can develop their own translation rules, and these rules are simply stored in a text file and applied at runtime.
Sanzang is free software (“free as in freedom”), and it is released under the GNU General Public License, version 3.
For full details on how to install and use Sanzang, please see: MANUAL.rdoc
To install Sanzang, the prerequisite is Ruby 1.9 or later. After Ruby has been installed, you can then run the gem command from a command shell to automatically download and install Sanzang onto your computer.
# gem install sanzang
After this, you should be able to run the sanzang command. Run the following command to verify your installation and print version information.
# sanzang -V
This command should show a summary of your Sanzang version and environment.
sanzang 1.0.4 [ruby_1.9.3] [x86_64-linux] [UTF-8]
You now have Sanzang installed on your computer.