ambuda-org / ambuda

Main application code for Ambuda, a breakthrough Sanskrit library (ambuda.org)
https://ambuda.org
MIT License
90 stars 24 forks source link

Indices get formatted oddly for larger fonts #7

Closed skmnktl closed 2 years ago

skmnktl commented 2 years ago

Mahabharata → 1st anuvaka → 3rd verse, toggle between deva and on iPad

akprasad commented 2 years ago

Can't reproduce -- please share a specific URL and let me know what specifically looks odd. And what do you mean by "toggle between deva and on iPad" ?

One issue I know of is that if you transliterate from devanagari -> roman -> devanagari again, the . character becomes a danda, which is strange. The root cause here is that transliteration is sometimes lossy, but our transliteration code uses the most recent (potentially lossy) version instead of the original "source of truth." This also prevents us from easily supporting Bengali script. I think once that's fixed, the problem I mention will also go away. I hope that's the problem you mean too.

skmnktl commented 2 years ago

image

It's not an issue of correctness. It just looks a bit buggy/ugly.

akprasad commented 2 years ago

Ah, I think this is a text width issue. The gray line above Click on words to see what they mean. shows the with of this text content. So the options are to either (1) make the text area wider or (2) make the body text smaller.

While I think about which I like better, do you have a preference?

akprasad commented 2 years ago

Closing for now since we have a text size option, which means users can now resize text and avoid this issue.