shreevatsa / sanskrit

Tool(s) to help read Sanskrit (and other) metrical verse
https://sanskritmetres.appspot.com
GNU General Public License v2.0
72 stars 14 forks source link

Detect transliteration on whole input, not individual lines #44

Open shreevatsa opened 10 years ago

shreevatsa commented 10 years ago

An issue previously alluded to in #8 , cropping up again. As the transliteration convention of each line is detected independently, some ITRANS lines without any distinctive ITRANS characters can get detected as HK, screwing up the metre (e.g. "sh" is two consonants in HK and one in ITRANS).

Previously dealt with "Sh" as a special case and can do the same with "sh" (does स्ह occur in Sanskrit?), but should probably switch to detecting the whole input at once.

gasyoun commented 10 years ago

What practical need for every line to be treated separately?

shreevatsa commented 10 years ago

None at all... It's just the way it was coded initially. Will fix.

gasyoun commented 9 years ago

Fixed?