[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4779: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4781: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4782: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4783: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Gentoo Taiwan 討論區 • 檢視主題 - Y! Dict 字典程式 with python

Y! Dict 字典程式 with python

歡喜聊天區!除了有關暴力、血腥、色情與測試項目以外,都可聊!

版主: Forums Team

Y! Dict 字典程式 with python

文章pokkys » 週六 2月 28, 2009 12:56 am

之前在網路上看到用駱駝文寫的ydict,非常喜歡用。
但是有一些寫bug,我看不懂駱駝文,所以不會修。
所以用python寫了一個版本。
簡單說就是一隻command line的字典查詢程式。
在這裡推廣兼測試一下^^"

圖檔
最後由 pokkys 於 週六 2月 28, 2009 4:25 am 編輯,總共編輯了 2 次。
頭像
pokkys
 
文章: 94
註冊時間: 週六 12月 17, 2005 12:01 am
來自: 台灣台南

Re: Y! Dict 字典程式 with python

文章jojoyakira » 週六 2月 28, 2009 1:23 am

很好用!謝謝你。 :D
Desktop:Intel Pentium(R) Dual-Core CPU E5300 @ 2.60GHz,OS: Gentoo GNU/Linux
jojoyakira
 
文章: 284
註冊時間: 週四 3月 01, 2007 10:42 pm
來自: kaohsiung

Re: Y! Dict 字典程式 with python

文章pokkys » 週日 11月 14, 2010 11:57 am

前陣子看了R·A·薩爾瓦多的黑暗精靈三部曲
上網找之前的作品,例如冰風之谷。
不過中文版已經找不到了,只好找一下原文的版本。
幸好原文還有在印刷,上網買了一本。
等了好久才拿到書,結果打開書一看......沒幾句話看得懂。
果然直接看原文書太吃力了。
不甘心的當下,燃起一股熱血!
為什麼我不好好的把英文學好呢?
所以.....我把之前寫得ydict加上學習功能。

Y!DICT in Google Code

先用 ydict -d 初始化資料庫
之後查過的字,會加到$HOME/.ydict.db

大致上的學習策略是新加入的字優先權會最高。
可以正確拼出來的字優先權會慢慢降低。
當然,如果拼錯優先權也會變高。
這樣就可以對不熟的字加強學習。

之前有看過一些類似的方案。
不過我比較喜歡可以寫一個自己比較喜歡的學習方式。
有興趣的朋友可以抓下來玩看看。
如果有找到bug,請幫我一個忙,回報到google code的issue repot
感恩!
圖檔
頭像
pokkys
 
文章: 94
註冊時間: 週六 12月 17, 2005 12:01 am
來自: 台灣台南


回到 談天說地

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 3 位訪客

cron