Package: ikazuchi
ikazuchihelps to translate document using web translate APIs efficiently.ikazuchiis intended to work with other tools since it’s a CUI tool.See the projectdocumentationfor more detail.FeaturesTranslate reST document file keeping with the formatTranslate any string passed from command line argumentTranslate any string in Vim using “:pyfile” commandDetect language of any string passed from command line argumentExtendTranslatorandHandlerwith plug-in to your needsSetupby pipMake environment:$ pip install ikazuchiby buildoutMake environment:$ hg clone https://t2y@bitbucket.org/t2y/ikazuchi
$ cd ikazuchi
$ python bootstrap.py -d
$ bin/buildoutUsageExecute 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'}]Show which plugins are available:$ ikazuchi -h
usage: ikazuchi [-h] {rstfile,normal} ...

positional arguments:
  {rstfile,normal}  available plugins. 'normal' means ikazuchi's standard
                    feature so it can be abbreviated

optional arguments:
  -h, --help        show this help message and exitShow normal feature help:$ ikazuchi normal -h
usage: ikazuchi normal [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG]
                       [-d] [-l] [-s SENTENCE [SENTENCE ...]] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -a API, --api API     APIs are ['google', 'microsoft']
  -e ENCODING, --encoding ENCODING
                        input/output encoding
  -f LANG, --from LANG  original language
  -q, --quiet           not to show original sentence to stdout
  -t LANG, --to LANG    target language to translate
  -d, --detect          detect language for target sentence
  -l, --languages       show supported languages
  -s SENTENCE [SENTENCE ...], --sentences SENTENCE [SENTENCE ...]
                        target sentences
  --version             show program's version number and exitShow rstfile plugin help:$ ikazuchi rstfile -h
usage: ikazuchi rstfile [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG]
                        [-o OUTPUT]
                        rst_file

positional arguments:
  rst_file              target rst file

optional arguments:
  -h, --help            show this help message and exit
  -a API, --api API     APIs are ['google', 'microsoft']
  -e ENCODING, --encoding ENCODING
                        input/output encoding
  -f LANG, --from LANG  original language
  -q, --quiet           not to show original sentence to stdout
  -t LANG, --to LANG    target language to translate
  -o OUTPUT, --output OUTPUT
                        translated output file name, default is 'output.rst'NoteNotice the difference of command line option between
normal(standard feature) and rstfile.RequirementsPython 2.6 or latersetuptoolsLicenseApache License 2.0History0.5.6 (2016-11-23)support config path on FreeBSDfix a bug with rstfile plugin when a text is translated from Japanesedrop unavailable YahooTranslator0.5.5 (2015-05-26)use setuptools instead of distribute0.5.4 (2011-11-26)use Microsoft Translator as Default API0.5.3 (2011-09-25)add proxy settings in [general] section for ikazuchi.conf0.5.2 (2011-06-10)change extensible Translator0.5.1 (2011-06-06)add subparser for plug-inremove -p(plug-in) option
(plug-in feature is provided with subparsers)0.5.0 (2011-06-03)add plug-in featureadd -p(plug-in) optionremove -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 portabilityfix some minor bugs for enrai/raimei0.4.1 (2011-05-31)upgrade enrai/raimei scripts with updated Translate APIadd setting apikey feature for Translator with configuration fileadd LICENSE file for distributionfix some minor bugs0.4.0 (2011-05-23)add -l(languages) optionadd -r(rst file) optionupgrade v1 to v2 for Google TranslatorChange license to Apache License 2.00.3.0 (2011-02-17)add -d(detect) optionadd more api for Microsoft Translatorrefactor translator architecture0.2.0 (2011-02-07)add -q(quiet) and -e(encoding) option0.1.0 (2011-01-22)first releaseTodosFunctionalsStop translating process