Skip to main content

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 GNU gettext catalog named PO file with good reference from web API

  • 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

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] [-v] [-a API] [-d] [-e ENCODING] [-f LANG] [-l]
                [-p POFILE] [-q] [-r RSTFILE] [-s SENTENCE [SENTENCE ...]]
                [-t LANG]

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number 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 POFILE, --pofile POFILE
                        target po file
  -q, --quiet           not to show original sentence to stdout
  -r RSTFILE, --rstfile RSTFILE
                        target reST file
  -s SENTENCE [SENTENCE ...], --sentences SENTENCE [SENTENCE ...]
                        target sentences
  -t LANG, --to LANG    target language to translate

Requirements

  • Python 2.6 or later

  • polib 0.5.5 or later

  • setuptools or distriubte

License

Apache License 2.0

History

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

  • fixed 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

  • Glossary and fuzzy match functions

  • Merge other po file into po file

  • Shortcut key

  • Stop translating process

Known Issues

  • No error handling

Project details


Download files

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

Source Distribution

ikazuchi-0.4.1.tar.bz2 (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ikazuchi-0.4.1-py2.7.egg (113.1 kB view details)

Uploaded Egg

File details

Details for the file ikazuchi-0.4.1.tar.bz2.

File metadata

  • Download URL: ikazuchi-0.4.1.tar.bz2
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ikazuchi-0.4.1.tar.bz2
Algorithm Hash digest
SHA256 511cd4d26bf896c016151f5db074a8528cd0e95095197e51becb50b19f2709f3
MD5 13660eb0de9d3a8f633d5ebba6831d2d
BLAKE2b-256 f5a28e76627120e848c30ac67abf73417a55fe66353e6e87ff5053726991fea9

See more details on using hashes here.

File details

Details for the file ikazuchi-0.4.1-py2.7.egg.

File metadata

  • Download URL: ikazuchi-0.4.1-py2.7.egg
  • Upload date:
  • Size: 113.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ikazuchi-0.4.1-py2.7.egg
Algorithm Hash digest
SHA256 697b654d1045f7bc1dfafb4cb29f185789cbfdd89e849e845a900d7b45a4fe2b
MD5 d7aa88e5b32adefaa80b29e26847f865
BLAKE2b-256 46492ed1b6122aec4a3ff12b1eed838daea823a23f294c48352f573ea561230a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page