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

Add Tamil transliteration option #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

epicfaace
Copy link
Contributor

No description provided.

@epicfaace epicfaace marked this pull request as ready for review August 10, 2022 03:20
@akprasad
Copy link
Contributor

This is difficult for two reasons:

  1. The Tamil script loses a lot of information. More research needs to be done on the preferences of Tamil speakers reading in Tamil script: numeric subscripts, Grantha, etc.

  2. See Add transliteration support for Bengali #12 for a technical problem related to Bengali, Tamil, and other scripts that lack a 1:1 mapping to Devanagari.

@epicfaace
Copy link
Contributor Author

epicfaace commented Aug 10, 2022

We might be able to use tamil_superscripted to keep that information. However, I do know that some Tamil speakers do prefer to use the regular Tamil script (even though it loses information) to read Sanskrit -- what exactly is the issue with losing information with a different script?

@epicfaace
Copy link
Contributor Author

We might be able to use tamil_superscripted to keep that information. However, I do know that some Tamil speakers do prefer to use the regular Tamil script (even though it loses information) to read Sanskrit -- what exactly is the issue with losing information with a different script?

Oh I see -- if someone transliterates in a loop. In that case, should we perhaps keep hold of the original Devanagari in memory and always transliterate from that? (which would solve the loop problem)

@akprasad
Copy link
Contributor

akprasad commented Aug 10, 2022

We might be able to use tamil_superscripted to keep that information. However, I do know that some Tamil speakers do prefer to use the regular Tamil script (even though it loses information) to read Sanskrit -- what exactly is the issue with losing information with a different script?

Oh I see -- if someone transliterates in a loop. In that case, should we perhaps keep hold of the original Devanagari in memory and always transliterate from that? (which would solve the loop problem)

Somewhat, but consider the following interaction:

  1. User opens a page in Devanagari.
  2. JS records the original Devanagari.
  3. User transliterates to Bengali.
  4. User clicks on a word, which shows the पदच्छेद view.
  5. User transliterates to Tamil.

This in an edge case, of course -- I mean to illustrate only that it's not quite as simple as storing a snapshot.

I think the proper long-term fix is to have a JS app that can intelligently transliterate while retaining interaction state without losing information, but that's a big project and a lot of complexity for a minor feature. I think there needs to be much more impetus for moving to Vue, etc. before we take the plunge.

Or, an alternative that came up on Discord is to just do all of this on the backend since client-side transliteration is not especially useful to most.

See here and below.

@epicfaace
Copy link
Contributor Author

Ok, closing this for now! Thanks for the pointer to the Discord discussion.

@epicfaace epicfaace closed this Aug 11, 2022
@akprasad akprasad reopened this Dec 1, 2022
@akprasad
Copy link
Contributor

akprasad commented Dec 1, 2022

Whoops, went a little fast and thought this was an issue. See #431.

We're thinking about using the server-side Aksharamukha library to transliterate. @epicfaace are you interested in working on this?

@epicfaace
Copy link
Contributor Author

Ah, yes, sure.

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

Successfully merging this pull request may close these issues.

2 participants