Skip to content

Commit 6f2ce33

Browse files
committed
sd
1 parent e802b16 commit 6f2ce33

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

indic_transliteration/sanscript/brahmic_mapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def _brahmic(data, scheme_map, **kw):
1515
data = brahmic.GurmukhiScheme.replace_addak(text=data)
1616
elif scheme_map.from_scheme.name == brahmic.BENGALI:
1717
data = brahmic.BengaliScheme.replace_khanda(text=data)
18+
elif scheme_map.from_scheme.name == brahmic.TELUGU:
19+
data = brahmic.TeluguScheme.replace_n(text=data)
20+
elif scheme_map.from_scheme.name == brahmic.KANNADA:
21+
data = brahmic.KannadaScheme.replace_n(text=data)
1822
elif scheme_map.from_scheme.name == brahmic.TAMIL_SUB:
1923
data = brahmic.TamilScheme.move_before_maatraa_subscripts(text=data)
2024
elif scheme_map.from_scheme.name == brahmic.TAMIL_SUP:

indic_transliteration/sanscript/schemes/brahmic/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,21 @@ def replace_khanda(cls, text):
262262
return text
263263

264264

265+
class TeluguScheme(BrahmicScheme):
266+
@classmethod
267+
def replace_n(cls, text):
268+
text = regex.sub("ౝ", "న్", text)
269+
return text
270+
271+
272+
class KannadaScheme(BrahmicScheme):
273+
@classmethod
274+
def replace_n(cls, text):
275+
text = regex.sub("ೝ", "ನ್", text)
276+
text = regex.sub("೜", "श्री", text)
277+
return text
278+
279+
265280
class GurmukhiScheme(BrahmicScheme):
266281

267282
@classmethod

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# Versions should comply with PEP440. For a discussion on single-sourcing
4545
# the version across setup.py and the project code, see
4646
# https://packaging.python.org/en/latest/single_source_version.html
47-
version='2.3.75',
47+
version='2.3.76',
4848

4949

5050
description='Transliteration tools to convert text in one indic script encoding to another',

0 commit comments

Comments
 (0)