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

Support native Tamil digits in Ezhil #204

Open
arcturusannamalai opened this issue Sep 28, 2017 · 4 comments
Open

Support native Tamil digits in Ezhil #204

arcturusannamalai opened this issue Sep 28, 2017 · 4 comments

Comments

@arcturusannamalai
Copy link
Collaborator

சில நேரங்களில் தமிழ் எண் குறியீடுகளை கொண்டு உணரும் நிரல் எழில் வழி செய்யலாம்.

தமிழ் எண் இலக்குகள் இங்கே:

௧ ௨ ௩ ௪ ௫ ௬ ௭ ௮ ௯ ௰ ௱ ௲
1 2 3 4 5 6 7 8 9 10 100 1000

__ அணுகுமுறை __
இதற்கு வெறும் lexer / lexical analyzer அளவில் மட்டுமே மாற்றங்கள் செய்தல் வேண்டும்.

__ பயன் __
பொதுவாக சொல்லவரும் எண்கள் 1000-இக்கும் உட்பட்டவை என்பதால் இந்த குறியீடை பிடித்தவர்கள் பயன்படுத்தலாம்.

@msathia
Copy link
Collaborator

msathia commented Sep 28, 2017

Can I try to implement this? one question the 1 here in Tamil is it in a special unicode space of the same as க?

@arcturusannamalai
Copy link
Collaborator Author

Sathia :
Thanks for offering; you can take a stab at it! Unicode for Tamil numeral 1 is different from agaram க.
The relevant files are
ezhil/scanner.py
ezhil/ezhil_scanner.py

You should just create a NUMERIC token from the scanner, then everything else should follow.

@CICDSimplified
Copy link

௧ ௨ ௩ ௪ ௫ ௬ ௭ ௮ ௯ ௰ ௱ ௲ These are not actual tamil digits. They are sanskrit digits. ௧ comes from yegam, ௨ for dua, ௫ is the fifth letter in sanskrit alphabets and so on. The original tamizh digits are ஒ இ மு நா ஐ அ ஏ எ தொ அல், please refer to https://en.wikipedia.org/wiki/Tamil_numerals

@arcturusannamalai
Copy link
Collaborator Author

Thanks for information @CICDSimplified.

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

No branches or pull requests

3 participants