Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Translate from CJK languages (deprecated)
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
HACKING.rdoc
LICENSE.rdoc
MANUAL.rdoc
NEWS.rdoc
README.rdoc
Rakefile
sanzang.gemspec

README.rdoc

Sanzang (三藏)

Notice!

New Sanzang development is taking place as Sanzang Utils:

github.com/yaoguai/sanzang-utils

These newer programs are generally smaller, better, and faster than the old Sanzang program. There are also a number of new features such as a scriptable table editor. Please look to Sanzang Utils instead. The old Sanzang program will remain available and supported, but it is now deprecated.

Introduction

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

Quick Install

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 --version

This command should show a summary of your Sanzang version and environment.

sanzang 1.2.0 ruby-2.1.1 x86_64-linux (UTF-8)

You now have Sanzang installed on your computer.

Something went wrong with that request. Please try again.