Skip to main content

Roman text to unicode converter

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nepali_unicode_converter-1.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file nepali_unicode_converter-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: nepali_unicode_converter-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for nepali_unicode_converter-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9cb546cdeef58cbab9de6533e9b86501b7b7188518046bb78a85e134ef98469c
MD5 4a5448b3d688c40acd32037165046dde
BLAKE2b-256 0b4def867b19faa3b570451f6365a28f99a46362f4aff9f508fa85482238e557

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page