Skip to content

Transliterating Plains Cree writing systems

License

Notifications You must be signed in to change notification settings

dwhieb/Cree-transliterator

Repository files navigation

Cree Transliterator

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.

GitHub release (latest by date) tests status GitHub issues license

Usage

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 Syllabics
  • syllabics2sro: 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!

Syllabary

Consonant i î ê o ô a â Final
N/A N/A
w
p
t
k
c
m
n
s
y 1 (ᐝ)
th / ð
h
hk

Other Symbols

SRO Syllabary
l
r
.
w
- U+202F

SRO Varieties

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

Keyboards

Developer Notes

Footnotes

  1. Cree writers overwhelmingly prefer using this character, U+1429 CANADIAN SYLLABICS FINAL PLUS ⟨ᐩ⟩, to U+1540 CANADIAN SYLLABICS WEST-CREE Y ⟨ᕀ⟩.