2007年10月19日 星期五

周蟒 1.2 版發佈

周蟒 1.2 版剛發佈了(代號 鎮魂曲 )

請使用 $ easy_install -U zhpy 命令下載或更新周蟒版本.

或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/

主要加強有:

* 內建 sys 模組關鍵詞
http://code.google.com/p/zhpy/wiki/ZhpyModules

* 加入雙向轉換測試用例
test_api.py

* 雙向中文變量轉換 zh_chr/zh_ord
assert zh_chr(zh_ord('範例'.decode("utf8"))) == '範例'

* 雙向中文中文檔名轉換

$ zhpy -p 範例.py
產生檔名 p_7bc4_4f8b_v.py

再用 $ zhpy --tw p_7bc4_4f8b_v.py
產生檔名 v_範例.py

另外歡迎 renhbo 加入開發者行列

1.2 (10/19/2007):
--------------------
code name: Requiem

*Changes*

* Use build-in int function to convert hex string, thanks Jiahua Huang
* refactor repeative tripleQuote pattern to single place (zhpy)
* refactor 'number_to_variable' function to 'zh_chr' function (pyzh)
* refactor 'variable_to_number' function to 'zh_ord' function (zhpy)
* support chinese filename to uri filename while convert with '-p'
option
* zh_ord and zh_chr are bi-direction convertable now
* change keyword:
* '最大值' instead of '最大':'max'
* '最小值' instead of '最小':'min'
* '最大值' instead of '最大':'max'
* '最小值' instead of '最小':'min'
* '反 ' instead of '逆 ':'reverse',

*Features*

* add zhimport module to support chinese file name import, thanks
Jiahua Huang
* checked in experimental direct zhpy module import(disabled), thanks
Jiahua Huang
* add build-in sys module keyword plugin
* add pyzh and bi-directional translation tests

*Fixes*

* support multilines comments with triple single quote, thanks renhbo

*Project Updates*

* set svn:external to update ez_setup script automaticaly
* renhbo joined as the project member

*Contributors*

Fred Lin, Jiahua Huang, renhbo

2007年10月12日 星期五

周蟒 1.1.1 版發佈

周蟒 1.1.1 版剛發佈了(代號 暗青之月 )

請使用

$ easy_install -U zhpy

命令下載或更新周蟒版本.

或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/

主要是解決幾個 bug:

* 程式或直譯器中可以導入當前目錄下的模組
* 解決文件字串(docstring)解析不正常的問題

感謝 renhbo 提出這些問題, 大家才有更完整的周蟒可用.

1.1.1 (10/12/2007):
--------------------
code name: Dark Blue Moon

*Changes*

*Features*

*Fixes*

* Able to import modules in current directory with interpreter or
script, thanks renhbo
* fix python to zhpy command with any ini file in current directory,
thanks renhbo
* fix multilines comments translated incorrectly

*Project Updates*

* update release note

*Contributors*

Fred Lin, renhbo

2007年10月8日 星期一

周蟒 1.1 版發佈

周蟒 1.1 版剛發佈了(代號 回音) , 請使用

$ easy_install -U zhpy

命令下載或更新周蟒版本.

或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/

----

這版本主要是增加 python 程式轉周蟒程式(--tw | --cn)的命令

使用方式:

拿任一個 python 程式 (source.py), 運行

$ zhpy --tw source.py

則此 python 程式會被轉換成 v_source.twpy 周蟒程式.

你也可以透過多次反向轉換來驗證周蟒與 python 的相容性
$ zhpy --p source.py
$ zhpy --tw n_source.py
.....

PS: 如果要從繁體周蟒程式轉簡體周蟒程式, 命令行工具除了可以支援繁簡關鍵詞轉換外, 並不支援變數的繁簡字詞轉換.

2007年10月4日 星期四

周蟒 1.0 版發佈

在 13 個發佈版本後,[http://code.google.com/p/zhpy 周蟒發佈了 1.0 版本,提供功能完整,獨立於
Python 版本,完全與 Python 相容的中文程式語言。
周蟒包含 Python 中文關鍵詞對應轉換,互動式直譯器,中文腳本等功能,並提供 咬一口周蟒中文程式語言電子書。可同時用作學習周蟒與 Python 語言。

已更新到 http://wiki.python.org.tw/Pot/News

2007年9月28日 星期五

周蟒 0.9.4版發佈

Hello:

很高興通知大家, 經過中秋假期的努力, 周蟒 0.9.4版剛發佈了(代號 銀色戰車) , 請使用

$ easy_install -U zhpy

命令下載或更新周蟒版本.

或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/

使用者察覺的改動:
=================

* wikipedia 新增周蟒條目, 歡迎幫忙完善
http://zh.wikipedia.org/w/index.php?title=ZhPy&variant=zh-tw

* 重寫命令行工具, 現在周蟒腳本終於跟 Python 一樣, 能接受命令行參數了

* 移除中文標點符號支援, 原因寫在 [周蟒中文程式語言的四不一沒有] 中
http://inet6.blogspot.com/2007/09/blog-post_22.html

* 修改自"Byte of Python" 的 "咬一口周蟒中文程式語言" 電子書已將前一大半章節編修完成, 範例採用一段周蟒程式搭配一段對應
的Python程式的方式, 有了電子書, 學習周蟒更安心, 搭配對應的 Python 程式用作教學也更有彈性,
http://code.google.com/p/zhpy/wiki/ByteOfZhpy

* 註解不再錯被翻譯成英文

* 提供兩個指代 "self" 的關鍵詞: "其" 和 "我"。 雖然"其"字似乎用作關鍵詞很漂亮。
不過要追求更白話的周蟒, 也加入了 "我" 這個關鍵詞。

0.9.4 (9/28/2007):
--------------------
code name: Silver Chariot

*Changes*

* remove chinese punctuations support
* change keyword
* use "檔案", " 案" instead of "文件":"file"
* use "返回" instead of " 回":"return"
* use "組合", " 合" instead of "數組":"tuple"

*Features*

* allow zhpy script with commandline arguments
* add keyword:
* "其":"self"
* "我":"self"

*Fixes*

* fixed comment shouldn't be translated
* 'byte of zhpy' doc update

*Project Updates*

* rename zhpy_interpreter.py to interpreter.py
* rename zhpy_cmd.py to commandline.py
* rename zhpy_info.py to info.py
* new commandline utility
* remove command shortcut: "zhpy [input] [output]", use "zhpy -i
[input] -o [output]" or
"zhpy -p [input]"

*Contributors*

Fred Lin

歡迎大家下載使用並多多提供建議。

2007年9月15日 星期六

周蟒 0.9.3版發佈

周蟒 0.9.3版已發佈(代號 灰塔) , 請使用

$ easy_install -U zhpy

命令下載或更新周蟒版本.

或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/

使用者察覺的改動:
=================

1. 加入關鍵詞 * "區域變量":"local", " 域 量":"local"

2. 加入各種例外(exception)中文關鍵詞

3. 括號中的標點不再被不正常地替換

4. 檔案夾中放不合法的 ini 檔時不再導致程式中斷.

0.9.3 (09/15/2007):
--------------------
code name: Gray Tower

*Changes*

*Features*

* catch up exception definitions http://www.chinesepython.org/doc/ref.html
* make chinese punctuation be a plugin
* add keyword:
* "區域變量":"local", " 域 量":"local"
* Downloadable API Doc

*Fixes*

* make incorrect ini file not cause exception
* fix replacedict, thanks renhbo
* fix miss-replaced punctuations in quotestring

*Project Updates*

* update ez_setup.py to 0.6c7

*Contributors*

Fred Lin, renhbo