Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

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

Custom Dictionary with Babylon

สร้างพจนานุกรมส่วนตัว ผ่านโปรแกรม Babylon Builder http://goldendict.org/forum/viewtopic.php?f=5&t=909#p3833

หรือ manual ดังนี้

Create a plain text file in UTF-8 encoding.

The first line must be empty.

Each term or glossary entry has the following basic structure:

[blank line]
Term | Alternate1 | Alternate2| ... | AlternateK
[attributes]
Definition
[blank line]

Each entry is written on two lines and is followed by a blank line.
On the first line is the searchword.
On the second line you have to put the content of the dictionary article.
You can use HTML tags to format text and include pictures.
The file must end with two empty lines.


Sample:

incredible
เหลือเชื่อ

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


Compile เป็น BGL file ด้วย http://www.babylon.com/products/glossary-builder.html

Siripong Pongpinyopap


อ้างอิง
- http://support.babylon.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=117 (Appendix A)
- stardict-3.0.2.tar.bz2