2008年2月3日星期日

StarDict

[Name]
StarDict / 星际译王

[URL]
Google: stardict

[OnLine]
YES

[Hardware Platform]
X86

[Software Platform (OS)]
WXP+SP2

[Prerequisite]
GTK+

[Need Installation?]
YES

[Can be Greened?]
NO(GTK+ Issue)

[Need OS Restarting?]
NO

[Security]
when za alert stardict want to inject code to explorer, just deny, although it seems not harmful
when za alerted stardict want to access internet, ok. (stardict 3' net ditioarny fuantinality)





[As a Platform?]
YES

dictioarny:
You can also download the Dictionary files here.StarDict uses the opensource dictionaries collected from the internet. If any of them influence your copyright, please let us know, we will delete it.

network dic: new feature in version 3. but even after I register an account(by the UI of the software), I can only choose at most 8 net dicts. more, this funcionality seems unstable, the program dead when I was browsing the net dicts.

customize dictionary:http://stardict.sourceforge.net/HowToCreateDictionary
"
How to create your own dictionaries.

First, read doc/DICTFILE_FORMAT.

Second, install stardict-editer package. For more tools, download the stardict-tools source code tarball and compile it, you will find many tools at src/, such as tabfile, babylon, stardict2txt, stardict_verify.

In most case, I recommend the "tabfile" converter to create your own dictionaries. You need to create a text file first, it should be encoded in UTF-8, and the new line characters should be "\n", if it is in DOS file format("\r\n"), you can use "dos2unix" to convert it.

Here is a example dict.tab file:
============
a 1\n2\n3
b 4\\5\n6
c 789
============
It means: write the search word first, then a Tab character, and the definition. If the definition contains new line, just write \n, if contains \ character, just write \\.

Then use "tabfile" to compile it:
./tabfile dict.tab
You will find three files that are generated by tabfile: "dict.ifo", "dict.dict" and "dict.idx", then you can compress the "dict.dict" file by dictzip:
dictzip dict.dict
You will get the "dict.dict.dz" file. You can find dictzip at DICT project, http://www.dict.org, just download its source code tarball and compile it, then you can find "dictzip" in it.
StarDict can load the dict.dict directly too, so dictzip is optional.

You can use gedit to edit the "dict.ifo" file, change the bookname, description, etc. and you can look at the "src/example.ifo" file for a example. Use "ls -l dict.tab.idx" to get the idxfilesize.

Now you can create a directory at /usr/share/stardict/dic/, for example:
mkdir /usr/share/stardict/dic/example-dict/
And move dict.dict.dz, dict.idx, dict.ifo into this directory:
mv dict.dict.dz dict.idx dict.ifo /usr/share/stardict/dic/example-dict/

It is suggested that you verify this dictionaries at last by:
./stardict_verify /usr/share/stardict/dic/example-dict/dict.ifo

Run StarDict and you will find the dictionary that created by yourself.

Another format that StarDict recommends is babylon source file format, it is just like this:
======
apple|apples
the meaning of apple

2dimensional|2dimensionale|2dimensionaler|2dimensionales|2dimensionalem|2dimensionalen
two dimensional's meaning
the sencond line.

======
Use babylon to compile it. stardict-editer can compile it too.

If you want to distribute your dictionary at StarDict website, just contact me.

lee ray
http://www.stardict.org
2006.6.29
"






[?]
pronunciation: on download page.
"
WyabdcRealPeopleTTS package make StarDict pronounce those English words. It is just many .wav files.
In Linux, you can extract(tar -xjvf) the tarball at "/usr/share/". In Windows, you can use WinRAR to extract the tarball and install it at "C:\Program Files\" or "Program Files\StarDict\".
"
wyabdc:我也爱背单词
but recommend m-w

全文翻译:it use google/yahoo... . new in version 3

取词否:左下角

如果界面显示不了中文有两个可能:
1. 因为 Gtk+ 运行环境设置为不支持中文编码. 开始 -> 所有程序 -> GTK+ Runtime Environment -> Select language.
2. 因为某些字体不支持中文, 比如 Calibri. 在软件窗口的点击右下角"设置"按钮, 将字体改成"Tahoma 9".

至于在 windows 的安装顺序是:
1. Gtk+
2. StarDict
3. 解压词典到[StarDict的安装目录]\dic, 装到这里可以先试试可否查单词, 但现在还不能发音.
4. 解压发音文件到[StarDict的安装目录], 解压音乐文件分别放在[StarDict的安装目录]\WyabdcRealPeopleTTS\[a~z]中.现在重新进入系统试一下点击窗口上的小齿轮, 就可以听到发音了.





[Portable Support]
7-zip ok (or UE which also calls 7-zip)
$[31]\ has 7 dirs same as that after-installed
$R9\ has plug_ins/ which contains PDF plugin:StarDict.api (copy this file to adobe reader's installation dir's plug_ins/ dir then restart adobe reader, enable the extra button inside the reader)
$TEMP\ contain gtk_runtime.exe

but the installed has an empty dir: treedict/

the files: stardict.exe, TextOutHook.dll, TextOutSpy.dll

just copy, start stardict.exe and it complain lack dll file
try install the gtk_runtime.exe, silent. rerun, a dialog pop up saying already installed. but still dll lack. unpack this exe, copy all dll, program starts but abnormal

goto gtk+'s homepage,on dowload page for windows, there are so many components. try just downloading "gtk+" component, but just a zip file, no readme. and still lack dll. see http://library.gnome.org/devel/gtk-faq/stable/, no use.

so gotta setup. and setup tells me gtk+ already installed(because i've executed the gtk_runtime.exe extracted already) and next next... OK
this time try copy out and run, still fail, say an png not found.
so gotta use setup

[Resource]
http://wiki.linux.org.hk/w/StarDict_in_Windows
http://hi.baidu.com/landnow/blog/item/97e261f002227baba50f5271.html

没有评论: