ikazuchi helps to translate document using web translate APIs efficiently
Project description
ikazuchi helps to translate document using web translate APIs efficiently. ikazuchi is intended to work with other tools since it’s a CUI tool.
See the project documentation for more detail.
Features
Translate reST document file keeping with the format
Translate any string passed from command line argument
Translate any string in Vim using “:pyfile” command
Detect language of any string passed from command line argument
Extend Handler with plug-in to your needs
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 -d $ bin/buildout
Usage
Execute ikazuchi command:
$ ikazuchi -s "i can translate" sentence: i can translate translated(Google): [Actually, translated sentence] $ ikazuchi -d -s "hello" sentence: hello detect(Google): [{u'isReliable': False, u'confidence': 0.01737435, u'language': u'en'}]
All command option are:
$ ikazuchi -h usage: ikazuchi [-h] [-a API] [-d] [-e ENCODING] [-f LANG] [-l] [-p PLUGIN [PLUGIN ...]] [-q] [-s SENTENCE [SENTENCE ...]] [-t LANG] [--version] optional arguments: -h, --help show this help message and exit -a API, --api API APIs are ['google', 'microsoft'] -d, --detect detect language for target sentence -e ENCODING, --encoding ENCODING input/output encoding -f LANG, --from LANG original language -l, --languages show supported languages -p PLUGIN [PLUGIN ...], --plugin PLUGIN [PLUGIN ...] extend with plugin, show available plugins using "help" -q, --quiet not to show original sentence to stdout -s SENTENCE [SENTENCE ...], --sentences SENTENCE [SENTENCE ...] target sentences -t LANG, --to LANG target language to translate --version show program's version number and exit
Requirements
Python 2.6 or later
setuptools or distriubte
License
Apache License 2.0
History
0.5.0 (2011-06-03)
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)
0.4.2 (2011-06-01)
change to call enrai/raimei scripts with portability
fix some minor bugs for enrai/raimei
0.4.1 (2011-05-31)
upgrade enrai/raimei scripts with updated Translate API
add setting apikey feature for Translator with configuration file
add LICENSE file for distribution
fix some minor bugs
0.4.0 (2011-05-23)
add -l(languages) option
add -r(rst file) option
upgrade v1 to v2 for Google Translator
Change license to Apache License 2.0
0.3.0 (2011-02-17)
add -d(detect) option
add more api for Microsoft Translator
refactor translator architecture
0.2.0 (2011-02-07)
add -q(quiet) and -e(encoding) option
0.1.0 (2011-01-22)
first release
Todos
Functionals
Stop translating process
Show plugins’s help
Known Issues
No error handling
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.