Skip to content

Latest commit

 

History

History
82 lines (60 loc) · 2.18 KB

README.md

File metadata and controls

82 lines (60 loc) · 2.18 KB

Nepali Unicode Converter

A tool to convert Romanized text to corresponding Nepali unicode.

Installation

pip install nepali-unicode-converter

Usage

from nepali_unicode_converter.convert import Converter

converter = Converter()
mystring = 'ke chha hajura?'

print(converter.convert(mystring))  ## Output: 'के छ हजुर?'

Mapping Table

Basic vowels

Roman Unicode Roman Unicode
a oo
aa Ri
ee Ree
i e
u ai
o

Basic Akaars

Roman Unicode Roman Unicode Roman Unicode
ka Ta pa
kha Tha pha
ga Da fa
gha Dha ba
Nga Na bha
NGa ङ्ग ta va
cha tha ma
chha da ya
ja dha ra
jha na la
yNa pa sha
wa sa Sha
ha ksha क्ष tra त्र
gya ज्ञ gYa ग्य

Halantas

Just omit the 'a' at the end.

Kaar and other suffixes

Roman Unicode
kaa का
ki कि
kee की
ku कु
koo कू
ke के
kai कै
ko को
kau कौ
kaM कं
kaNN कँ
ka: क:
mRI मृ

Numbers

There is a natural mapping.

TODO

  • Make it more intelligent.