https://github.com/dwhieb/cree-transliterator
Transliterating Plains Cree writing systems
https://github.com/dwhieb/cree-transliterator
cree plains-cree syllabary transliteration writing-systems
Last synced: 29 days ago
JSON representation
Transliterating Plains Cree writing systems
- Host: GitHub
- URL: https://github.com/dwhieb/cree-transliterator
- Owner: dwhieb
- License: mit
- Created: 2020-07-20T22:31:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T01:46:37.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T08:25:49.551Z (about 1 month ago)
- Topics: cree, plains-cree, syllabary, transliteration, writing-systems
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# 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](https://github.com/eddieantonio/cree-sro-syllabics.js#readme) library.
[][releases]
[][status]
[][issues]
[][license]## Usage
Install with npm or yarn:
```cmd
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:
```js
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!][issues]
## 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
* http://www.languagegeek.com/algon/syllabics_keyboards/cr_oj_oc_na.html
## Developer Notes
* Run tests with `npm test`.
* This library uses the [Digital Linguistics transliteration library][dlx-transliterate].## Footnotes
1.
Cree writers overwhelmingly prefer using this character, U+1429 CANADIAN SYLLABICS FINAL PLUS ⟨ᐩ⟩, to U+1540 CANADIAN SYLLABICS WEST-CREE Y ⟨ᕀ⟩.
[dlx-transliterate]: https://developer.digitallinguistics.io/transliterate/
[issues]: https://github.com/dwhieb/Plains-Cree/issues
[license]: https://github.com/dwhieb/Cree-transliterator/blob/main/LICENSE
[releases]: https://github.com/dwhieb/Cree-transliterator/releases
[status]: https://github.com/dwhieb/Cree-transliterator/actions