2

Consider:http://www.languagegeek.com/algon/cree

I know all about \XeTex, but that is for inputting the actual glyph (i.e. typing the Cree gylph for ¨ma¨).

Rather at :http://www.languagegeek.com/algon/cree one can download truetype fonts, but all we know is that the coding follows Unicode. I want to input usinng latin characters (much more useful if you are not a native speaker of the language or for linguistics). Thus I want to define \ma = \char[number] = glyph for ¨ma¨.

But to do this I have no the \char[number].

All the conversion tools for tex fonts (ttf2xxxx etc) seem to be for Latin encoding. There must be a way of using the knowledge of the Unicode mapping to create the \TeX [I use TeXLive on Mageia Linux]

  • 1
    Welcome to TeX SE! Sounds like you want XeLaTeX/LuaLaTeX with fontspec? – cfr May 10 '15 at 14:50
6

This is much easier with xetex or luatex than pdftex. I'm on windows and seem to have a font Euphemia with this script (which I can not read, sorry) so I hope the following looks OK.

I took a couple of lines from the site that you referenced and set them with xetex, firstly just copying the characters directly and secondly using tex macros with ASCCI names. I just made up the names taking the Unicode name minus canadian syllablics and changing prefixes such as west-cree to WC to produce a valid TeX name.

enter image description here

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Euphemia}

\def\e{^^^^1401}
\def\i{^^^^1403}
\def\o{^^^^1405}
\def\a{^^^^140a}
\def\WCwe{^^^^140d}
\def\WCwi{^^^^140f}
\def\WCwa{^^^^1418}
\def\Facute{^^^^141f}
\def\Fgrave{^^^^1420}
\def\Ftophr{^^^^1422}
\def\Frighthr{^^^^1423}
\def\Fring{^^^^1424}
\def\Fdsvs{^^^^1426}
\def\Fshs{^^^^1428}
\def\pi{^^^^1431}
\def\po{^^^^1433}
\def\pa{^^^^1438}
\def\WCpwa{^^^^1445}
\def\WCp{^^^^144a}
\def\te{^^^^144c}
\def\ti{^^^^144e}
\def\to{^^^^1450}
\def\ta{^^^^1455}
\def\taa{^^^^1456}
\def\WCtwe{^^^^1458}
\def\ke{^^^^146b}
\def\ki{^^^^146d}
\def\ko{^^^^146f}
\def\ka{^^^^1472}
\def\WCkwa{^^^^147f}
\def\ci{^^^^148b}
\def\mi{^^^^14a5}
\def\mo{^^^^14a7}
\def\ma{^^^^14aa}
\def\maa{^^^^14ab}
\def\ni{^^^^14c2}
\def\no{^^^^14c4}
\def\na{^^^^14c7}
\def\se{^^^^14ed}
\def\si{^^^^14ef}
\def\saa{^^^^14f5}
\def\yi{^^^^1528}
\def\yo{^^^^152a}
\def\ya{^^^^152d}
\def\WCywa{^^^^153a}
\def\Syi{^^^^1541}
\def\FS{^^^^166e}

\begin{document}

\raggedright

ᐁᐏᐊᒋᒧᐢᑖᑕᑯᐠ ᐁᑭ ᐃᑖᐸᐦᑕᒫᐣ ᐁᐏᑕᒪᑯᐏᔭᕁ ᐁᑐᑫ ᑕᐣᓯ ᓂᑲᐣ ᐁᐏᐊᑕᔨᐢᐸᔨᐠ ᐊᓄᐦᐨ ᑭᒥᔭᐢᑲᒧᐸᔨᑭ ᐅᒪ
ᑲᒥᔪᐢᑲᒥ ᐏᑭᑎᒪᑭᓇᑯᐏᓯᐤ ᐊᔨᓯᔨᓂᐤ ᐊᐦᐳ ᑲᑯᓯᐟ ᑭᑕᒥᔺᔭᐤ᙮

\bigskip
\hrule
\bigskip

\WCwi\a\ci\mo\Ftophr\taa\ta\ko\Fgrave\space\e\ki\space\i\taa\pa\Fdsvs\ta
\maa\Frighthr\space\e\WCwi\ta\ma\ko\WCwi\ya\Syi\space\e\to\ke\space\ta
\Frighthr\si\space\ni\ka\Frighthr\space\e\WCwi\a\ta\yi\Ftophr\pa\yi\Fgrave
\space\a\no\Fdsvs\Fshs\space\ki\mi\ya\Ftophr\ka\mo\pa\yi\ki\space\o\ma
\space\ka\mi\yo\Ftophr\ka\mi\space\WCwi\ki\ti\ma\ki\na\ko\WCwi\si\Fring\space
\a\yi\si\yi\ni\Fring\space\a\Fdsvs\po\space\ka\ko\si\Facute\space\ki
\ta\mi\WCywa\ya\Fring\FS


\o\ma\space\WCwi\ta\ma\ko\WCwi\si\WCwi\Frighthr\space\ki\WCwi\ta\ma\ti
\na\WCwa\Fring\space\e\WCtwe\ma\ka\Syi\space\ki\ki\se\WCp\space\ka\WCwa\pa
\Fdsvs\ta\ma\Frighthr\FS\space\ki\ki\se\WCp\space\na\Frighthr\ta\space
\ni\ya\ni\Frighthr\space\ti\pa\Fdsvs\i\ka\Frighthr\space\e\a\yi\ta\pi
\ya\Frighthr\space\ma\mi\Syi\space\ta\pi\Ftophr\ko\Fshs\space\e\i\si
\na\ma\Frighthr\space\mi\si\WCwe\ya\pi\space\mi\ta\ta\Fdsvs\Facute\space
\na\na\to\Syi\space\e\i\si\na\WCkwa\Syi\space\pi\te\yi\Syi\space\e\ko
\ta\space\ni\WCwa\pa\ma\Fring\space\a\WCwi\ya\Fgrave\space\na\mo\ya\space
\ni\ni\si\ta\WCwi\na\WCwa\Fring\space\ma\ka\space\taa\pi\Ftophr\ko\Fshs\space
\e\i\si\na\WCwa\Fgrave\space\e\saa\WCpwa\Ftophr\te\yi\Fgrave\space\a
\ni\ma\space

\end{document}

I note that I'm missing a few characters, the first line after the rule should match the first line, but hopefully this shows a basic technique, and it would be easier for someone who can read the script.

  • If you're using XeTeX anyway, what's the use of using character codes, rather than the actual symbol in the macro definitions? It certainly makes them easier to check for errors. Also, for text input using only macros, I hear someone wrote xspace, which might be really helpful... – Alan Munn May 10 '15 at 15:46
  • 1
    @DavidCarlisle I think Alan means why \def\a{^^^^140a} instead of \def\a{ᐏ}. – Manuel May 10 '15 at 16:58
  • @Manuel yes (I deleted my comment) simply because it was easier to generate that form from a unicode list – David Carlisle May 10 '15 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.