Offline Dictionary แบบถูไถ

9 April, 2008 - 14:41
Submitted by thep

gnome-dictionary สามารถใช้พจนานุกรมจาก Longdo server ได้มา ปีกว่า ๆ แล้ว แต่หลายคนพูดถึง off-line dictionary โดยให้เหตุผลว่า บางทีก็ไม่ได้ต่อเน็ต และ kdictthai, gdictthai ก็ไม่มีการปรับปรุง

ความจริงมีโครงการที่แอบทำกันไว้ที่ LTN CVS อยู่สองโครงการที่น่าสนใจ คือ dictd-lexitron ที่เริ่มโดยคุณพูลลาภ และ dict-longdo ที่ผมทำเพิ่ม โดยทั้งสองแพกเกจ จะแปลงข้อมูลดิบของพจนานุกรมทั้งสองแหล่ง ให้อยู่ในรูปที่ DICT server (RFC 2229) ใช้ ซึ่งอันที่จริง ก็เป็นข้อมูลที่ให้บริการอยู่ที่ Longdo server นั่นเอง

ถ้าจะถูไถเอามาใช้แบบออฟไลน์ ก็อาจจะเปิด dict service ที่เครื่อง แล้วก็เปิด gnome-dictionary โดยใช้ localhost เป็นแหล่ง โดยชี้ apt source ไปที่ http://linux.thai.net/apt ./ แล้วก็ติดตั้งแพกเกจ dict-lexitron และ dict-longdo ซึ่งจะได้ dict daemon มาพร้อมด้วย จากนั้นก็ตั้ง gnome-dictionary ประมาณนี้:

GNOME Dictionary Preferences

กดปุ่ม "เพิ่ม"

Adding local dict server

ตั้งชื่อแหล่งพจนานุกรม แล้วกำหนดชื่อโฮสต์เป็น localhost แล้วกด "เพิ่ม" ซึ่งจะปิดกล่องโต้ตอบและกลับมาที่กล่องปรับแต่ง โดยมี dict server ใหม่เพิ่มเข้ามาแล้ว

Selecting local dict server

เลือก dict server ที่เพิ่มนั้นเป็นแหล่งปริยาย แล้วกด "ปิด"

จากนั้นก็ลอง ค้นคำดู

Lookup test

ดู ๆ แล้ว วิธีนี้ ถึงจะตอบโจทย์ off-line dict ได้แบบเอาสีข้างเข้าถู แต่ดูไม่สวยเท่าไร ขั้นต่อไปคือ แปลงข้อมูลนี้ให้อยู่ในรูป StarDict

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <img> <blockquote> <h3> <h4>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is used to make sure you are a human visitor and to prevent spam submissions.
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.