Closed deepestblue closed 8 months ago
. (wrong issue)
Thanks for filing this issue. I think this is important to support, though I notice that this behavior is not implemented by Aksharamukha or indic_transliteration, so feel free to file issues against those projects as well.
I will probably model this as a default-true flag that the user can disable if so desired.
@deepestblue I have some local code that passes your test suite for converting to and from Grantha numbers.
Some questions:
100
, ௱
, and க00
all used.Good questions :-)
BTW, https://omniglot.com/language/numbers/malayalam.htm seems to suggest Malayalam numbers are similar, but https://en.wikipedia.org/wiki/Malayalam_numerals says that's an archaic mechanism, and the new one is a simple place-value system. Not sure ...
I've completed my local setup and will close this issue when the code is complete. For the record:
Pushed and deployed to our online demo.
Looks good to me! All my tests pass :-)
Grantha numbers (and Tamil numbers) aren't a place value system, and are instead representations of the Tamil words for the number. vidyut-lipi doesn't seem to have logic for that.
Transliterate
३२४५
from Devanagari to Grantha.Expected: ௩௲௨௱௪௰௫ Actual: ३२४५
You can find many more test cases in https://github.com/deepestblue/saulabhyaJS/blob/main/test/saulabhya.test.js#L147