-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Bug with Arabic language. #7
Comments
https://github.com/willin/hexo-wordcount/blob/master/index.js#L11-L12 currently it can only counts chinese/english words. notice that L11: var cn = content.match(/[\u4E00-\u9FA5]/g) || []; means chinese words unicode range. you can change it into arabic language range. |
@willin but Russian words counting too. They also have another unicode instead of Chinese, isn't it? Oooh, i see. U added filter in function and only CN and EN will work with your latest plugin version? |
yes. yes. |
Ok, i got it. Bad. Very bad and sad. Need to do for international support, not only for some countries. |
as you wish, i will support asap |
@ivan-nginx do me a favor
is it 44 words ( 212 chars )? ckeditor wordcount: http://w8tcha.github.io/CKEditor-WordCount-Plugin/ |
@willin i don't know Arabic language, it seems like something about 40 words, yep. But not 10 words anyway, u agree? RU/EN/CN have LTR language direction, instead of Arabic language, wich have RTL direction. I added RTL direction feature in last pull (PART 4) before release 5.1.2 NexT version. BTW, your wordcount plugin was integrated in NexT (PART 3) by me too, so, i don't understand why u try to isolate plugin in CN/EN language filters. NexT support many languages, Hexo support i18n. And your integrated plugin already translated in NexT, but u adding filter only on some languages. I think, this is not right to great coding. And i believe on your correction about freedom of choice. |
i see i will try to look deep into this issue before weekend |
try beta version Count Wordscountwords(post.content) Count Charscountchars(post.content) |
So, bug with RTL language counting.
The text was updated successfully, but these errors were encountered: