add transliteration of the vedic stresses

This commit is contained in:
Vlasta Vesely 2021-12-28 21:43:49 +01:00
parent cd8ef0a12b
commit 6f8417f964
No known key found for this signature in database
GPG key ID: EB0E649DC0DFCC22
2 changed files with 6 additions and 0 deletions

View file

@ -49,6 +49,9 @@ START_TEST(test_translit_vedic)
/* rigveda 3.5.2 */ /* rigveda 3.5.2 */
test_translit("पूर्वीर्ऋतस्य", "pūrvīr"ZWNJ"ṛtasya"); test_translit("पूर्वीर्ऋतस्य", "pūrvīr"ZWNJ"ṛtasya");
/* vedic stresses */
test_translit("अ॒ग्निमी॑ळे पु॒रोहि॑तं", "a\\_gnimī\\'ḷe pu\\_rohi\\'taṃ");
} }
END_TEST END_TEST

View file

@ -103,6 +103,9 @@ static struct translit_letter table[] = {
{0x0965, CODA, "||"}, /* double danda */ {0x0965, CODA, "||"}, /* double danda */
{0x0964, CODA, "|"}, /* danda */ {0x0964, CODA, "|"}, /* danda */
{0x0951, CODA, "\\'"}, /* svarita */
{0x0952, CODA, "\\_"} /* anudatta */
}; };
static struct translit_letter *letter_by_code(unsigned int c) static struct translit_letter *letter_by_code(unsigned int c)