Python 3 library to convert between Western Cree standard Roman Orthography (SRO) to syllabics and back again!
Can be used for:
- nêhiyawêwin/ᓀᐦᐃᔭᐍᐏᐣ/Cree Y-dialect
- nīhithawīwin/ᓃᐦᐃᖬᐑᐏᐣ/Cree Th-dialect
- nēhinawēwin/ᓀᐦᐃᓇᐍᐏᐣ/Cree N-dialect
Using pip
:
pip install cree-sro-syllabics
Or, you can copy-paste or download cree_sro_syllabics.py
into
your own Python 3 project!
Visit the full documentation here! Wondering about words like "syllabics", "transliterator", or "orthography"? Visit the glossary!
Convert SRO to syllabics:
>>> from cree_sro_syllabics import sro2syllabics
>>> sro2syllabics('nêhiyawêwin')
'ᓀᐦᔭᐍᐏᐣ'
>>> sro2syllabics('write nêhiyawêwin')
'write ᓀᐦᐃᔭᐍᐏᐣ'
Convert syllabics to SRO:
>>> from cree_sro_syllabics import syllabics2sro
>>> syllabics2sro('ᐊᒋᒧᓯᐢ')
'acimosis'
>>> syllabics2sro(' → ᒪᐢᑫᑯᓯᕽ ᑎᕒᐁᐩᓬ ')
' → maskêkosihk tireyl '
Copyright © 2018–2021 National Research Council Canada.
Licensed under the MIT license.