Skip to main content
Sanzang Utils
=============

**Website:** <http://lapislazulitexts.com/sanzang>

**GitHub:** <https://github.com/yaoguai/sanzang-utils>

Sanzang is a compact and simple cross-platform machine translation system. This
system is especially useful for translating from CJK languages (Chinese,
Japanese, and Korean). Unlike most other machine translation systems, Sanzang
is useful even for ancient and otherwise difficult texts.

Due to its origins in translating texts from the Chinese Buddhist canon, this
translation system 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 translator itself::

$ echo 三藏 | szu-t sztab
1.1|三藏
1.2| sānzàng
1.3| tripiṭaka

Anyone can learn how to use Sanzang Utils, and use these programs to read and
analyze texts. Unlike other systems, Sanzang is small and approachable. You can
easily develop your own translation rules, and these rules are just stored in a
text file and applied at runtime.

Components
----------

Sanzang Utils includes the following programs:

* szu-ed (1) - Command-based translation table editor
* szu-r (1) - Preprocessor for reformatting CJK text
* szu-t (1) - The main translation program
* szu-ss (1) - Case-sensitive string substitution tool

These are all written in Python 3 and available under the MIT License.

Installation
------------

To run these programs, Python 3.x is required. Installation on a Unix-like
platform is advised, but Windows is possible too. If you must use Windows, then
Cygwin is the best environment for these programs.

To install these programs the "Python way," you can use setup.py::

# python3 setup.py install

Otherwise, you could do it the "Unix way" by using the included makefile. If
you install with the makefile, you can also uninstall easily with the makefile.
The choice of which installation method to use is a personal preference.

Documentation
-------------

After installing Sanzang Utils, you may want to read the introduction and the
tutorial. The introduction introduces you to the core concepts and rationale
behind the system. The tutorial gives practical instruction on exactly how to
use each component, how they relate to one another, and how you can develop
your own translation tables.

**Sanzang Introduction:** <http://lapislazulitexts.com/articles/sanzang_intro>

**Sanzang Utils Tutorial:** <http://lapislazulitexts.com/articles/szu_tutorial>

In addition to the introduction and tutorial, each program also includes a
traditional Unix manual page that can be used as a reference.

Updates
-------

To find out what new fixes and features are available with each new version,
you can check the NEWS file, which lists all notable changes according to the
version number and date.

Versions of Sanzang Utils follow the scheme N.N.N, indicating the major
version, minor version, and the patch number. The patch number is incremented
for sets of small updates or bug fixes, the minor number indicates some new
feature or new behavior, and the major number indicates a big change or new and
incompatible behavior.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sanzang-utils-1.2.2.tar.gz (18.2 kB view details)

Uploaded Source

File details

Details for the file sanzang-utils-1.2.2.tar.gz.

File metadata

  • Download URL: sanzang-utils-1.2.2.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sanzang-utils-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f353f1e3822cfa782c2ab5a261af7c18f87f99bea93d616af48ebb0360a3bfcb
MD5 c4b6ffe1c2d768c725ad92434bd6c3f9
BLAKE2b-256 8c4d831fa9c18a14ab2edc322e093f9cb270fd9857ed7896d2f3496c69c97059

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.3

1 file

This release

1.2.2 This release

1 file

1.2.1

1 file

1.2.0

1 file

1.1.2

1 file

1.1.1

1.1.0

1 file

1.0.5

2 files

1.0.4

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page