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â-mâci-pîkiskwâtikot ôhi oskâya ê-nêhiyawêyit. mâka namôya nisitohtawêw awa oskinikîs tânisi ê-itwêyit âta wîsta ê-nêhiyawêt.`;
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 |
Western Swampy |
Southern Plains |
Northern Plains |
Woods SRO |
Woods CMRO |
---|---|---|---|---|
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 |
- Run tests with
npm test
. - This library uses the Digital Linguistics transliteration library.
-
Cree writers overwhelmingly prefer using this character, U+1429 CANADIAN SYLLABICS FINAL PLUS ⟨ᐩ⟩, to U+1540 CANADIAN SYLLABICS WEST-CREE Y ⟨ᕀ⟩.