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

Accents in slp1 not converted - sanscript #33

Closed
drdhaval2785 opened this issue Dec 24, 2019 · 8 comments
Closed

Accents in slp1 not converted - sanscript #33

drdhaval2785 opened this issue Dec 24, 2019 · 8 comments

Comments

@drdhaval2785
Copy link

drdhaval2785 commented Dec 24, 2019

Udatta, anudatta and svarita are encoded as "/", "\" and "^" respectively.

Currently package is not transliterating them to their proper accent marks as far as I know.
I tried to convert sA/raTi from slp1 to devanagari. It gave सा/रथि.
It should be showing सा॑रथि.

@drdhaval2785
Copy link
Author

@vvasuki any idea how to implement this accent thing? I am feeling the handicap in case of Vedic texts / dictionaries conversion.

@vvasuki
Copy link
Member

vvasuki commented Jan 21, 2020

I am unsure what symbol you refer to by svarita (unicode folks have screwed up there, and the mark you call udAtta actually seems to be svarita). :-)

Idea would be to add the symbols to DevanagariScheme.symbols , copy it to every other scheme (roman or brAhmic), except for slp1 where you put the transliterations. Then add a test and make sure it works fine.

@gasyoun
Copy link

gasyoun commented Mar 25, 2021

mark you call udAtta actually seems to be svarita

@drdhaval2785 where do we go from here?

@drdhaval2785
Copy link
Author

I am not sure about the structure of the code, so did not make changes suggested by @vvasuki .

@vvasuki
Copy link
Member

vvasuki commented Mar 25, 2021

Add "/", "" and "^" to a line after https://github.com/sanskrit-coders/indic_transliteration/blob/59ba0431caf5aff430eccb6d5f4b08d2da619882/indic_transliteration/sanscript/schemes/roman.py#L306 . Then in corresponding definitions of other schemes, add the corresponding svara-symbols (or devanAgarI equivalents if they're not defined.)

@drdhaval2785
Copy link
Author

Thanks. Will give it a shot.

@vvasuki
Copy link
Member

vvasuki commented Jul 18, 2021

ऋग्वेदं दृष्ट्वा सार॑थिः इति प्रकृतिस्वरविन्यासो ज्ञायते। एवन्तर्हि SLP इत्यस्मिन् ‌/ इत्य् उदात्तस्यैव चिह्नं स्यात्। तथा सति, देवनागर्यां ꣡ इति चिह्नम् उचितम् ( https://groups.google.com/g/sanskrit-programmers/c/x_K7MZi5oKI इत्यत्रोक्तया रीत्या )। तदनुसारेण "/" इति चिह्नं निक्षिप्तम् अधुना। अन्ययोर् अर्थज्ञानाभावे न निवेशने चेष्टे। परिपूर्णसूचनायां लब्धायां सूत्रम् इदम् पुनर् उद्घाट्यताम्।

@vvasuki vvasuki closed this as completed Jul 18, 2021
@vvasuki
Copy link
Member

vvasuki commented Jul 18, 2021

( indic-transliteration/common_maps@1d32d19 इति परिवर्तितम्। )

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

3 participants