ikazuchi helps to translate document using web translate APIs efficiently. It is intended to work with other tools since it's a CUI tool.
See the project documentation for more detail.
Setup:
by easy_install
Make environment:
easy_install ikazuchi
by buildout
Make environment:
hg clone https://t2y@bitbucket.org/t2y/ikazuchi
cd ikazuchi
python bootstrap.py
bin/buildout
Usage:
Execute ikazuchi command:
ikazuchi -s "i can translate"
sentence: i can translate
translated(Google): 私は翻訳することができます
All command option are:
ikazuchi -h
Usage: ikazuchi [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-a API, --api=API APIs are ['all', 'google', 'microsoft', 'yahoo'],
cannot use with '-p po_file'option
-f LANG, --from=LANG original language
-t LANG, --to=LANG target language to translate
-p POFILE, --pofile=POFILE
target po file
-s SENTENCE, --sentence=SENTENCE
target sentence
-e ENCODING, --encoding=ENCODING
input/output encoding
-q, --quiet not to show original sentence to stdout
-v, --verbose show debug messages to stdout
Features:
- Translate GNU gettext catalog named PO file with good reference from web API
- Translate any string passed from command line argument
- Translate any string in Vim using ":pyfile" command
What is new in this release:
- Change extensible Translator
What is new in version 0.5.1:
- add subparser for plug-in
- remove -p(plug-in) option (plug-in feature is provided with subparsers)
What is new in version 0.5.0:
- add plug-in feature
- add -p(plug-in) option
- remove -p(po file) and -r(rst file) option (po/rst file is handled with plug-in option)
What is new in version 0.4.2:
- change to call enrai/raimei scripts with portability
- fix some minor bugs for enrai/raimei
What is new in version 0.4.1:
- upgrade enrai/raimei scripts with updated Translate API
- add setting apikey feature for Translator with configuration file
- add LICENSE file for distribution
- fixed some minor bugs
What is new in version 0.4.0:
- add -l(languages) option
- add -r(rst file) option
- upgrade v1 to v2 for Google Translator
- Change license to Apache License 2.0
What is new in version 0.3.0:
- add -d(detect) option
- add more api for Microsoft Translator
- refactor translator architecture
What is new in version 0.2.0:
- Add -q(quiet) and -e(encoding) option
Requirements:
- Python
- polib
- setuptools
Limitations:
- No error handling
- Fail to run in virtualenv
Comments not found