aksharamukha
aksharamukha copied to clipboard
Web plugin fails to convert from IAST to indic scripts
Hi Vinodh, Thanks for this great tool. I am running into issues rendering from IAST to any other script. The sample text works perfectly using the website converter, but fails with the plugin.
Input:
nārāyaṇaṃ namaskṛtya naraṃ caiva narottamam. devīṃ sarasvatīṃ caiva tato jayam udīrayet.
Output from converter:
नारायणं नमस्कृत्य नरं चैव नरोत्तमम्। देवीं सरस्वतीं चैव ततो जयम् उदीरयेत्।
The converter autodetects input (correctly) as Roman (IAST).
However, using the webplugin with the following MWE:
<!DOCTYPE html>
<html>
<body>
<div id="sloka">
nārāyaṇaṃ namaskṛtya naraṃ caiva narottamam. devīṃ sarasvatīṃ caiva tato jayam udīrayet.
</div>
<script src="https://cdn.jsdelivr.net/gh/virtualvinodh/aksharamukha/aksharamukha-web-plugin/aksharamukha-v3.js"></script>
</body>
Selecting IAST should leave the text unchanged, however the text is rendered as "anārāyaṇaṃ namasakṛtaya naraṃ caiva narŏtatamama. adĕvīṃ sarasavatīṃ caiva tatŏ jayama udīrayĕta. a a"
Selecting Devanagari or Kannada, it fails completely, and simply renders the character "[". Moreover, there is no error in the console.
Tested on Firefox 113.0.2 and Chrome 127.0.6167.139.
Please let me know if I can provide any more information. Again, thank you for this great set of tools, I hope to start using it in various projects soon!
Cheers, Amogh