a Python -- Learning and Teaching 學習 與 教學

I Love Python. I Learn Python. I Teach Python. I Am a Python.

2015/11/29

盡情使用【中文】來做 程式設計 吧!

盡情使用【中文】來做 程式設計 吧!¶
~ 以 Python 3 及其龜圖模組為例

在師大演講

....

你會發現,一支程式中,
大部分的內容其實是自訂的變數、函數、物件、物類、方法。
如果這些元素能用程式撰寫人的母語 (或接受基本教育時使用的語言),
則 【流暢度】 及 【可讀性】 一定會大大提升。

....


http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/33089565/__ry2015__/ryTalk/myTkAtShiDa.ipynb


2015/10/12

PconJP2015 Sprint -- KaraOke style Read Aloud system

Sprints

https://pycon.jp/2015/ja/events/sprint/

KaraOke style Read Aloud system (textKaraok)

p00. Renyuan Lyu       [仁園(二円) 呂]
p01. Hisahiro Ohmura (尚弘 大村)
p02. Piotr Dyba           (Peter)



# Goal: ------ * To Create a Karaoke-style Read-aloud System for Language Tutoring, including English, Japanese, and also Traditional Chinese * Using a notebook PC, Windows/MacOS, Python, Tkinter, Pygame, HTK, MeCab (if target language is Japanese)

# Start
----

The prototype system is here. (in Windows, using GoogleTTS)
https://www.dropbox.com/s/ufpw4rvs50pbuff/ryWork07_GttsHalign1006.zip?dl=0

# Major files (source and data)
----
f01.    runMe.bat

f02.    ryGttsHalign.py            (for english only)
f03.    ryGttsHalign_3lang.py (for 3 languages, incl english, japanese, tChinese)

f04.    _input/en00_wiki.utf8
f05.    _input/jp00_wiki.utf8
f06.    _input/tc00_wiki.utf8

# Descriptions of major files
--------

d01.    some pre-installation are described in runMe.bat

d02.    _HTKTools is only for Windows to use

d02.1        for Mac, please go to  http://htk.eng.cam.ac.uk/  ,
                 register, download, and build up the HTK Tools
                This may be challenge, take care and good luck.

d02.2        another outside tool is FFMpeg, https://www.ffmpeg.org/,
                 this is easier.

d03.    after installation, you can do runMe.bat

--------
# Meet and talk with
智子 打田 (Uchida Tomoko)
she presented 'janome' @ PyConJP

I got much help from her experience of Japanese natural language processing.
I know MeCab from her janome project.

about the Chinese language, she suggested  'Class SmartChineseAnalyzer' for me to use.
--------

# a 'Ref' to see the final result
--------
a  demo on JavaScript is here (for ref in this sprint)
https://dl.dropboxusercontent.com/u/33089565/ryWWW2015/HanHanPrenstation/index.html

# the development process ....
--------

c01.    Initially, we meet some obstacles to install it on Mac,  since HTK has not been updated for at least 5 years (lastUpdatedYear==2009).

c02.    Having difficulties? Search 'install HTK on Mac OS', >>>  http://htk.eng.cam.ac.uk/docs/inst-nix.shtml, it may be useful.

HTK on OS X, https://github.com/JoFrhwld/FAVE/wiki/HTK-on-OS-X


Hisahiro get a success from the above git, 御目出度う御座います

--------
c03.    Getting mp3 from google seems a prohibit now. !!

--------
c04.    Determine to skip it first.
Try to use this link to have some speech for the next stage processing:
https://www.dropbox.com/s/aq7hy3xmuq1onc7/wavDir.zip?dl=0

Successful, except for those Windows system calls.
--------
c05.    尚弘 suggests to use Mac's TTS directly.
Great idea!
Now it is possible that we do not need Internet (or google) to run this program.
--------

c06.    another confusing point is the fileSize / timeDuration in the audio file.

Solved !
--------

c07.    Determine to give a presentation no matter how....



2015/10/06

PyCon JP 2015, my talk


The response of this talk:

http://www.10nin.com/blog/49

はじめは英語セッションだからと恐れていましたが、
言語など関係なくなるほど感動したセッションでした。
2日間を通してのベストセッションをあげるなら、

私はこのセッションをBestとして評価したいです。

昨年のPyConJPで英語力を身につけようと思いながら、

今回のPyConJPまでに英語力は向上していないように思うので、
来年こそはと気持ちを新たにしました。


できることなら、
「自国語で入門した後、
英語でコードを書くようになるまでのつなぎのステップ」
についての意見をうかがってみたいです。


http://togetter.com/li/885371

【可読性すごい】Pythonコードを中国語に瞬間自動変換! 世界中の人々がプログラミングできる世界 #PyConJP_M #pyconjp


Most updated file is here:





https://www.dropbox.com/s/bxaxzl4ko2f5whv/ryPyConJP2015_Turtle.pdf?dl=0











2015/06/02

PyCon APAC 2015 --- Night Market Booth #11

aPython.blogspot.com

https://goo.gl/osjrsx

PyCon APAC 2015

Night Market Booth #11


漢字 Python 龜作圖

Python Turtle Graphics in Traditional Chinese
Renyuan Lyu

呂仁園

I have something to share at Night Market Booth #11,

1. A Booklet (printed) for your visiting

https://www.dropbox.com/s/5pmyjwpxjf1k94k/booklet31pages.pdf?dl=0

2.  A Poster:

https://www.dropbox.com/s/x5i8v3ng4skbyue/%E6%B5%B7%E5%A0%B14_3pages.pdf?dl=0

3. An Oral Presentation

https://www.dropbox.com/s/ms2hrm2czqe5og5/ryPycon2015.pdf?dl=0

4. a youTube demo




5. the "turtle_tc" module can be downloaded here: