9
IKAZUCHI INTRODUCTION 2011/6/22 t2y 2011622日水曜日

Ikazuchi introduction for Europython 2011 LT

Embed Size (px)

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.

Citation preview

Page 1: Ikazuchi introduction for Europython 2011 LT

IKAZUCHIINTRODUCTION

2011/6/22 t2y

2011年6月22日水曜日

Page 2: Ikazuchi introduction for Europython 2011 LT

WHO AM I?

Tetsuya Morimoto (もりもと てつや)

Japanese and Freelance

I like Python programming and translating

Twitter: @t2y_en (English), @t2y (Japanese)

Bitbucket: https://bitbucket.org/t2y

Facebook: http://www.facebook.com/t2y1979

2011年6月22日水曜日

Page 3: Ikazuchi introduction for Europython 2011 LT

MY TRANSLATIONS

Expert Python programming

Author : Tarek Ziadé

Python Insider: http://blog-ja.python.org/

PyMOTW: http://www.doughellmann.com/PyMOTW-ja/

virtualenvwrapper: http://www.doughellmann.com/docs/virtualenvwrapper/ja/

Paver: http://paver.github.com/paver-docs-jp/

fedora wiki: https://fedoraproject.org/wiki/EPEL/ja

en: 978-1847194947

ja: 978-4048686297

2011年6月22日水曜日

Page 4: Ikazuchi introduction for Europython 2011 LT

WHAT IS IKAZUCHI?

I’m developer of ikazuchi

ikazuchi (いかずち) is just name, means Thunder in Japanese

help translating work using web translate APIs (Google/Microsoft)

can use as CUI tools or for application embedded

with plugins

handle reST/PO file with plugins

provide text to speech feature

2011年6月22日水曜日

Page 5: Ikazuchi introduction for Europython 2011 LT

INSTALLATION

PyPI: http://pypi.python.org/pypi/ikazuchi/

use setuptools

$ easy_install ikazuchi

use buildout

$ hg clone https://[email protected]/t2y/ikazuchi

$ cd ikazuchi

$ python bootstrap.py -d

$ bin/buildout

2011年6月22日水曜日

Page 6: Ikazuchi introduction for Europython 2011 LT

AS CUI TOOL

use “ikazuchi” command

$ ikazuchi -a google -s “Che bella giornata” -f it -t en

$ ikazuchi -a microsoft -s “Che bello l'Europython” -f it -t en

DEMO

2011年6月22日水曜日

Page 7: Ikazuchi introduction for Europython 2011 LT

FOR VIM EMBEDDED

translate RST file within VIM using ikazuchi plugin

1,3:pyfile ~/bin/raimei

can keep RST format along with translated text

DEMO

2011年6月22日水曜日

Page 8: Ikazuchi introduction for Europython 2011 LT

TEXT TO SPEECH

speak given text or translated text using speech plugin

$ ikazuchi speech -s “Ciao a tutti, Adoro l'Europython” -f it -t en

Mac OS X(10.6.6) is OK since it use “afplay” command

Other platform is maybe unstable :(

use another commands

use pyglet (with avbin) library

DEMO

2011年6月22日水曜日

Page 9: Ikazuchi introduction for Europython 2011 LT

SUMMARY

ikazuchi is for translation with a little help

simple CUI tool

can extend with various plugin

Documentation

http://t2y.bitbucket.org/ikazuchi/build/html/index.html

can extend ikazuchi

plugin architecture (it’s very simple)

can extend with Handler as you like

2011年6月22日水曜日