Skip to content

Instantly share code, notes, and snippets.

@eddieantonio
Created May 19, 2020 15:05
Show Gist options
  • Save eddieantonio/274dda6f2926b9afe6ffcad77d453706 to your computer and use it in GitHub Desktop.
Save eddieantonio/274dda6f2926b9afe6ffcad77d453706 to your computer and use it in GitHub Desktop.
Create a syllabics chart for Plains Cree (nêhiyawêwin) (ᓀᐦᐃᔭᐤ ᒐᐦᑭᐯᐦᐃᑲᓇ)
#!/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