Skip to content

Commit 99a97bc

Browse files
committed
sd
1 parent 9482151 commit 99a97bc

File tree

1 file changed

+2
-1
lines changed
  • indic_transliteration/sanscript/schemes/brahmic

1 file changed

+2
-1
lines changed

indic_transliteration/sanscript/schemes/brahmic/accent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ def to_US_accents(text, scheme=None, UDATTA = "꣡", SVARITA_NEW = "᳕", pauses
9494
# symbol definitions
9595
SANNATARA = "॒"
9696
SVARITA = "॑"
97-
if not any(x in text for x in [SVARITA, SANNATARA]):
97+
if not any(x in text for x in [SVARITA, SANNATARA, "᳚", "᳛"]):
9898
# Avoid inserting udattas from the beginning on an invalid (already converted input)
9999
return text
100+
text = regex.sub("[᳚᳛]", SVARITA, text)
100101
if scheme == None:
101102
from indic_transliteration import sanscript
102103
scheme = sanscript.SCHEMES[sanscript.DEVANAGARI]

0 commit comments

Comments
 (0)