Convert between Plains Cree SRO and syllabics
Project description
Plains Cree Orthography
Python 3 library and command line programs to convert between nêhiyawêwin/ᓀᐦᐃᔭᐍᐏᐣ (Plains Cree Y-dialect) standard Roman Orthography (SRO) to syllabics and back again!
Install
pip install crk-orthography
Usage
Visit the full documentation here! Wondering about words like "syllabics", "transliterator", or "orthography"? Visit the glossary!
As a Python module
Convert SRO to syllabics:
>>> from crk_orthography import sro2syllabics
>>> sro2syllabics('nêhiyawêwin')
'ᓀᐦᔭᐍᐏᐣ'
>>> sro2syllabics('write nêhiyawêwin')
'write ᓀᐦᐃᔭᐍᐏᐣ'
Convert syllabics to SRO:
>>> from crk_orthography import syllabics2sro
>>> syllabics2sro('ᐊᒋᒧᓯᐢ')
'acimosis'
>>> syllabics2sro(' → ᒪᐢᑫᑯᓯᕽ ᑎᕒᐁᕀᓬ ')
' → maskêkosihk tireyl '
On the command line
crk_orthography
installs two command line programs:
sro2syllabics
Use this to convert text from a file or from stdin
to syllabics.
$ echo "minôs" | sro2syllabics
ᒥᓅᐢ
$ sro2syllabics my-file-in-sro.txt
ᒥᓅᐢ
For more information over its options, type:
sro2syllabics --help
syllabics2sro
Use this to convert text from a file or from stdin
to SRO.
$ echo "ᒥᓅᐢ" | syllabics2sro
minôs
$ syllabics2sro my-file-in-syllabics.txt
minôs
$ syllabics2sro --macrons my-file-in-syllabics.txt
minōs
For more information over its options, type:
syllabics2sro --help
See also
License
Copyright (C) 2018 Eddie Antonio Santos
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
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
Built Distribution
Hashes for crk_orthography-0.20181010.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0872771d11b98f64b412101d5c6815e38cc9ea9cc6854b0b534236f654b3b475 |
|
MD5 | dcc27109905c0f7df5fefea64920c141 |
|
BLAKE2b-256 | ebdb73cfb1f4a0338220a45692cd15879d71a0910a936ceda8a95e6de7db0e7c |
Hashes for crk_orthography-0.20181010.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2da4a923e52fc3a0e9d2758fbdf7918a651aefbef8c2fd25be6320154d6d98b |
|
MD5 | 6ca3848a79e5aa3cc1da7b7d0cba363d |
|
BLAKE2b-256 | 341bc2028490cb3ccd55a25a1ba4462ccfefa375196a24c868f6c32c5349bcbc |