Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ikazuchi <https://bitbucket.org/t2y/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 <http://t2y.bitbucket.org/ikazuchi/build/html/index.html>
_ for more detail.
Translator
and Handler
with plug-in to your needsMake environment::
$ pip install ikazuchi
Make environment::
$ hg clone https://t2y@bitbucket.org/t2y/ikazuchi $ cd ikazuchi $ python bootstrap.py -d $ bin/buildout
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'}]
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 exit
Show 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 exit
Show 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'
.. note::
Notice the difference of command line option between
normal(standard feature) and rstfile.
Apache License 2.0
FAQs
ikazuchi helps to translate document using web translate APIs efficiently
We found that ikazuchi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.