thai-language.comInternet resource
for the Thai language
Lookup:
» more options here
Browse

F.A.Q. Check out the list of frequently asked questions for a quick answer to your inquiry

e-mail the author
guestbook
site settings
site news
bulk lookup
Bangkok
Thanks for your

recent donations!

Narisa N. $+++!
John A. $+++!
Paul S. $100!
Mike A. $100!
Eric B. $100!
John Karl L. $100!
Don S. $100!
John S. $100!
Peter B. $100!
Ingo B $50
Peter d C $50
Hans G $50
Alan M. $50
Rod S. $50
Wolfgang W. $50
Bill O. $70
Ravinder S. $20
Chris S. $15
Jose D-C $20
Steven P. $20
Daniel W. $75
Rudolf M. $30
David R. $50
Judith W. $50
Roger C. $50
Steve D. $50
Sean F. $50
Paul G. B. $50
xsinventory $20
Nigel A. $15
Michael B. $20
Otto S. $20
Damien G. $12
Simon G. $5
Lindsay D. $25
David S. $25
Laurent L. $40
Peter van G. $10
Graham S. $10
Peter N. $30
James A. $10
Dmitry I. $10
Edward R. $50
Roderick S. $30
Mason S. $5
Henning E. $20
John F. $20
Daniel F. $10
Armand H. $20
Daniel S. $20
James McD. $20
Shane McC. $10
Roberto P. $50
Derrell P. $20
Trevor O. $30
Patrick H. $25
Rick @SS $15
Gene H. $10
Aye A. M. $33
S. Cummings $25
Will F. $20
Get e-mail

Sign-up to join our mail­ing list. You'll receive e­mail notification when this site is updated. Your privacy is guaran­teed; this list is not sold, shared, or used for any other purpose. Click here for more infor­mation.

To unsubscribe, click here.

The RID fetcher

Browser/website issues and working with Thai sound and video clips

Moderator: acloudmovingby

The RID fetcher

Postby Tonkhla » Sun May 11, 2014 5:48 am

I spent some free time coding a basic program which fetches a word's definitions from the RID online. They are almost identical, but the good thing is that you can easily copy the URL of the result and post it, which can't be done with the current program of the RID.

There is one major bug due to some technical issue about encoding. In some entries whose text contains a dash, for example the ราชบัณฑิต entry, the result could be incomplete. In those cases I recommend you use the original RID online.

There is no other known problem. If you find one, feel free to inform :)

The program can be reached at http://rid.tongla.in.th.

(Technicality Alert)
The program is coded in PHP and uses cURL to fetch the information. The problem is that the RID uses TIS-620 encoding but many of its entries contain a dash which is not part of the encoding, so DOMDocument has difficulty converting it to UTF-8.

I can also put the source code on GitHub if anyone's interested.
Last edited by Tonkhla on Sun May 11, 2014 8:59 am, edited 1 time in total.
เป็นคนไทยครับ :D
Tonkhla
 
Posts: 103
Joined: Tue Apr 30, 2013 3:07 pm

Re: The RID fetcher

Postby David and Bui » Sun May 11, 2014 6:00 am

Very nice, ต้นกล้า. I see that your "fetcher" does wild card searches, like the RID online does. You can do a wild card search by adding a * anywhere in the look-up field. Thus, looking up "มาก*" produced results: มาก, มากมาย, มากมายก่ายกอง, มากหน้าหลายตา, and มากหมอมากความ as well as their definitions.

Well done!
David in Houston
David and Bui
 
Posts: 6232
Joined: Sat May 14, 2005 12:00 am
Location: Houston, Texas


Return to Browsers, Web Sites, Web Authoring, Multimedia

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright © 2024 thai-language.com. Portions copyright © by original authors, rights reserved, used by permission; Portions 17 USC §107.