Skip to content

bewakes/nepali-unicode-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Roman text to Unicode converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages