顯示具有 ReleaseNote 標籤的文章。 顯示所有文章
顯示具有 ReleaseNote 標籤的文章。 顯示所有文章

2012年6月14日 星期四

周蟒積木版的一些更新

周蟒積木版是基於Blockly製作的中文視覺化編程版本,目前已開發的新功能如下:



離線使用

現在周蟒積木版已支援離線使用,只要連到

http://www.gasolin.idv.tw/public/blockly/demos/codetw/index.html

並將這網址設成書籤,這樣一來下次離線時也能使用。



儲存/載入積木 (已整合回Blockly)

可參考加入'輸入'積木,允許匯入其他人製作的程式。




保存最後編輯狀態 (已整合回Blockly)

之前在離開瀏覽器畫面、重新載入、或是按「上一頁」鍵後,目前編輯的積木會消失。
現已透過localStorage儲存最後編輯狀態,在下次開啟時即自動讀入。

並新增「清除」按鈕,按下按鈕後可清除畫面上的積木。


提供輸入積木 (已整合回Blockly)

可參考加入'輸入'積木,允許製作文字互動遊戲(如猜數字)。


對照範例

依照「咬一口周蟒」裡的範例,用積木版重新做了一遍,可對照「咬一口周蟒」來學習。


語系無關的獨立XML

現在Blockly新版能產生與不同語系無關的獨立XML,周蟒積木版也已更新到最新的svn版本。


另一個好消息是我已經取得 Blockly 的 committer 權限,會和 Blockly 的開發者合作地更緊密,這些功能也將儘快回饋給 Blockly。

2011年6月25日 星期六

周蟒支援Python3!

今天參加完Pyctw 2011活動後,發佈了相容python3的周蟒3.0.0a1

版本代號 Tusk (獠牙)

http://pypi.python.org/pypi/zhpy3/

可以在python3環境使用

$ easy_install zhpy3

命令來安裝

所有之前周蟒的範例都能執行

http://code.google.com/p/zhpy/source/browse/#hg%2Fzhpy3%2Fexamples

目前周蟒3.0.0a1版和原周蟒(2.x)相比,還不完整,目前的特性有

  • 僅支援腳本執行
  • 不支援匯入中文模組
  • 不支援interpreter
  • 不支援轉換成Python腳本


歡迎有興趣的人參與進來,學習python3的同時,也協助後進還不太懂英文卻想學寫程式的小朋友 :)
http://code.google.com/p/zhpy

2009年12月7日 星期一

周蟒 1.7.3 發佈

周蟒 1.7.3 (代號 審判) 已發佈。可前往網站下載, 或使用

easy_install -U zhpy

命令來更新。


版本控制改用 Mercurial,支持「自个儿」語句。

2009年8月10日 星期一

周蟒 1.7.2 發佈

周蟒 1.7.2 (代號 死神13) 已發佈。可前往網站下載, 或使用
easy_install -U zhpy
命令來更新。

相容 python 2.6,在 Windows、Ubuntu 上測試過。

2008年9月11日 星期四

周蟒 1.7.1 發佈

周蟒 1.7.1 (代號 太陽) 已發佈。可前往網站下載, 或使用
easy_install -U zhpy
命令來更新。

這是一個維護性質的更新。

上一個版本(1.7) 在 官方網站pypi 下載次數總合,
首度超過 500 份。

2008年5月21日 星期三

周蟒 1.7 發佈,interpreter 自動完成, 紫蟒

周蟒 1.7 (代號 戀人) 已發佈, 可前往網站下載, 或使用
easy_install -U zhpy
命令來更新.

主要更新有
另外也歡迎 Bob Chao 加入周蟒專案, 近期他將帶給我們重新編排過的可下載 ODF/PDF 版 "咬一口 Python 程式語言" 文件.

這幾天我也開了一個使用周蟒撰寫的術數專案 (主要是 紫微斗數, 中文專案名就取叫 "紫蟒" 好了 XD)
使用中文編程 (python) 來描述術數間的關係, 還可隨時利用測試工具 (nose) 來驗證, 實在是最合適不過.

2008年4月11日 星期五

周蟒線上版,上線!

不要再說學習程式語言要先裝一些軟體很麻煩,
或是說在看 咬一口 Python程式語言 電子書時手邊沒環境驗證。
因為現在,
周蟒也有線上版囉!

ZHPY.appspot 周蟒互動 Shell

ZHPY.appspot 使用的是 Google App Engine 服務,目前提供互動 Shell 功能,
以後會視情況增加其他功能,例如線上 Python <-> 周蟒程式碼轉換等。

如果有好的建議,請回報至周蟒的 issue tracker

2008年4月3日 星期四

周蟒(zhpy) 1.5.2 發佈

周蟒(zhpy) 1.5.2 發佈了, 代號"命運之輪".

繼續重構, 在包含本板本後的版本中, 呼叫 convertor 之前不再需要先呼叫 annotator 了,
如果 annotator 尚未呼叫過, convertor 會自動呼叫 annotator.

請使用
$ easy_install -U zhpy

命令來下載或更新周蟒版本,或前往網站查看更多關於周蟒的內容.

2008年3月21日 星期五

周蟒(zhpy) 1.5.1 發佈

周蟒(zhpy) 1.5.1 發佈了, 代號"女皇".
修復 1.5 版重構後導致 python 程式轉中文程式不正常的 bug.

請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本,或前往網站查看更多關於周蟒的內容 http://zhpy.googlecode.com

2008年2月29日 星期五

周蟒(zhpy) 1.5 發佈, 重構

周蟒(zhpy) 1.5 發佈了 (代號 皇帝)。
請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本,或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/

這版本主要是對現有功能的維護與重構版本,一般用戶應該不會察覺到改變:

1. 更新關聯的套件
2. 將 merge 跟 rev_merge 函式合併
3. 加強 zhimport.py 並改名成 import_hook.py

周蟒相關消息請至官方網站查看
http://zhpy.blogspot.com/


zhpy Changelog
====================

1.5 (2/29/2008)
--------------------
code name: Emperor

*Changes*

* rename zhimport.py to import_hook.py
* rewrite import_hook from magiccodec, thanks weijr
http://weijr-note.blogspot.com/2008/02/python-magiccodec-01.html
* use isinstance(target,dict) instead of type({}), thanks weijr
* refactor merger
* merge rev_merger to merger
* refactor ini_annotator, py_annotator,
pattern, val_matching, rev_ini_annotator,
rev_py_annotator, trace_annotator to private method
* refactor to distill baseWord
* add some variable docstrings

*Features*

* add keywords:
* "屬性":"property", "属性":"property",
* add set methods keyword:
* "定集合":"frozenset",
* "清除":"clear",
* "複製":"copy","拷贝":"copy",
* "加":"add",
* "丟棄":"discard","丢弃":"discard",
* "聯集":"union","联集":"union",
* "交集":"intersection",
* "差集":"difference",
* "對稱差集":"symmetric_difference", "对称差集":"symmetric_difference",

*Fixes*

*Project Updates*

* update to pyparsing 1.4.11
* update setuptools to 0.6.8
* update epydoc to 3.0.1

*Contributors*

Fred Lin, weijr

2008年1月17日 星期四

周蟒(zhpy) 1.4 發佈, Windows 用戶友善

周蟒(zhpy) 1.4 發佈了 (代號 倒吊男)。
請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本,或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/

這版本加強了許多實用的特性:

1. 修復困擾許多新手的 Windows Interpreter 編碼報錯問題。
2. 開啟 zhpy interpreter 時會判斷系統編碼,自動顯示繁簡中文提示 (ex: 周蟒 1.4 於 darwin 基於 Python 2.5.1)。
3. 中文 traceback 支持(目前僅支援一般執行模式,不支援直譯器,Windows 下預設非 utf8 編碼,因此還看不到中文的 traceback),目前只有少數的中文 traceback 字典,請幫忙補完中文 traceback 翻譯條目。
4. 支持測試, 可以用 測試_xxx() 這樣的函數編寫測試用例. 編成 .py 後使用 nosetests 命令測試。

注意周蟒目前不支援 unicode string (u'哈囉') 的表示方式,會在之後版本修正。

周蟒相關消息請至官方網站查看
http://zhpy.blogspot.com/


zhpy Changelog
====================

1.4 (1/18/2008):
--------------------
code name: Hang Man

*Changes*

* change keyword:
* "元組" instead of "組合":"tuple",
* "元组" instead of "组合":"tuple",
* update example n_tabl.twpy

*Features*

* Introdure real chinese traceback support, currently works in compiler mode

*Fixes*

* Fix interpreter unicode issue mainly occured on Windows, thanks renhbo

*Project Updates*

* use setup.cfg to generate docs

*Contributors*

Fred Lin, renhbo

2007年12月2日 星期日

周蟒(zhpy) 1.4 Beta1 發佈, 加強本地化

周蟒(zhpy) 1.4 Beta1 發佈了 (代號 黃色節制)。
請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本,或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/

這版本加強了許多在地化的設定

1. 試驗中的中文 traceback 支持(目前僅支援一般執行模式,不支援直譯器)
2. 初步支持測試, 可以用 測試_xxx() 這樣的函數編寫測試用例. 編成 .py 後使用 nosetests 命令測試.
3. 次要關鍵詞的修正
4. 開啟 zhpy interpreter 時判斷系統編碼自動顯示繁簡中文 banner (ex: 周蟒 1.4b1 於 darwin 基於 Python 2.5.1)。


zhpy Changelog
====================

1.4b1 (12/3/2007):
--------------------
code name: Yellow Temperance

*Changes*
* change keyword:
* '操作系统错误' instead of '作业系统错误':"OSError"
* '申明' instead of "宣告":"assert"
* "申明錯誤" instead of "宣告錯誤":"AssertionError"
* "申明错误" instead of "宣告错误":"AssertionError"
* add traceback term plugins (not functional yet)

*Features*

* while open interpreter, autodetect and show the localized banner
* experimental chinese traceback support in convertor (not support in interpreter)
* add keyword:
* "全域":"global"
* "全域變量":"globals","全域变量":"globals"
* "測試":"test", "测试":"test"
* "物件":"object", "对象":"object"
* able to test though generated python file ($ nosetests n_xxx.py)

*Fixes*

* fix triple quote bug, thanks renhbo
* allow cascading 2 identifiers (cascade 3 or more identifiers is not support)

*Project Updates*

*Contributors*

Fred Lin, renhbo

2007年11月4日 星期日

周蟒(zhpy) 1.3 版發佈, 解壓縮即用

周蟒(zhpy) 1.3 版剛發佈了(代號 白蛇)

請使用

$ easy_install -U zhpy

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

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

這版本主要是增加解壓縮即用(開箱即用/Battery Included)的能力.
附帶了 pyparsing 模塊.
只要下載了源碼包(Source Pack), 解壓縮後即可直接執行

$ python interpreter.py

來直接試用周蟒直譯器. 或執行

$ python commandline.py

來執行周蟒程式或轉換 python 程式成周蟒程式. (跟一般周蟒命令列工具用法相同)

只有想要用中文系統腳本或隨處可執行周蟒的情況下才一定得安裝周蟒.

就像漫畫 jojo 冒險野郎中的白蛇能抽取替身能力者的能力成為 Disc, 將Disc放到任何人身上這個人就立即擁有該替身能力一樣.

另一個特點是模塊包更獨立. 繁簡中文插件包是分開的.
你可以從源碼包中刪掉用不著的簡體中文插件(plugcn.py), 周蟒仍能正常執行.

或是從源碼包中單獨取出 interpreter.py(直譯器), zhpy.py(核心), zhdc.py(關鍵詞轉換庫), plugtw.py (繁中插件) 四個檔(如果沒裝 pyparsing 的話也要拷貝 pyparsing.py), 執行

$ python interpreter.py

也能執行有限功能的周蟒(zhpy core).

zhpy Changelog
====================

1.3 (11/5/2007):
--------------------
code name: White Snake

*Changes*

* Separate traditional and simplified chinese keywords from zhdc to plug[lang].py
* moveout plugins' setuptools dependency, now you can try zhpy without install.
* change keyword:
* "引用錯誤", "引用错误" instead of "参考错误":"ReferenceError"
* make py_annotator work while only plugtw or plugcn exists.

*Features*

* support custom name space in zh_exec, thanks renhbo
* able to run the commandline without install
* able to run the interpreter with 4 module ["interpreter", "zhpy", "zhdc", "plug[lang]"]
without install (core mode)
* able to profiling standalone interpreter with "--profile" option

*Fixes*

* fix keyword "locals" instead of "local"
* generate proper profix while the origin source is suffixed with '.tw.py' or '.cn.py'

*Project Updates*

* include pyparsing in distribution
* doc update
* add official zhpy blog: http://zhpy.blogspot.com/
* remove zhpy_ext sample

*Contributors*

Fred Lin, renhbo

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

2007年9月5日 星期三

周蟒 0.9版發佈

Hi,

周蟒 0.9版發佈(代號 世界), 主要更新如下:

* 關鍵字插件系統, 附插件範本
http://code.google.com/p/zhpy/wiki/ModulePlugin
* 直譯器可搭配 ini 使用
http://code.google.com/p/zhpy/wiki/PlugKeywords
* 可將周蟒當作系統腳本使用
http://code.google.com/p/zhpy/wiki/ExampleHello
* 修正編碼判斷問題
* Good Practice: cheesecake rate 到達 92% (502/545)
http://www.pycheesecake.org

請使用

$ easy_install -U zhpy

命令下載或更新.

目前周蟒文件正以 '咬一口 Python 程式語言' 為範本,
改編成 '咬一口周蟒程式語言'.
只要初步比較就可以確信周蟒確實可以當作 python 程式語言的中文替身 :)