Differences between revisions 1 and 2
Revision 1 as of 2007-12-02 03:47:31
Size: 1058
Editor: ZoomQuiet
Comment:
Revision 2 as of 2007-12-02 03:47:48
Size: 1063
Editor: ZoomQuiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
{{{

含有章节索引的 *PUG 文章通用模板 ::-- ZoomQuiet [DateTime(2007-12-02T03:47:31Z)] TableOfContents

Include(CPUGnav)

1. GPL词典

Jiahua Huang <[email protected]>
reply-to        [email protected],
to      [email protected],
date    Dec 2, 2007 11:40 AM
subject [CPyUG:35998] Re: 请教有哪些好些的开放格式的词典?

http://stardict.sourceforge.net/ 上的许多词典号称是 GPL 的

  • 读取 stardict 词典的 python 模块

1.1. 示例:

huahua@huahua:demo$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import stardict
>>> cdict = stardict.FileDb('/usr/share/stardict/dic/stardict-dic-langdao-ec-gb/langdao-ec-gb')
>>> print cdict.match('.','python')
python
*['paiθɒn]
n. 大蟒, 巨蟒

PageComment2

MicroProj/2007-12-02 (last edited 2009-12-25 07:17:47 by localhost)