Skip to main content

A Roman encoding module for Indian languages

Project description

RevCode

A Roman encoding and mapping module for Indian languages.

Languages Supported

Language ISO Code
Hindi hi
Punjabi pa
Gujarati gu
Marathi mr
Kannada kn
Telugu te
Tamil ta
Malayalam ml
Oriya or
Assamese as
Bengali bn

Installation

From PyPI:
pip install revcode

From source tar.gz bundle:
pip install revcode-2.0.tar.gz

Example Usage

1. Convert text to RevCode

from revcode import revcode_conversion as rc

text = 'नमस्ते'
print(rc.to_revcode(text, 'hi'))  # language as ISO-2 code

text = 'ನಮಸ್ಕಾರ'
print(rc.to_revcode(text, 'kannada'))  # langauge as full name

text = 'నమస్కారం'
print(rc.to_revcode(text, 'te'))

Output

namastE
namaskAra
namaskArx

2. Convert text from RevCode

Note: Converting from non-RevCode text will give inappropriate results

from revcode import revcode_conversion as rc

text = 'namastE'
print(rc.from_revcode(text, 'hindi'))

text = 'namaskAra'
print(rc.from_revcode(text, 'kn'))

text = 'namaskArx'
print(rc.from_revcode(text, 'telugu'))

Output

नमस्ते
ನಮಸ್ಕಾರ
నమస్కారం

RevCode Reference Table

RevCode Unicode-Hindi Hindi Unicode-Punjabi Punjabi Unicode-Gujarati Gujarati Unicode-Marathi Marathi Unicode-Kannada Kannada Unicode-Telugu Telugu Unicode-Tamil Tamil Unicode-Malayalam Malayalam Unicode-Oriya Oriya Unicode-Assamese Assamese Unicode-Bengali Bengali
M 0x901 0xA01 0xA81 0x901 0xC81 - 0xC01 0xB81 - 0x0D01 - 0x0B01 0x981 0x981
x 0x902 0xA02 0xA82 0x902 0xC82 0xC02 0xB82 0x0D02 0x0B02 0x982 0x982
X 0x903 0xA03 0xA83 0x903 0xC83 0xC03 0xB83 0x0D03 0x0B03 0x983 0x983
a 0x905 0xA05 0xA85 0x905 0xC85 0xC05 0xB85 0x0D05 0x0B05 0x985 0x985
A 0x906 0xA06 0xA86 0x906 0xC86 0xC06 0xB86 0x0D06 0x0B06 0x986 0x986
i 0x907 0xA07 0xA87 0x907 0xC87 0xC07 0xB87 0x0D07 0x0B07 0x987 0x987
I 0x908 0xA08 0xA88 0x908 0xC88 0xC08 0xB88 0x0D08 0x0B08 0x988 0x988
u 0x909 0xA09 0xA89 0x909 0xC89 0xC09 0xB89 0x0D09 0x0B09 0x989 0x989
U 0x90A 0xA0A 0xA8A 0x90A 0xC8A 0xC0A 0xB8A 0x0D0A 0x0B0A 0x98A 0x98A
WR 0x90B 0xA0B - 0xA8B 0x90B 0xC8B 0xC0B 0xB8B - 0x0D0B 0x0B0B 0x98B 0x98B
WD 0x90C 0xA0C - 0xA8C 0x90C 0xC8C - 0xC0C - 0xB8C - 0x0B0C - 0x98C - 0x98C -
WA 0x90D 0xA0D - 0xA8D 0x90D 0xC8D - 0xC0D - 0xB8D - - 0x0B0D - 0x98D - 0x98D -
e 0x90E - 0xA0E - 0xA8E 0x90E 0xC8E 0xC0E 0xB8E 0x0D0E 0x0B0E - 0x98E - 0x98E -
E 0x90F 0xA0F 0xA8F 0x90F 0xC8F 0xC0F 0xB8F 0x0D0F 0x0B0F 0x98F 0x98F
YE 0x910 0xA10 0xA90 0x910 0xC90 0xC10 0xB90 0x0D10 0x0B10 0x990 0x990
WO 0x911 0xA11 0xA91 0x911 0xC91 - 0xC11 - 0xB91 - - 0x0B11 - 0x991 - 0x991 -
o 0x912 - 0xA12 0xA92 0x912 0xC92 0xC12 0xB92 0x0D12 0x0B12 - 0x992 - 0x992 -
O 0x913 0xA13 0xA93 0x913 0xC93 0xC13 0xB93 0x0D13 0x0B13 0x993 0x993
YO 0x914 0xA14 0xA94 0x914 0xC94 0xC14 0xB94 ஒள 0x0D14 0x0B14 0x994 0x994
k 0x915 0xA15 0xA95 0x915 0xC95 0xC15 0xB95 0x0D15 0x0B15 0x995 0x995
K 0x916 0xA16 0xA96 0x916 0xC96 0xC16 0xB96 - 0x0D16 0x0B16 0x996 0x996
g 0x917 0xA17 0xA97 0x917 0xC97 0xC17 0xB97 - 0x0D17 0x0B17 0x997 0x997
G 0x918 0xA18 0xA98 0x918 0xC98 0xC18 0xB98 - 0x0D18 0x0B18 0x998 0x998
z 0x919 0xA19 0xA99 0x919 0xC99 0xC19 0xB99 0x0D19 0x0B19 0x999 0x999
c 0x91A 0xA1A 0xA9A 0x91A 0xC9A 0xC1A 0xB9A 0x0D1A 0x0B1A 0x99A 0x99A
C 0x91B 0xA1B 0xA9B 0x91B 0xC9B 0xC1B 0xB9B - 0x0D1B 0x0B1B 0x99B 0x99B
j 0x91C 0xA1C 0xA9C 0x91C 0xC9C 0xC1C 0xB9C 0x0D1C 0x0B1C 0x99C 0x99C
J 0x91D 0xA1D 0xA9D 0x91D 0xC9D 0xC1D 0xB9D - 0x0D1D 0x0B1D 0x99D 0x99D
Z 0x91E 0xA1E 0xA9E 0x91E 0xC9E 0xC1E 0xB9E 0x0D1E 0x0B1E 0x99E 0x99E
T 0x91F 0xA1F 0xA9F 0x91F 0xC9F 0xC1F 0xB9F 0x0D1F 0x0B1F 0x99F 0x99F
HT 0x920 0xA20 0xAA0 0x920 0xCA0 0xC20 0xBA0 - 0x0D20 0x0B20 0x9A0 0x9A0
D 0x921 0xA21 0xAA1 0x921 0xCA1 0xC21 0xBA1 - 0x0D21 0x0B21 0x9A1 0x9A1
HD 0x922 0xA22 0xAA2 0x922 0xCA2 0xC22 0xBA2 - 0x0D22 0x0B22 0x9A2 0x9A2
N 0x923 0xA23 0xAA3 0x923 0xCA3 0xC23 0xBA3 0x0D23 0x0B23 0x9A3 0x9A3
t 0x924 0xA24 0xAA4 0x924 0xCA4 0xC24 0xBA4 0x0D24 0x0B24 0x9A4 0x9A4
Ht 0x925 0xA25 0xAA5 0x925 0xCA5 0xC25 0xBA5 - 0x0D25 0x0B25 0x9A5 0x9A5
d 0x926 0xA26 0xAA6 0x926 0xCA6 0xC26 0xBA6 - 0x0D26 0x0B26 0x9A6 0x9A6
Hd 0x927 0xA27 0xAA7 0x927 0xCA7 0xC27 0xBA7 - 0x0D27 0x0B27 0x9A7 0x9A7
n 0x928 0xA28 0xAA8 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 0x9B7
s 0x938 0xA38 0xAB8 0x938 0xCB8 0xC38 0xBB8 0x0D38 0x0B38 0x9B8 0x9B8
h 0x939 0xA39 0xAB9 0x939 0xCB9 0xC39 0xBB9 0x0D39 0x0B39 0x9B9 0x9B9
0x93C 0xA3C 0xABC 0x93C 0xCBC - 0xC3C 0xBBC 0x0B3C 0x9BC 0x9BC
0x93D 0xA3D 0xABD 0x93D 0xCBD 0xC3D 0xBBD 0x0B3D - 0x9BD - 0x9BD -
A 0x93E 0xA3E 0xABE 0x93E 0xCBE 0xC3E 0xBBE 0x0D3E 0x0B3E 0x9BE 0x9BE
i 0x93F ि 0xA3F ਿ 0xABF િ 0x93F ि 0xCBF ಿ 0xC3F ి 0xBBF ி 0x0D3F ി 0x0B3F ି 0x9BF ি 0x9BF ি
I 0x940 0xA40 0xAC0 0x940 0xCC0 0xC40 0xBC0 0x0D40 0x0B40 0x9C0 0x9C0
u 0x941 0xA41 0xAC1 0x941 0xCC1 0xC41 0xBC1 0x0D41 0x0B41 0x9C1 0x9C1
U 0x942 0xA42 0xAC2 0x942 0xCC2 0xC42 0xBC2 0x0D42 0x0B42 0x9C2 0x9C2
WR 0x943 0xA43 0xAC3 0x943 0xCC3 0xC43 0xBC3 - 0x0D7C ര്‍ 0x0B43 0x9C3 0x9C3
WA 0x945 0xA45 0xAC4 0x945 0xCC5 - 0xC45 - 0xBC5 - 0x0B45 - 0x9C5 - 0x9C5 -
e 0x946 0xA46 0xAC5 0x946 0xCC6 0xC46 0xBC6 OD46 0x0B46 - 0x9C6 - 0x9C6 -
E 0x947 0xA47 0xAC7 0x947 0xCC7 0xC47 0xBC7 OD47 0x0B47 0x9C7 0x9C7
YE 0x948 0xA48 0xAC8 0x948 0xCC8 0xC48 0xBC8 0x0B48 0x9C8 0x9C8
WO 0x949 0xA49 0x949 0xCC9 - 0xC49 - 0xBC9 - 0x0B49 - 0x9C9 - 0x9C9 -
o 0x94A 0xA4A 0xAC9 0x94A 0xCCA 0xC4A 0xBCA 0x0D4A 0x0B4A - 0x2019 0x2019
O 0x94B 0xA4B 0xACB 0x94B 0xCCB 0xC4B 0xBCB 0x0D4B 0x0B4B 0x9CB 0x9CB
YO 0x94C 0xA4C 0xACC 0x94C 0xCCC 0xC4C 0xBCC 0x0B4C 0x9CC 0x9CC
q 0x94D 0xA4D 0xACD 0x94D 0xCCD 0xC4D 0xBCD 0x0B4D 0x9CD 0x9CD
Fk 0x958 0xA58 - 0x958 0xCD8 - 0xC58 0xBD8 0x0D7F ൿ 0x0B58 - 0x9D8 - 0x9D8 -
FK 0x959 0xA59 0x959 0xCD9 - 0xC59 0xBD9 0x0B59 - 0x9D9 - 0x9D9 -
Fg 0x95A 0xA5A 0x95A 0xCDA - 0xC5A 0xBDA 0x0B5A - 0x9DA - 0x9DA -
Fj 0x95B 0xA5B 0x95B 0xCDB - 0xC5B - 0xBDB 0x0B5B - 0x9DB - 0x9DB -
Fd 0x95C 0xA5C 0x95C 0xCDC - 0xC5C - 0xBDC 0x0B5C 0x9DC 0x9DC
HR 0x95D 0xA5D 0x95D 0xCDD - 0xC5D - 0xBDD 0x0D43 0x0B5D 0x9DD 0x9DD
FP 0x95E 0xA5E 0x95E 0xCDE 0xC5E - 0xBDE 0x0B5E - 0x9DE - 0x9DE -
Fy 0x95F 0xA5F - 0x95F 0xCDF - 0xC5F - 0xBDF 0x0B2F 0x9DF 0x9DF
YN 0x970 0xA70 0x0D7A ണ്‍ - -
HH 0x971 0xA71 - -
Yt 0x9CE
Yn 0x0D7B ന്‍
Yl 0x093D 0x0D7D ല്‍
YL 0x0952 0x0D7E ള്‍
Yr 0x0960

Project details


Download files

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

Source Distribution

revcode-3.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

revcode-3-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file revcode-3.tar.gz.

File metadata

  • Download URL: revcode-3.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for revcode-3.tar.gz
Algorithm Hash digest
SHA256 b22456ef4233ec8727c3f10c62f7c2049980f6cf3a0900daeef0a705e9fafb2c
MD5 366d1b05939ac92748e87283e432dc02
BLAKE2b-256 a2e34d711fb741b40922f816bbb26309f3f6abea2c1f834b79a2ce07ae11c5b5

See more details on using hashes here.

File details

Details for the file revcode-3-py3-none-any.whl.

File metadata

  • Download URL: revcode-3-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for revcode-3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b0c171d6e943b9fff345f30375f2bff738254d4b147525bde03ccb3f369fe97
MD5 915692f430f769662045b2960bc2120f
BLAKE2b-256 4eb17fb78cf3b3e1fa89aebc0c02ec219c15958c245bd2f69518d79543fb6598

See more details on using hashes here.

Supported by

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