-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working for Thai #67
Comments
You are right, Thai seems not supported. I'll add this in caveats section. Meanwhile, do you know any open source script which can transliterate Thai into Latin? |
Sorry, don't know anything better. I search from time for something RTGS capable. This is how I came across yours, just to discover it being broken as well. |
@stephankn I found one, it's not accurate but kind of working: https://github.com/comdevx/thai2karaoke const { thai2karaoke: thai } = require('thai2karaoke')();
const res = {
status() {
return this;
},
json(res) {
console.log(res.data);
}
}
let result = thai({ body: { text: 'เชียงใหม่' } }, res);
console.log(result); Below are some links about the rules to transliterate Thai using RTGS: I'm not quite familiar with Thai, if any one can help coding the conversion rules, I can merge it into this module. |
Another service for testing transliteration |
Meanwhile I found this one to work quite well for Thai: https://pypi.org/project/tltk/ |
Saw this thread is quite old, but just hit this issue as I'm currently relying on this library for other languages and just onboarded Thai. I'm wondering if there has been any progress made here, and also if anyone knows of any alternative libraries that support Node.js. Thank you! |
Completely broken for Thai.
Try เชียงใหม่
Should be Chiang Mai. Official scheme for Thai is RTGS.
Your transliteration looks as broken as ICU.
The text was updated successfully, but these errors were encountered: