\n';
// longdo login
longdo_account = new LongdoAccount();
longdo_account.initLongdoLogin();
$('a.logout-a').on('click', longdoLogout);
}
function getElementsByClassName(oElm, strTagName, strClassName){
var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
strClassName = strClassName.replace(/\-/g, "\\-");
var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
var oElement;
for(var i=0; i');
$("#search").show();
$("#search").val(search_value);
setRandomSearchBoxName();
} else {
$(".for-popthai").show();
$("#logo-ads").addClass('popthai-mode');
$("#longdo-latest, #contents-showup").hide();
// $("#contents-showup").next().hide();
$("#contents-showup-popthai").show();
$('input.translate-type:checked').val('popthai');
$('#textboxPlaceholder').html('');
$("#search").text(search_value);
setRandomSearchBoxName();
if(obj === undefined) {
checkLan(search_value, $(".translate-language").val() == "Auto");
}
}
$("#search").focus();
return true;
}
function doSubmit(obj) {
var form_obj = obj ? obj.form : document.getElementById("dict");
$(form_obj).attr("method", 'post');
var search_value = $("#search").val();
$("#search").attr('name', "search");
$("#search").hide();
$(".for-popthai").hide();
$(".read-bt, .read-bt-accent").removeClass('translate');
var inpType = $('input.translate-type:checked').val();
if (inpType == 'translate') {
$("#longdo-latest, #contents-showup").show();
$("#contents-showup-popthai").hide();
$("#logo-ads").removeClass('popthai-mode');
$("#search").show();
$(".read-bt, .read-bt-accent").addClass('translate');
if(search_value != "" && !obj) {
window.location = "/search/" + escape(encodeURIComponent(search_value.replace(/\n\r?/g, ' ')));
return false;
} else {
$('#textboxPlaceholder').html(' ');
setRandomSearchBoxName();
}
} else {
$(".for-popthai").show();
$("#logo-ads").addClass('popthai-mode');
$("#longdo-latest, #contents-showup").hide();
$("#contents-showup-popthai").show();
var searchinput = $('#search');
value = search_value;
$('#textboxPlaceholder').html('');
setRandomSearchBoxName();
searchinput = document.getElementById('search');
searchinput.value = value;
searchinput.focus();
searchinput.select();
if(obj === undefined) {
checkLan(search_value, $(".translate-language").val() == "Auto");
}
}
$("#search").focus();
return true;
}
function checkLan(search_value, isChange) {
var langSelect = $(".translate-language");
if(isChange) {
if(/[-ヿ]/g.test(search_value)) {
langSelect.val('JP');
} else if(/[\u3400-\u9FBF]/g.test(search_value)) {
langSelect.val('ZH');
}
$(".is-auto-language").val('true');
} else {
$(".is-auto-language").val('false');
}
$(".search-bt").prop('disabled', true);
}
function isUrl(url) {
var pattern = /^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i
if(!pattern.test(url)) {
return false;
} else {
return true;
}
};
// logout
function longdoLogout() {
if(longdo_account) {
longdo_account.clearUserSession();
window.location.reload()
}
}
// -->
What is the purpose of Longdo Dict?
Online tools for building collaborative and open bilingual-Thai dictionaries
Search service for existing available dictionary contents
What can be searched here?
Longdo collaborative bilingual-Thai dictionaries (for example English - Thai, Japanese - Thai, German - Thai, French - Thai)
Freely available contents:
NECTEC Lexitron English/Thai dictionary, license of Lexitron is as following: English , Thai . Thank you NECTEC and Mr.Choke.
Hope Studio English-Thai dictionary, the contents is imported through KDictThai dictionary client program whose license is under GPL .
Nontri English-Thai dictionary, the contents is downloaded from ftp://ftp.cs.washington.edu/pub/thaisys/BBS . Thank you Mr.Doug Couper.
Saikam Japanese/Thai dictionary. Thank you Dr.Vuthichai Ampornaramveth.
EDICT and COMPDICT Japanese/English dictionaries developed by Prof. Jim Breen, see its license here .
JDDICT Japanese/German dictionary by Helmut Goldenstein.
CMU Pronouncing Dictionary from CMU
CC-CEDICT , a continuation of the CEDICT Chinese/English dictionary started by Paul Denisowski. See CC-CEDICT license and CEDICT license here .
Oxford Advanced Learners Dictionary (pronunciation guide) orginally at Oxford , data from the Debian's festlex-oald package
TU-Chemnitz Dictionary from Ding's program (https://dict.tu-chemnitz.de/ )
Tanaka JP-EN Sentences Corpus from https://www.csse.monash.edu.au/~jwb/tanakacorpus.html/
Volubilis Thai-French-Engilsh Dictionary Version 1.0 (June 2010) from https://belisan-volubilis.blogspot.com/
E-Lemma from https://www.slacorpus.com/wp/?p=53
Chinese characters dictionary from Make me a Hanzi project , BLCU Chinese Corpus , Chinese text computing
Various contents available for the DICT server. All contents are imported from its Debian packages with licenses as follows:
GCIDE , WordNet ,
Vera , freedict-deu-eng ,
freedict-eng-deu ,
freedict-jpn-deu ,
freedict-fra-eng ,
freedict-eng-fra ,
dict-de-en
ROYIN 2542 dictionary and ROYIN COINAGE dictionary linked from https://dictionary.orst.go.th and https://coined-word.orst.go.th
ThaiGlossary by NSTDA linked from https://thaiglossary.org under Creative Commons Attribution-Noncommercial 3.0 Thailand License
Longdo Dict uses Festival Text-to-Speech engine (see license ) with CMU's RMS ARCTIC (American male) and FestVox's RAB 16K (British male) voices to generate synthesized word pronunciations for CMU and Oxford dictionaries entries contents above and deliver them to browsers using the XSPF Web Music Player (see license ).
From your first purpose, how can the Longdo contents be collaboratively created?
Through this Longdo website via the contributor/approver mechanism. In short, if you see that Longdo is still
missing a certain content, you can contribute it through the Contributor Page.
The approver regulary browses the contributed entries, then approve (or reject) them. It's as easy as that.
Why should I contribute to Longdo?
Because the next person will not have to search for the meaning of a word again, instead learning from your contributed data.
The collaborative dictionary output (which includes your contributed data) will be available under Open Source license. So it should be fair for all contributors.
Thank you our sponsors
NII for server and network bandwidth (from the beginning in 2003 to October 2005).
Any more documents or publications about Longdo?
P. Kiatisevi, V. Ampornaramveth, A. Kovacs, H. Ueno, "Searching in the Longdo Thai Online Dictionary Service" , Proc. of the 4th International Conference on Information Technologies (InTech 2003), Chiang Mai, Thailand, December 17-19, 2003 (ISBN: 974-658-151-1)
Bangkok Biz News , Krungthep IT Sci-Tech section, on Nov 25, 2004, featured an article about Longdo
(view a local PDF copy here ).
Introduction to PopThai/Longdo
at knowmoretech.com (local copy )
An IT Life article in the
Siam Rath newspaper (local copy )
How can I contact Longdo team?
Via E-mail to webmaster at longdo.com. Welcome for all comments.
Longdo Crew
TODO List
XML or JSON web service output
Automatically find the normal from for search input in case of search not found
Something like "rate mal" in WaDoKu
Example of how to contribute
WWWboard forums for discussion about new words
When long word is not found, try search sub-word
Separation of each language section
Give point (ranking) to the results depending on the relevancy
ROGET Thesaurus (https://www.ai.mit.edu/people/wessler/thes)
Make it possible to set the language of contents/web and the dictionaries to use in PopThai
Entries priority, for specifying which entries should be shown first for the same headwords
บริการ ติดโพย (PopThai)
เป็นบริการเปิดพจนานุกรมอัตโนมัติ โดยผู้ใช้สามารถป้อนข้อความ ทีละประโยค หรือ เป็นหน้าเลยก็ได้ ไม่จำเป็นต้องทีละคำสองคำ
ระบบจะทำการแนบความหมายของคำหรือวลีภาษาต่างประเทศ
(ปัจจุบันสนับสนุน ภาษาอังกฤษ, ญี่ปุ่นและเยอรมัน )
ติดกับเนื้อหานั้นๆ และจะแสดงผลความหมายเมื่อเอาเมาส์ไปวางเหนือคำหนึ่งๆ
ช่วยให้สามารถเข้าใจเนื้อหาของเวบภาษาต่างประเทศได้สะดวกและรวดเร็วยิ่งขึ้น
ความหมายของคำจะปรากฏขึ้นมาเมื่อท่านเอาเมาส์ไปวางบนคำหรือวลีที่มีอยู่ในพจนานุกรม
โดยไม่จำเป็นต้องกดปุ่มใดๆ
ดังตัวอย่างในรูปข้างล่างนี้
คุณสมบัติ / Features
แสดงความหมายของคำโดยอัตโนมัติ เพียงวางเมาส์ไว้บนคำที่ต้องการทราบความหมาย
สนับสนุนเวบหลากภาษา (ปัจจุบัน ภาษาอังกฤษ ญี่ปุ่น และเยอรมัน)
ค้นหาความหมายจากพจนานุกรมหลายชุดพร้อมๆกัน ในฐานข้อมูลของ Longdo ได้แก่
Lexitron2, Hope, Nontri, Longdo อังกฤษ-ไทย, Longdo เยอรมัน-ไทย เป็นต้น
แสดงได้ทั้งความหมายของคำเดี่ยว และคำผสม ได้อย่างถูกต้อง
เช่น Secretary of State=รัฐมนตรีต่างประเทศของสหรัฐฯ (ในภาพตัวอย่าง),
High school=โรงเรียนมัธยมปลาย
แสดงความหมายของคำที่แปรรูปจากคำในพจนานุกรมได้ เช่น
เมื่อวางเมาส์ไว้บนคำว่า executed/abusing ซึ่งไม่มีในพจนานุกรม
เครื่องจะแสดงความหมายของคำว่า execute/abuse ให้โดยอัตโนมัติ
เรียกใช้งานได้ง่ายเพียงกดปุ่ม PopThai บน
Longdo Toolbar
เพื่อแนบความหมายหน้าจอที่เปิดชมอยู่ในขณะนั้น
แก้ไข Link ในหน้าที่แสดง เพื่อให้สามารถเปิดชม Link เหล่านั้นผ่านบริการ PopThai
ได้ทันทีเช่นเดียวกัน
สนับสนุนบราวเซอร์ชั้นนำทั่วไป เช่น Internet Explorer, Firefox, Chrome, Safari, Konqueror, etc.
แสดง Link ให้ผู้ใช้ช่วยป้อนความหมายสำหรับคำที่ยังไม่มีอยู่ในพจนานุกรม
ใหม่: บริการ Vocabulary แสดงสรุปรายการคำศัพท์พร้อมความหมาย สำหรับพิมพ์ออกมาอ่านได้สะดวก
วิธีใช้งาน ให้เลือกตรงตัวเลือกบริการด้านบน ให้เป็น Vocabulary แทน PopThai. (PopThai ในโหมดปกติ จะเหมาะกับการใช้งาน on-line
หน้าจอคอมพิวเตอร็ ส่วนบริการ Vocabulary เหมาะสำหรับท่านที่ต้องการพิมพ์รายการคำศัพท์และความหมายออกมาบนกระดาษไว้อ่าน off-line)
ใหม่: บริการ Pronunciation Guide แสดงคำอ่านของคำใน เว็บ หรือ text ที่ป้อนให้ ข้างบนคำนั้นๆ, นอกเหนือไป
จากการแสดง pop-up ความหมาย. วิธีใช้งาน ให้เลือกตรงตัวเลือกบริการด้านบน ให้เป็น Pronunciation.
ขณะนี้ใช้ได้กับภาษาอังกฤษ (แสดงคำอ่านภาษาอังกฤษ) และภาษาญี่ปุ่น (แสดง hiragana เหนือคันจิ). บริการนี้
ใช้ extension ของ browser ที่ชื่อ Ruby ปัจจุบันมีแค่ IE browser ที่สนับสนุน ถ้าเป็น browser อื่นๆ จะเห็นคำอ่านปรากฎในวงเล็บแทน
วิธีใช้
ท่านสามารถป้อนเนื้อหาหรือ URL ของเว็บไซต์ที่ต้องการให้แนบความหมายนี้ ในช่องใส่ข้อความค้นหาปกติ
หลังจากนั้นเลือกบริการที่ต้องการ (เช่น ถ้าป้อนข้อความ ให้เลือก PopThai (text) ถ้าป้อน URL ให้เลือก PopThai (URL)) ถ้าท่านไม่เลือกบริการ
ระบบจะเดาบริการที่ท่านต้องการ จากข้อความที่ท่านใส่เข้ามา (ว่าเป็นข้อความหรือเป็น URL) โดยอัตโนมัติ,
จากนั้นกด Submit เป็นอันเสร็จ
ในกรณีที่ท่านใส่ URL ระบบจะไปทำการดาวน์โหลดเนื้อหาของหน้านั้นๆ มาและแนบความหมาย พร้อมแก้ไขลิงค์ต่างๆ ให้เป็นผ่านบริการ PopThai เ
พื่อที่ว่าเมื่อท่านกดที่ลิงค์ใดๆ ต่อไปจากเพจนั้นๆ ก็จะมีการแนบความหมายมาให้ด้วยในทันที
เพื่อเพิ่มความสะดวกในการใช้ท่านสามารถใช้ PopThai ผ่าน Longdo Toolbar โดยเมื่อท่านเปิดดูเว็บไซต์ใดๆ อยู่ตามปกติ และต้องการใช้บริการ PopThai สำหรับ
หน้านั้นๆ สามารถทำได้ทันที โดยคลิกที่ปุ่ม PopThai บน Toolbar รายละเอียดเพิ่มเติมโปรดอ่านที่ Longdo Toolbar
คำเตือน ในกรณีของ URL นี้ ถึงแม้ทางผู้ดูแลระบบลองดูจะได้ทำการทดสอบกับหลายเว็บไซต์
แล้วก็ตาม ยังมีบางเว็บไซต์ที่ข้อมูลเวลาที่ระบบไปโหลดมาจะแตกต่างจากที่ท่านเปิดดูโดยใช้ browser โดยตรง โปรดระวังด้วย และไม่ควรใช้กับหน้าเว็บไซต์ที่
ต้องการความถูกต้องสูง)
Problems & TODO
inflected word support (German)
support HTTP POST
other foreign language support (Japanese, French)