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

Web plugin fails to convert from IAST to indic scripts #271

Open
amoghpj opened this issue Jun 11, 2024 · 0 comments
Open

Web plugin fails to convert from IAST to indic scripts #271

amoghpj opened this issue Jun 11, 2024 · 0 comments

Comments

@amoghpj
Copy link

amoghpj commented Jun 11, 2024

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

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

No branches or pull requests

1 participant