Skip to content
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

is_zawgyi detection in python doesn't work even for small strings #20

Open
khzaw opened this issue Aug 5, 2015 · 4 comments
Open

is_zawgyi detection in python doesn't work even for small strings #20

khzaw opened this issue Aug 5, 2015 · 4 comments

Comments

@khzaw
Copy link
Collaborator

khzaw commented Aug 5, 2015

The generated is_zawgyi detection code doesn't work, at least in python. Haven't tried with other languages.

Probably not due to the detection rules. My guess is in the generated source code. I will try to submit a PR if I could get down to the bottom of this.

မံုရြာျမိဳ႕    => returns False
မ​ေကြးတိုင္​း ဆင္​​ေပါင္​ဝဲၿမိဳ႕ သည္​ ဧရာဝတီ ျမစ္​ကမ္​းပါး​ေဘးတြင္​ တည္​႐ွိ​ေသာၿမိဳ႕ျဖစ္​ပါတယ္​ အထက္စစ္​ကိုင္​းဘက္​ ​ေရမ်ား စီးဆင္းလာရာမွာ ဆင္​​ေပါင္​ဝဲၿမိဳ႕ မိ​ေက်ာင္​းရဲၿမိဳ႕တို႔မွာ ​ေရ​ေဘးအႏၱာရယ္​မွာ ​ေန႔စဥ္​ႏွင္​့အမွ် ဆိုးတထက္​ တိုးရြားလာပါတယ္​
အထက္​ထံသို႔ အကူအညီ​ေတာင္​းခံထား​ေသာ္​လဲ ယခုလက္​႐ွိ အိမ္​မ်ားတစ္​ဝက္​​ေက်ာ္​ ျမဳပ္​​ေနသည္​အထိ မည္​သည္​့ ကယ္​ဆယ္​​ေရးမွ မ​ေရာက္​႐ွိ​ေသး​ေၾကာင္​း သိရပါတယ္​ 
​ေက်းဇူးျပဳ၍ ကယ္​ဆယ္​​ေရး အဖြဲ႔မ်ားအား သြား​ေရာက္​ကူညီ​ေစလိုပါတယ္​    => False
@trhura
Copy link
Owner

trhura commented Aug 6, 2015

I vaguely remember it depending upon the python version, when I tested it. Which python version are you using?

@khzaw
Copy link
Collaborator Author

khzaw commented Aug 6, 2015

@trhura I am on python2, 2.7.10

@hanteng
Copy link

hanteng commented May 31, 2016

@khzaw @trhura I ran is_zawgyi on python 3 and I use @khzaw two texts above. Both outcomes return True value. Python 3.5.0rc2

@trhura
Copy link
Owner

trhura commented Jun 4, 2016

Not much coding these days. Career change. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants