Created
May 19, 2020 15:05
-
-
Save eddieantonio/274dda6f2926b9afe6ffcad77d453706 to your computer and use it in GitHub Desktop.
Create a syllabics chart for Plains Cree (nêhiyawêwin) (ᓀᐦᐃᔭᐤ ᒐᐦᑭᐯᐦᐃᑲᓇ)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
from cree_sro_syllabics import sro2syllabics | |
consonants = 'ptkcmnsy' | |
finals = ('h', 'hk', 'r', 'l', 'w') | |
vowels_circumflex = 'êioaîôâ' | |
vowels_macron = 'ēioaīōā' | |
def final(consonant): | |
return sro2syllabics('a' + consonant)[-1] | |
for c in ('', *consonants): | |
for w in ('', 'w'): | |
syllabics = [] | |
for v in vowels_circumflex: | |
syllable = c + w + v | |
syllabic = sro2syllabics(syllable) | |
if 'ᐣ' in syllabic: | |
continue | |
syllabics.append(syllabic) | |
print(*syllabics, final(c)) | |
print(*(final(c) for c in finals)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment