Romanize - Transliteration module to romanize greek, hebrew, arabic, coptic, syriaic, phoenician, finnish, and sanskrit letters to the single roman letter equivalents and back
Project description
# Romanize 3
Python 3 transliteration module to romanize several different ancient scripts to roman letter equivalents and back.
Supported scripts are:
- greek (grc)
- aramaic (arm)
- syriaic (syc)
- arabic (ara)
- phoenician (phn)
- brahmi (brh)
- coptic (cop)
- hebrew (heb)
## install
`pip install romanize3`
## Usage
Transliterate syriaic script back and forth:
```python
import romanize3
r = romanize3.__dict__['syc']
print(r.convert("ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ")) # output: LDILE ATA WDILE LA QBLWEI
print(r.convert("LDILE ATA WDILE LA QBLWEI")) # output: ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ
```
Filter phoenician alphabet from the given text:
```python
r = romanize3.__dict__['phn']
s = """𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍
I, Tabnit, priest of Astarte, king of Sidon, the son
𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆
of Eshmunazar, priest of Astarte, king of Sidon, am lying in this sarcophagus."""
print(r.filter(s))
```
Output:
```text
𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍
𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆
```
Python 3 transliteration module to romanize several different ancient scripts to roman letter equivalents and back.
Supported scripts are:
- greek (grc)
- aramaic (arm)
- syriaic (syc)
- arabic (ara)
- phoenician (phn)
- brahmi (brh)
- coptic (cop)
- hebrew (heb)
## install
`pip install romanize3`
## Usage
Transliterate syriaic script back and forth:
```python
import romanize3
r = romanize3.__dict__['syc']
print(r.convert("ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ")) # output: LDILE ATA WDILE LA QBLWEI
print(r.convert("LDILE ATA WDILE LA QBLWEI")) # output: ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ
```
Filter phoenician alphabet from the given text:
```python
r = romanize3.__dict__['phn']
s = """𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍
I, Tabnit, priest of Astarte, king of Sidon, the son
𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆
of Eshmunazar, priest of Astarte, king of Sidon, am lying in this sarcophagus."""
print(r.filter(s))
```
Output:
```text
𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍
𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
romanize3-0.1.14.tar.gz
(11.6 kB
view details)
File details
Details for the file romanize3-0.1.14.tar.gz
.
File metadata
- Download URL: romanize3-0.1.14.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2379181faa5066a4b0c6f5a357b6d6ed1caa9b3028d0dcb5c0ac40e123accac5 |
|
MD5 | 73fa8ac3cf1544d52d36b7ea5a980cfe |
|
BLAKE2b-256 | a192472d120f19ce0ffb2599ff8fde658913c952723c2ee908a5fb904aa86f54 |