Transliterating Plains Cree writing systems
MIT License
A JavaScript library for transliterating between Cree language writing systems.
NOTE: A more robust Cree transliterator, which handles morphophonology and provides options for other writing conventions, is the eddieantonio/cree-sro-syllabics library.
Install with npm or yarn:
npm install cree-transliterator
yarn add cree-transliterator
The library exports two functions:
sro2syllabics
: convert Standard Roman Orthography (SRO) text to Western Cree Syllabicssyllabics2sro
: convert Western Cree Syllabics to Standard Roman Orthography (SRO)Import the function into your code and run it on the string you'd like to convert:
import { sro2syllabics } from '@dwhieb/cree-transliterator';
const sro = `k-mci-pkiskwtikot hi oskya -nhiyawyit. mka namya nisitohtaww awa oskiniks tnisi -itwyit ta wsta -nhiyawt.`;
const result = sro2syllabics(sro);
console.log(result);
// Output:
//
Found an issue or want to request a feature? Open an issue!
Consonant | i | o | a | Final | ||||
---|---|---|---|---|---|---|---|---|
N/A | N/A | |||||||
w | ||||||||
p | ||||||||
t | ||||||||
k | ||||||||
c | ||||||||
m | ||||||||
n | ||||||||
s | ||||||||
y | 1 () | |||||||
th / | ||||||||
h | ||||||||
hk |
SRO | Syllabary |
---|---|
l | |
r | |
. | |
w | |
- | U+202F |
WesternSwampy | SouthernPlains | NorthernPlains | WoodsSRO | WoodsCMRO |
---|---|---|---|---|
a | a | a | a | u |
| | | | a
c | c | c | c | ch | | () | () | (e) h | h | h | h | h i | i | i | i | i | | | | e k | k | k | k | k m | m | m | m | m n | n | n | n | n o | o | o | o | o | | | | oo p | p | p | p | p s | s | s | s | s t | t | t | t | t w | w | w | w | w y | y | y | y | y | | | th | th
npm test
.