Sunday, April 10, 2011

Custom dictionary with stardict in babylon format

Create Dictionary data file
(in GLS:Babylon Glossary Source format)
as describe http://siripong-english.blogspot.com/2011/04/custom-dictionary-with-babylon.html

You might add compile options such as bookname, author, description to the data file.
To specify options and fields, leave the first line blank, then write options, one option per line.
Precede each line with a hash sign.

See libbabylongfile.cpp source file for complete list of supported fields and options.
http://stardict-tools.sourcearchive.com/lines/3.0.1/libbabylonfile_8cpp-source.html



Sample:

#bookname=My Dictionary
#description=Dictionary with incredible definitions.
#author=Siripong
#stripmethod=keep
#sametypesequence=h

incredible
เหลือเชื่อ

link
link to other words in the dictionary with bword  <a href="bword://next">next</a>



Compile it with stardict-editor or stardicttools under Linux
(it is in the Ubuntu repository).

Siripong Pongpinyopap


Thanks
http://goldendict.org/forum/viewtopic.php?f=5&t=604#p1990

No comments:

Post a Comment