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 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
$ 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):          en

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
  -d, --detect          detect language for target sentence
  -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

Requirements

  • Python 2.6 or later

  • polib 0.5.5 or later

  • setuptools or distriubte.

License

Python Software Foundation License.

History

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.3.0.tar.bz2 (14.8 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.3.0-py2.6.egg (46.7 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for ikazuchi-0.3.0.tar.bz2
Algorithm Hash digest
SHA256 276ce221474cca362cbf6eaa5e5daf0488a0149ebbb8ed559e35c14529a506d4
MD5 0287dd3b7a334aacf5dceadf566f61b9
BLAKE2b-256 4743491b62e540d9c80aaadfc69efeab6df93ee6b8c4deb603420cf245963708

See more details on using hashes here.

File details

Details for the file ikazuchi-0.3.0-py2.6.egg.

File metadata

  • Download URL: ikazuchi-0.3.0-py2.6.egg
  • Upload date:
  • Size: 46.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ikazuchi-0.3.0-py2.6.egg
Algorithm Hash digest
SHA256 cfc4f21fed31d326ba617ee3f1b54262e516713db5a04093604b1dcdfd1c5a2f
MD5 b37e5e6a925da6509ddc069e6f27d45b
BLAKE2b-256 774b5a9df76e2adb83208bd5a367aaa8de3b56907a2d28a1cb16932213f048ee

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