Showing posts with label พจนานุกรม. Show all posts
Showing posts with label พจนานุกรม. 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

Wednesday, January 19, 2011

มาสร้าง Dictionary ส่วนตัวกันเถอะ

สำหรับผู้ที่ศึกษาภาษาอังกฤษ พอจะพูดหรือเขียน
คงเจอปัญหาลืมกัน ไม่มากก็น้อย

เช่น การใช้ Collocation หรือศัทพ์ ที่ไม่ค่อยได้ใช้
คำศัพท์ที่เกี่ยวข้องกัน: Orphan กำพร้า -> foster การรับมาเลี้ยงดูอุปถัมภ์
Context การพบเห็นศัพท์นั้นๆ
ที่มาของศัพท์: Breakfast -> Break หยุด + fast การอดอาหาร
คำแปลในภาษาท้องถิ่น hurry up -> จังวา

ถ้ามีวิธีการจดบันทึก ศัพท์ภาษาอังกฤษ ใน computer
ที่ง่าย, รองรับสืบค้นได้, นำกลับมาใช้ใหม่ได้ ก็น่าจะดี

วันนี้มีทางเลือกในการจดบันทึกมาแนะนำกันครับ

วิธีการอย่างย่อก็คือ ด้วยจดบันทึกด้วย notepad
แล้วก็สืบค้นด้วย (หรือแสดงผลผ่าน)โปรแกรม dictionary ที่แจกฟรี เช่น GoldenDict ครับ

เช่น เราใส่คำว่า "yahoo" แล้วก็ note ว่า  "อ่านว่า ยาฮู้ (ไม่ใช่ อย่าอู้...)"
ตัวอย่างการแสดงผลก็จะเป็นดังนี้



ทำยังไง?
======

เริ่มต้น สร้างไฟล์ชื่อ MyDictionary.dsl ที่มีข้อมูลดังนี้
#NAME "My own Dictionary"
#INDEX_LANGUAGE "English"
#CONTENTS_LANGUAGE "English"
hello
 Hello everybody. Hello World!!
yahoo
 อ่านว่า ยาฮู้ (ไม่ใช่ อย่าอู้...)

จุดสังเกตุ
=======
ในไฟล์ข้อมูล dsl นั้น ข้อมูลที่เขียน มีรูปแบบเฉพาะที่ต้องเขียนให้ถูกต้อง
เช่น สามบรรทัดแรกต้องเป็น #NAME, #INDEX ...
,เขียนคำที่เป็น keyword (ที่จะใช้ในตอน search) ที่ต้นบรรทัด (กรณีนี้คือคำว่า hello และ yahoo)
,ส่วนตัวอย่างประโยค หรือ comment ต้องมีการย่อหน้าด้วยช่องว่างหรือแท็บ 1 ตัวอักขระ เป็นต้น)

หลังจากนั้นก็ไป download แล้วก็ติดตั้งโปรแกรม GoldenDict ครับ
http://goldendict.org/
เราจะใช้โปรแกรมนี้ในการแสดงผล ข้อมูล dsl ของเราครับ

หลังจากเปิดโปรแกรม, เข้าไป config ให้กับ GoldenDict ว่าไฟล์ dictionary ของเราอยู่ที่ไหน
ผ่านทางเมนู Edit -> Dictionaries...

แล้วก็ทดลอง search คำว่า hello หรือ yahoo เลย

ถ้าอยากได้ ไฟล์ข้อมูล Dictionary เช่น Oxford, Longman
ผมรวบรวม link ในการ download ไว้ที่นี่ครับ
http://siripong-english.blogspot.com/2009/08/recommended-offline-dictionaries.html
(ศัพท์ที่ทันสมัยหลายตัว เช่น มีศัพท์ว่า facebook ด้วย)

ถ้าอยากให้คำอธิบายของเรา มีการกำหนดสี หรือลักษณะอักษรตัวหนา ตัวเอียง

[b],[/b] - boldfaced font
[i ],[/i] - italics
[u],[/u] - underlined font
[c],[/c] - coloured (highlighted) font
[mN],[/m]- the left paragraph margin. N is the number of spaces(0-9).
[s],[/s] - multimedia zone (used to add pictures or sound files into a dictionary entries ).
[url],[/url] - link to a Web page.
[p],[/p] - labels (clicking a label displays its full text)
[ref],[/ref]- hyperlink to a card in the same dictionary (or <<, >>)
[sub][/sub] - subscript
[sup][/sup] - superscript
['],[/'] - a stressed vowel in a word.
[ex], [/ex] - examples zone.

ลองอ่าน http://aungwin.htut.googlepages.com/DSLcoding.pdf หรือ http://informationworker.ru/lingvo.en/dslcompiler/dsl_commands.htm ดูครับ

หรือ อีกทางเลือกนึง ลองอ่าน http://siripong-english.blogspot.com/2011/04/custom-dictionary.html ดูครับ

แต่สุดท้าย อย่าลืม ที่จะ(ลดการพึ่งพาเทคโนโลยี) พยายามจำใส่หัวให้มากที่สุด

สิริพงษ์ พงศ์ภิญโญภาพ

ปล. เพื่อให้สามารถ search ด้วยภาษาไทยได้
ในตอนบันทึก ให้เลือกชนิดของไฟล์เป็น UTF-8 ด้วย

Note
===
These tags seem to have no references in article-style.css and don't show any recognizable effect.
[*], [/*] - the text between these tags is only displayed in full translation mode
[trn], [/trn] - translations zone.
[com], [/com] - comments zone.
[!trs], [/!trs] - the text between these tags will not be indexed

อ้างอิง http://goldendict.org/forum/viewtopic.php?f=5&t=751

Monday, August 24, 2009

Recommended Offline Dictionaries

แนะนำ Program Offline Dictionary ดีๆที่ Free + ไม่มีโฆษณา

GoldenDict
=======
http://goldendict.org/
- มีทั้ง version ที่ทำงานบน Window$ และ Linux
- ผู้ใช้สามารถ เพิ่มลดฐานข้อมูลคำศัพท์ได้เอง
โดยไป download ไฟล์ฐานข้อมูลคำศัพท์ฟรี
จุดเริ่มต้นค้นหาดีๆ อาจจะเริ่มจาก http://goldendict.org/dictionaries.php

หรือ Linvo ที่ http://traduko.lib.ru/dics_en_en.html
,Babylon ที่ http://www.babylon.com/free-dictionaries/
,หรือ stardict ที่ http://stardict.sourceforge.net/Dictionaries.php
(ซึ่งจะมีแปลไปยังหลายภาษา ซึ่งที่ใช้โดยทั่วไป คือ Eng <-> Eng ก็จะอยู่ภายใต้ link
http://yeelou.com/huzheng/stardict-dic/babylon/en/ ต้นทางข้อมูลมาจาก Babylon
และ http://yeelou.com/huzheng/stardict-dic/dict.org/ ต้นทางข้อมูลมาจาก dict.org)

ฐานข้อมูลคำศัพท์ ที่ผมมักจะใช้เป็นประจำ ได้แก่

Longman Dictionary of Contemporary English, 5th edition, 2009
http://traduko.lib.ru/en_en_ldoce5.html
เว็บเป็นภาษารัสเซียไม่ต้องตกใจ + ไม่ต้องอ่านนะครับ
หา link แล้ว load อย่างเดียวครับ
ไฟล์ฐานข้อมูล คือตัวที่นามสกุล dsl ขนาด 8 Mb
ถ้าไม่ต้องการเสียง หรือรูป ก็ไม่ต้อง d/l ไฟล์อื่น

Oxford Advanced Learner's Dictionary 8th edition, 2010
http://traduko.lib.ru/en_en_oald8.html

Longman Language Activator, 2nd edition, 2000
http://traduko.lib.ru/en_en_lla.html

Oxford Collocations Dictionary, 2nd edition, 2009
http://traduko.lib.ru/en_en_ocd2.html

English-Thai Loy
http://www.babylon.com/free-dictionaries/languages/thai/English---Thai,-Loy's-Dictionary/49489.html

English_Thai_Dictionary_of_Che
http://www.babylon.com/free-dictionaries/reference/dictionaries-thesauri/English---Thai,-Dictionary-of-CherngX/58182.html

English-Thai Eci
http://www.babylon.com/free-dictionaries/languages/thai/Eci_ThaiDictionary1/16707.html

English-Thai Quick_Reference
http://www.babylon.com/free-dictionaries/languages/thai/English---Thai-Quick-Reference/6057.html

Thai_English_Dictionary_of_Che
http://www.babylon.com/free-dictionaries/reference/dictionaries-thesauri/Thai---English,-Dictionary-of-CherngX/58202.html

Thai-English Quick_Reference
http://www.babylon.com/free-dictionaries/reference/dictionaries-thesauri/Thai---English-Quick-Reference/16020.html


ส่วนที่ใช้บ้างเป็นครั้งคราว ได้แก่

Babylon_English
http://www.babylon.com/free-dictionaries/languages/Babylon-English/901.html
เป็นฐานข้อมูลที่น่าสนใจ เพราะบรรจุพวก idioms, common sentenses ไว้ด้วย

Concise Oxford Thesaurus
http://yeelou.com/huzheng/stardict-dic/babylon/en/stardict-babylon-Concise_Oxford_Thesaurus-2.4.2.tar.bz2

Merriam-Webster Collegiate® Thesaurus
http://yeelou.com/huzheng/stardict-dic/babylon/en/stardict-babylon-Merriam_Webster_Collegiate__Di-2.4.2.tar.bz2

Oxford Collocations Dictionary
http://yeelou.com/huzheng/stardict-dic/dict.org/stardict-OxfordCollocationsDictionary-2.4.2.tar.bz2
และ
http://yeelou.com/huzheng/stardict-dic/dict.org/stardict-oxford_collocations-2.4.2.tar.bz2


ENGLISH_IDIOMS_2_EDITION
http://www.babylon.com/free-dictionaries/ENGLISH_IDIOMS_2.EDITION_Dictionary/16708.html

American Idioms
http://yeelou.com/huzheng/stardict-dic/babylon/en/stardict-babylon-AmericanIdioms-2.4.2.tar.bz2

WordNet 3.0
http://yeelou.com/huzheng/stardict-dic/special/stardict-wordnet-3.0.0.tar.bz2

Moby Thesaurus II
http://www.babylon.com/free-dictionaries/reference/dictionaries-thesauri/Moby-Thesaurus/66382.html
or http://yeelou.com/huzheng/stardict-dic/dict.org/stardict-dictd-moby-thesaurus-2.4.2.tar.bz2
Babylon -> "Moby Thesaurus is the largest and by far most comprehensive thesaurus data source in English available at the present. ...
This version has been thoroughly revised and contains 30,260 root words, with 2,520,264 synonyms and related terms."

English Thesaurus
http://yeelou.com/huzheng/stardict-dic/dict.org/stardict-thesaurus-ee-2.4.2.tar.bz2

dictd_www.dict.org_gcide
(Collaborative International Dictionary of English)
เท่าที่สังเกตุ กว่า 90% เป็นฐานข้อมูลของ Webster
นอกนั้นเป็น WordNet 1.5, PJC

stardict-babylon-MacMillan_English_Dictionary_V1.1_-American-2.4.2
ดีตรงที่มีเครื่องหมายดอกจัน เพื่อบ่งบอกว่าศัพท์ตัวไหนพบบ่อย ควรจำ

stardict-babylon-Britannica_com-2.4.2
คำอธิบายจะสั้นกระชับกว่า stardict-BritannicaConcise-2.4.2
(คือ อธิบายเป็นวลี ของใจความสำคัญๆ
ส่วน stardict-BritannicaConcise-2.4.2 จะอธิบายเป็นประโยค)
จำนวนศัพท์มากกว่า stardict-BritannicaConcise-2.4.2
มี link ไปดูข้อมูลเพิ่มเติมจาก website Britannica

Lingoes
=======
http://www.lingoes.net
- ทำงานได้เฉพาะบน Windows
- ผู้ใช้สามารถ เพิ่มลดฐานข้อมูลคำศัพท์ได้เอง เหมือน GoldenDict
(เป็นไฟล์นามสกุล ld2 <-- การแสดงผล สวยงาม อ่านง่าย ต่างจากตัวหนังสือล้วนๆของ StarDict)
รายละเอิยดเพิ่มเติม ไปที่ http://english-for-thais-2.blogspot.com/2008/12/902.html

StarDict
=====
http://stardict.sourceforge.net
มี version ที่ทำงานบน Windows, Linux, MacOS
ผู้ใช้สามารถ เพิ่มลดฐานข้อมูลคำศัพท์ได้เอง เหมือน GoldenDict และ Lingoes
จะแสดงคำที่สะกดใกล้เคียงด้วย ช่วยผู้ที่สะกดผิด

TheSage
======
http://www.sequencepublishing.com/thesage.html
TheSage's English Dictionary and Thesaurus - A complete dictionary and multifaceted thesaurus of the English language.

Wordweb
======
http://wordweb.info/free/

Highlight Dictionary
=============
http://www.nextproject.net/dictionary/
ไฮไลต์ดิกชั่นนารี เป็นพจนานุกรมอิเล็คทรอนิกส์ อังกฤษ-ไทย และ ไทย - อังกฤษ มีคลังข้อมูลบรรจุคำศัพท์จากพจนานุกรมอิเล็คทรอนิกส์ ถึง 3 เล่ม รวมกันกว่า 180,000 รายการ สมบูรณ์แบบด้วย ความหมาย , ประเภทของคำศัพท์ , คำย่อ , คำพ้องเสียง , คำเหมือน , คำไกล้เคียง , คำตรงข้าม, ตัวอย่างประโยค เป็นต้น

ฐานข้อมูลทั้ง 3 ของ ไฮไลต์ดิกชั่นนารี ได้แก่
- LEXiTRON 2.0 โดย ฝ่ายวิจัยและพัฒนาสาขาสารสนเทศ ศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ
- DictHope โดย Hope Studio เนื้อหาถูกนำมาใช้จาก KDictThai ที่มีลิขสิทธิ์ตาม GPL
- NontriDict ข้อมูลที่ใช้ดาวน์โหลดได้จาก ftp://ftp.cs.washington.edu/pub/thaisys/BBS

สิริพงษ์ พงศ์ภิญโญภาพ