Convert between Plains Cree SRO and syllabics
Project description
[![Build Status](https://travis-ci.org/eddieantonio/crk_orthography.svg?branch=master)](https://travis-ci.org/eddieantonio/crk_orthography) [![Documentation Status](https://readthedocs.org/projects/crk-orthography/badge/?version=stable)](https://crk-orthography.readthedocs.io/en/stable/?badge=stable) [![PyPI package](https://img.shields.io/pypi/v/crk_orthography.svg)](https://pypi.org/project/crk_orthography/) [![Calver MAJOR.YYYY0M0D.PATCH](https://img.shields.io/badge/calver-MAJOR.YYYY0M0D.PATCH-22bfda.svg)](http://calver.org/)
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][documentation]! Wondering about words like “syllabics”, “transliterator”, or “orthography”? Visit [the glossary][glossary]!
[documentation]: https://crk-orthography.readthedocs.io/en/stable/ [glossary]: https://crk-orthography.readthedocs.io/en/stable/glossary.html
### 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
[nêhiyawêwin syllabics](https://github.com/UAlbertaALTLab/nehiyawewin-syllabics)
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.20180906.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d8ba8195359d10f67dc6b7dd003f5ebb82b4e111f6e93db249236ed894e3c6 |
|
MD5 | 3c8adafe2f597279f2bfebff2fb40c30 |
|
BLAKE2b-256 | 8275b631cb410763a824d2db0a2d499b5e7f495f70645996d642107e412e37f2 |
Hashes for crk_orthography-0.20180906.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2145dcea36122d3b1195120e2b7622ee05e9e77e53e4f4adcfdf7d050167ac5b |
|
MD5 | c82557a42aa9509fd2d19756e0bbc587 |
|
BLAKE2b-256 | d870b2488c932a63ecf58202c3a99de7172c3d5407961dab4beadd4020efc9e8 |