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

Issue in kn/kn-kgp.js #511

Open
MayuraVerma opened this issue Apr 6, 2018 · 0 comments
Open

Issue in kn/kn-kgp.js #511

MayuraVerma opened this issue Apr 6, 2018 · 0 comments

Comments

@MayuraVerma
Copy link

Keys f and F is wrongly implemented.
'f':
1st occurrence of 'f' should output '\u0CCD' (halant).
2nd occurrence of 'f' should output '\u200C' zero width non-joiner only when it is preceded by a '\u0CCD' (halant).
'F': should output '\u200D\u0CCD' only if it preceded by the letter 'ರ'.

In Kannada:
Zero width non-joiner: '\u200C' is used after only 'u0CCD'.
Zero width joiner: '\u200D' is used only in between ([ರ]಼) and 'u0CCD'.
These two invisible characters are not used anywhere else and should not be outputted anywhere.

Correct code:
[ '([ಕ-ಹೞ]಼?)f', '$1್' ],
[ '([ಕ-ಹೞ]಼?\u0CCD)f', '$1\u200C' ], // 0x200C Zero width non-joiner
[ '([ರ]಼?)F', '$1\u200D\u0CCD' ], // 0x200D Zero width joiner

Original code:
[ '([ಕ-ಹೞ]಼?\u200D)f', '$1್' ],
[ '(\u200D)F', '\u200C' ], // 0x200C Zero width non-joiner
[ 'F', '\u200D' ], // 0x200D Zero width joiner

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

No branches or pull requests

1 participant