|
本帖最后由 qunwang6 于 2015-1-19 11:29 编辑
其它
stardict-textual-dict-example.xml
http://code.google.com/p/stardic ... e3841c0fda092c68b6f
StarDict格式的词典转txt
方法一:
StarDict Editor
http://code.google.com/p/stardic ... xe&can=2&q=
1.下载、解压StarDict词典的压缩包xxx.tar.bz2
2.将解压后文件夹内的xxx.dict.dz重命名为xxx.dict.zip然后解开为xxx.dict文本文件
3.打开StarDict Editor,选DeCompile,文件xxx.ifo
4.DeCompile
方法二:
StarDict转txt程序:cvtstardict2txt.zip
http://www.pythonclub.org/python-files/stardict
1.下载、解压StarDict词典的压缩包xxx.tar.bz2
2.将解压后文件夹内的xxx.dict.dz重命名为xxx.dict.zip然后解开为xxx.dict文本文件
3.用cvtstardict2txt提取
方法三:
pyglossary
https://github.com/ilius/pyglossary
1.下载、解压StarDict词典的压缩包xxx.tar.bz2
2.cd 词典文件夹
3.python /Applications/Utilities/DictionaryDevelopmentKit/pyglossary/pyglossary.pyw --read-options=resPath=OtherResources --write-format=AppleDict xxx.ifo xxx.xml
编译成StarDict格式的词典
方法一:
StarDict Editor
http://code.google.com/p/stardic ... xe&can=2&q=
方法二:
pyglossary
https://github.com/ilius/pyglossary
python /Applications/Utilities/DictionaryDevelopmentKit/pyglossary/pyglossary.pyw --read-options=resPath=OtherResources --write-format=Stardict xxx.txt xxx.ifo
===
文本格式
a 1\n2\n3
b 4\\5\n6
c 789
每行开头,是一个单词;接著,是一个Tab符(如果你的文本编辑器有 "Tab=空格" 选项,勿选之);接下来是单词音标及释义。n 表示换行,\ 表示斜线 。词典文件的最后一行,必须是一空行。
<A href='bword://DAKOS'>DAKOS</A>
How to add HTML tags to StarDict file?
a <span style="font-color:#008000">prep.</span> <i>(en relaciones de proporción, equivalencia)</i> per.
abajo <span style="font-color:green">adv.</span> below.
a mano by hand.
abarcar <span style="font-color:green">v.</span> <i>(temas/materias)</i> to cover; <i>(superficie/territorio)</i> to span, cover.
===
Compile any supported file format to StarDict dictionary.
Tab file format
---------------
Here is a example dict.tab file:
============
a 1\n2\n3
b 4\\5\n6
c 789
============
Each line contains a word - definition pair. The word is splitted from definition with a tab character. You may use the following escapes: \n - new line, \\ - \, \t - tab character.
Babylon source file format
--------------------------
=====
apple|apples
the meaning of apple
2dimensional|2dimensionale|2dimensionaler|2dimensionales|2dimensionalem|2dimensionalen
two dimensional's meaning<br>the second line.
=====
Each article must be followed by an empty line. The file must end with two empty lines!
You may specify field like bookname, author, description that will be used in the generated StarDict dictionary. You may specify options effecting processing of the babylon source file. See libbabylongfile.cpp source file for complete list of supported fields and options. To specify options and fields, leave the first line blank, than write options, one option per line. Precede each line with a hash sign.
For example:
=====
#bookname=My dictionary
#author=My name
#description=...
#other fields=
articles...
=====
Textual StarDict file format
----------------------------
See doc\TextualDictionaryFileFormat in source tarball for information about Textual StarDict dictionary.
Babylon
单词
解释(用htm的格式,如<B></B>可以设黑体;<font face=xxx></font>可以设字体等等。
(空行)
下一个单词。。。
词典文件的最后一行,必须是一空行。
|
|