Last active
November 24, 2021 09:54
-
-
Save eddieantonio/e1856e1d24f3cadc9d956646aa2d811c to your computer and use it in GitHub Desktop.
Get nêhiyawêwin (Plains Cree) syllabics working in XeLaTeX!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% crksyllabics.sty -- use ᓀᐦᐃᔭᐍᐏᐣ in XeLaTeX | |
% | |
% Defines font fallbacks for all Plains Cree syllabics. | |
% | |
% Uses Euphemia UCAS as the fallback font. | |
% | |
% Usage: | |
% | |
% 1. place this file in the same folder as your .tex file (upload to same folder in Overleaf) | |
% 2. Add the following line near the top of your .tex file: | |
% | |
% \usepackage{crksyllabics.tex} | |
% | |
% 3. Write syllabics directly in your .tex file: | |
% | |
% I am writing ᓀᐦᐃᔭᐍᐏᐣ in \LaTeX. | |
% | |
\usepackage{newunicodechar} | |
\newfontfamily{\fallbackfont}{Euphemia UCAS} | |
\DeclareTextFontCommand{\textfallback}{\fallbackfont} | |
\newunicodechar{ᐁ}{\textfallback{ᐁ}} | |
\newunicodechar{ᐃ}{\textfallback{ᐃ}} | |
\newunicodechar{ᐄ}{\textfallback{ᐄ}} | |
\newunicodechar{ᐅ}{\textfallback{ᐅ}} | |
\newunicodechar{ᐆ}{\textfallback{ᐆ}} | |
\newunicodechar{ᐊ}{\textfallback{ᐊ}} | |
\newunicodechar{ᐋ}{\textfallback{ᐋ}} | |
\newunicodechar{ᐍ}{\textfallback{ᐍ}} | |
\newunicodechar{ᐏ}{\textfallback{ᐏ}} | |
\newunicodechar{ᐑ}{\textfallback{ᐑ}} | |
\newunicodechar{ᐓ}{\textfallback{ᐓ}} | |
\newunicodechar{ᐕ}{\textfallback{ᐕ}} | |
\newunicodechar{ᐘ}{\textfallback{ᐘ}} | |
\newunicodechar{ᐚ}{\textfallback{ᐚ}} | |
\newunicodechar{ᐟ}{\textfallback{ᐟ}} | |
\newunicodechar{ᐠ}{\textfallback{ᐠ}} | |
\newunicodechar{ᐢ}{\textfallback{ᐢ}} | |
\newunicodechar{ᐣ}{\textfallback{ᐣ}} | |
\newunicodechar{ᐤ}{\textfallback{ᐤ}} | |
\newunicodechar{ᐦ}{\textfallback{ᐦ}} | |
\newunicodechar{ᐨ}{\textfallback{ᐨ}} | |
\newunicodechar{ᐯ}{\textfallback{ᐯ}} | |
\newunicodechar{ᐱ}{\textfallback{ᐱ}} | |
\newunicodechar{ᐲ}{\textfallback{ᐲ}} | |
\newunicodechar{ᐳ}{\textfallback{ᐳ}} | |
\newunicodechar{ᐴ}{\textfallback{ᐴ}} | |
\newunicodechar{ᐸ}{\textfallback{ᐸ}} | |
\newunicodechar{ᐹ}{\textfallback{ᐹ}} | |
\newunicodechar{ᐻ}{\textfallback{ᐻ}} | |
\newunicodechar{ᐽ}{\textfallback{ᐽ}} | |
\newunicodechar{ᐿ}{\textfallback{ᐿ}} | |
\newunicodechar{ᑁ}{\textfallback{ᑁ}} | |
\newunicodechar{ᑃ}{\textfallback{ᑃ}} | |
\newunicodechar{ᑅ}{\textfallback{ᑅ}} | |
\newunicodechar{ᑇ}{\textfallback{ᑇ}} | |
\newunicodechar{ᑊ}{\textfallback{ᑊ}} | |
\newunicodechar{ᑌ}{\textfallback{ᑌ}} | |
\newunicodechar{ᑎ}{\textfallback{ᑎ}} | |
\newunicodechar{ᑏ}{\textfallback{ᑏ}} | |
\newunicodechar{ᑐ}{\textfallback{ᑐ}} | |
\newunicodechar{ᑑ}{\textfallback{ᑑ}} | |
\newunicodechar{ᑕ}{\textfallback{ᑕ}} | |
\newunicodechar{ᑖ}{\textfallback{ᑖ}} | |
\newunicodechar{ᑘ}{\textfallback{ᑘ}} | |
\newunicodechar{ᑚ}{\textfallback{ᑚ}} | |
\newunicodechar{ᑜ}{\textfallback{ᑜ}} | |
\newunicodechar{ᑞ}{\textfallback{ᑞ}} | |
\newunicodechar{ᑠ}{\textfallback{ᑠ}} | |
\newunicodechar{ᑢ}{\textfallback{ᑢ}} | |
\newunicodechar{ᑤ}{\textfallback{ᑤ}} | |
\newunicodechar{ᑫ}{\textfallback{ᑫ}} | |
\newunicodechar{ᑭ}{\textfallback{ᑭ}} | |
\newunicodechar{ᑮ}{\textfallback{ᑮ}} | |
\newunicodechar{ᑯ}{\textfallback{ᑯ}} | |
\newunicodechar{ᑰ}{\textfallback{ᑰ}} | |
\newunicodechar{ᑲ}{\textfallback{ᑲ}} | |
\newunicodechar{ᑳ}{\textfallback{ᑳ}} | |
\newunicodechar{ᑵ}{\textfallback{ᑵ}} | |
\newunicodechar{ᑷ}{\textfallback{ᑷ}} | |
\newunicodechar{ᑹ}{\textfallback{ᑹ}} | |
\newunicodechar{ᑻ}{\textfallback{ᑻ}} | |
\newunicodechar{ᑽ}{\textfallback{ᑽ}} | |
\newunicodechar{ᑿ}{\textfallback{ᑿ}} | |
\newunicodechar{ᒁ}{\textfallback{ᒁ}} | |
\newunicodechar{ᒉ}{\textfallback{ᒉ}} | |
\newunicodechar{ᒋ}{\textfallback{ᒋ}} | |
\newunicodechar{ᒌ}{\textfallback{ᒌ}} | |
\newunicodechar{ᒍ}{\textfallback{ᒍ}} | |
\newunicodechar{ᒎ}{\textfallback{ᒎ}} | |
\newunicodechar{ᒐ}{\textfallback{ᒐ}} | |
\newunicodechar{ᒑ}{\textfallback{ᒑ}} | |
\newunicodechar{ᒓ}{\textfallback{ᒓ}} | |
\newunicodechar{ᒕ}{\textfallback{ᒕ}} | |
\newunicodechar{ᒗ}{\textfallback{ᒗ}} | |
\newunicodechar{ᒙ}{\textfallback{ᒙ}} | |
\newunicodechar{ᒛ}{\textfallback{ᒛ}} | |
\newunicodechar{ᒝ}{\textfallback{ᒝ}} | |
\newunicodechar{ᒟ}{\textfallback{ᒟ}} | |
\newunicodechar{ᒣ}{\textfallback{ᒣ}} | |
\newunicodechar{ᒥ}{\textfallback{ᒥ}} | |
\newunicodechar{ᒦ}{\textfallback{ᒦ}} | |
\newunicodechar{ᒧ}{\textfallback{ᒧ}} | |
\newunicodechar{ᒨ}{\textfallback{ᒨ}} | |
\newunicodechar{ᒪ}{\textfallback{ᒪ}} | |
\newunicodechar{ᒫ}{\textfallback{ᒫ}} | |
\newunicodechar{ᒭ}{\textfallback{ᒭ}} | |
\newunicodechar{ᒯ}{\textfallback{ᒯ}} | |
\newunicodechar{ᒱ}{\textfallback{ᒱ}} | |
\newunicodechar{ᒳ}{\textfallback{ᒳ}} | |
\newunicodechar{ᒵ}{\textfallback{ᒵ}} | |
\newunicodechar{ᒷ}{\textfallback{ᒷ}} | |
\newunicodechar{ᒹ}{\textfallback{ᒹ}} | |
\newunicodechar{ᒼ}{\textfallback{ᒼ}} | |
\newunicodechar{ᓀ}{\textfallback{ᓀ}} | |
\newunicodechar{ᓂ}{\textfallback{ᓂ}} | |
\newunicodechar{ᓃ}{\textfallback{ᓃ}} | |
\newunicodechar{ᓄ}{\textfallback{ᓄ}} | |
\newunicodechar{ᓅ}{\textfallback{ᓅ}} | |
\newunicodechar{ᓇ}{\textfallback{ᓇ}} | |
\newunicodechar{ᓈ}{\textfallback{ᓈ}} | |
\newunicodechar{ᓊ}{\textfallback{ᓊ}} | |
\newunicodechar{ᓌ}{\textfallback{ᓌ}} | |
\newunicodechar{ᓎ}{\textfallback{ᓎ}} | |
\newunicodechar{ᓬ}{\textfallback{ᓬ}} | |
\newunicodechar{ᓭ}{\textfallback{ᓭ}} | |
\newunicodechar{ᓯ}{\textfallback{ᓯ}} | |
\newunicodechar{ᓰ}{\textfallback{ᓰ}} | |
\newunicodechar{ᓱ}{\textfallback{ᓱ}} | |
\newunicodechar{ᓲ}{\textfallback{ᓲ}} | |
\newunicodechar{ᓴ}{\textfallback{ᓴ}} | |
\newunicodechar{ᓵ}{\textfallback{ᓵ}} | |
\newunicodechar{ᓷ}{\textfallback{ᓷ}} | |
\newunicodechar{ᓹ}{\textfallback{ᓹ}} | |
\newunicodechar{ᓻ}{\textfallback{ᓻ}} | |
\newunicodechar{ᓽ}{\textfallback{ᓽ}} | |
\newunicodechar{ᓿ}{\textfallback{ᓿ}} | |
\newunicodechar{ᔁ}{\textfallback{ᔁ}} | |
\newunicodechar{ᔃ}{\textfallback{ᔃ}} | |
\newunicodechar{ᔦ}{\textfallback{ᔦ}} | |
\newunicodechar{ᔨ}{\textfallback{ᔨ}} | |
\newunicodechar{ᔩ}{\textfallback{ᔩ}} | |
\newunicodechar{ᔪ}{\textfallback{ᔪ}} | |
\newunicodechar{ᔫ}{\textfallback{ᔫ}} | |
\newunicodechar{ᔭ}{\textfallback{ᔭ}} | |
\newunicodechar{ᔮ}{\textfallback{ᔮ}} | |
\newunicodechar{ᔰ}{\textfallback{ᔰ}} | |
\newunicodechar{ᔲ}{\textfallback{ᔲ}} | |
\newunicodechar{ᔴ}{\textfallback{ᔴ}} | |
\newunicodechar{ᔶ}{\textfallback{ᔶ}} | |
\newunicodechar{ᔸ}{\textfallback{ᔸ}} | |
\newunicodechar{ᔺ}{\textfallback{ᔺ}} | |
\newunicodechar{ᔼ}{\textfallback{ᔼ}} | |
\newunicodechar{ᕀ}{\textfallback{ᕀ}} | |
\newunicodechar{ᕒ}{\textfallback{ᕒ}} | |
\newunicodechar{ᕽ}{\textfallback{ᕽ}} | |
\newunicodechar{᙮}{\textfallback{᙮}} | |
% FirstVoices compatibility | |
\newunicodechar{ᐧ}{\textfallback{ᐧ}} | |
\newunicodechar{ᣟ}{\.{ }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment