\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()
}
}
// -->
Search Tips
Abbreviation Explanation
Pronunciation Guide
Search tips
You can input the search time in Thai, English, German, and Japanese .
You can use '*' for wild-card-match, e.g, 'cat*' means
ALL ENTRIES that begin with cat . '*cat*' means
ALL ENTRIES that have 'cat' inside.
Service explanation:
Auto-select: Longdo will gutomatically guess the service you want to use from your input (i.e., check if it is a word or a URL, if word then
the dictionary service is selected, if URL then PopThai will be selected.
Dictionary: basic word look up service from various dictionaries
PopThai: attach a pop-up window showing word meaning to the given text or the web contents of the given URL, the pop-up window will be shown when you move a mouse over a word
Vocabulary: show a list of vocabularies found in the given text or web URL and their meanings
Pronunciation: show the pronunciation information of each word in the given text or web URL above each word (only IE browser supports this "Ruby" extension)
For Japanese words, you can input both in Kanji, Hiragana, or even romaji. Try input
'oishii' or
'doraemon' .
For German words, if you can't input umlaut-characters or esset, you can enter
ae, oe, ue, and ss instead. Try Strasse, Muenchen .
Abbreviation Explanation
English Language
noun: คำนาม
verb (trans): transitive verb สกรรมกริยา
verb (intrans): intransitive verb อกรรมกริยา
adj.: adjective คำคุณศัพท์
adv.: adverb: คำวิเศษณ์
prep.: preposition คำบุพบท
conj.: conjunction คำสันธาน
phrase: วลี
jargon: ศัพท์เทคนิค
colloqial: ภาษาพูด
slang: ภาษาพูด สำหรับคนบางกลุ่ม, ภาษาตลาด, คำมีความหมายซ่อนเร้น
vulgar: คำหยาบคาย
abbreviation/acronym: อักษรย่อ
name: ชื่อคน
organization: ชื่อหน่วยงาน
unique name: ชื่อเฉพาะ
German Language
etw.: etwas บางสิ่ง
jmd.: jemand บางคน สรรพนามบุรุษที่ 3
jmdn.: jemanden บางคน สรรพนามบุรุษที่ 3 ในรูปของกรรมตรง
jmdm.: jemandem บางคน สรรพนามบุรุษที่ 3 ในรูปของ Dativ
pl.: Plural พหูพจน์
A: Akkusativ กรรมตรง
D: Dativ กรรมรอง
G: Genetiv ประเภทของคำที่มีการแสดงความเป็นเจ้าของ
gespr.: gesprochen oder Umgangssprache ภาษาพูด
Adj: Adjektiv คำหรือส่วนขยายนาม
Adv: Adverb คำหรือส่วนขยายกิริยา
techn.: technisch (Fachwort) คำศัพท์ทางเทคนิค
Abk.: Abkürzung คำย่อ
Präp.: Präposition บุพบท
Konj.: Konjunktion คำเชื่อมประโยค
Sg.: Singular คำนามเอกพจน์
Artikel: คำนำหน้านาม
Pron.: Pronomen สรรพนาม
Rel.pron.: Relativ Pronomen เป็นสรรพนามสำหรับวลีที่เชื่อมกับประโยคหลัก
Ind-pron.: Indefinitpronomen คำสรรพนามที่ไม่จำเพาะ
Dem.pron. Demonstrativpronomen คำสรรพนามที่บ่งชี้เฉพาะว่าเป็นสิ่งนั้นเท่านั้น
French Language
qc: quelque chose สิ่งใดสิ่งหนึ่ง
qn: quelqu'un คนใดคนหนึ่ง
v/pr: verbe pronominal กริยาที่กระทำต่อตนเอง
Pronunciation guide
The tables blow show a comparision of phonemes symbols used in IPA, Oxford OALD dictionary, and Arpabet CMU dictionary, with examples.
The number 0, 1, 2 that appended to each phoneme means the stress level : 0 or blank = No stress, 1 = Primary Stress, 2 = Secondary Stress.
Vowels
IPA Oxford Arpabet (CMU) Examples
æ a AE a t, ca t, ba d
aː aa AA R ca rt, ca lm, fa ther
au au AW co w, ho w, fou nd
aɪ ai AY hi de, my , pri ce
e or ɛ e EH E d, be d, ne t
ə @ AH (schwa) a bout, a way, comma
ɜːʴ @@ ER hu rt, nu rse, he r
ɛɪ ei EY da te, fa te, da y
ɪ i IH i t, si t, bi t
iː ii IY ea t, mee t, see
ɒ o AA o dd, ho t, wa sh
ɔː oo AO po rt, ou ght, fou r
ɔɪ oi OY to y, bo y, choi ce
ou ou OW no , go at, sho w
u u UH boo k, pu t, hoo d
ʌ uh AH hu t, cu p, fu n
uː uu UW two , boo t, ru le
ɛəʴ e@ (r) EH (R) where , hair , air
ɪəʴ i@ (r) IH (R) near , here , pier
uəʴ u@ (r) UH (R) pure , tour ist, sure
Consonants
IPA Oxford CMU Examples
b b B b e
tʃ ch CH ch eese, ch ip, ch in
d d D d og
ð dh DH th en, th is, th ee
f f F f ee
g g G g reen
h h HH h e
ʤ jh JH j am, j udge, large
j y Y y et, u se, y ellow
k k K k ey
l l L l ee
m m M m e
n n N kn ee, n ow, n ot
ŋ ng NG sing , ring , long
p p P p ee
r r R r ead
s s S s ea
ʃ sh SH sh e, sh ip, sh ow
t t T t ea
θ th TH th in, th ick, th ink
v v V v ee
w w W w e
z z Z z ee, z oo
ʒ zh ZH pleas ure, vis ion, seiz ure
Reference:
Arpabet
The sounds of English and the International Phonetic Alphabet
บริการ ติดโพย (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)