2008/05/16

OnlineDic supports word list now!

onlinedic_word_list (by plateaukao)

it's awkwardly implemented yesterday. The word list support was not considered in the original design of Dict module so it's hard to find a place to fit it in.

Finally, I decided to add a default function for Dict base class: get_word_list(). Currently, this new feature is only supported for dictionary files with stardict format .

After calling match() from FileDB in stardict module, it will not only return the word explanation, but also provide a list of words that are before and after current word.

When the MainWindow receives SearchDone event, it will upate the left side panel if word list is available. If not, the word list panel won't be displayed.

No comments:

Post a Comment

騎士團長殺人事件 --村上春樹

今年的日文小說看完了。篇幅很長,但規模不大,故事都繞著幾個主要的人物。情節裡有些超現實的場景,但最後卻讓人有點意猶未盡,因為有些想搞懂的疑點,在還沒講清之前就結束了。