%D \module
%D   [     file=enco-uc,
%D      version=2000.xx.xx, % and later
%D        title=\CONTEXT\ Encoding Macros,
%D     subtitle=Unicode (backwards mapping),
%D       author={Adam Lindsay \& Hans Hagen},
%D         date=\currentdate,
%D    copyright=PRAGMA ADE]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D An alternative approach would be to misuse the utf vectors, but they
%D don't carry enough info around.

% todo : \defineucharacter hebrewAlef 5 "D0

\startencoding[uc]

\definecharacter Agrave        {\uchar0{192}}
\definecharacter Aacute        {\uchar0{193}}
\definecharacter Acircumflex   {\uchar0{194}}
\definecharacter Atilde        {\uchar0{195}}
\definecharacter Adiaeresis    {\uchar0{196}}
\definecharacter Aring         {\uchar0{197}}
\definecharacter AEligature    {\uchar0{198}}
\definecharacter Ccedilla      {\uchar0{199}}
\definecharacter Egrave        {\uchar0{200}}
\definecharacter Eacute        {\uchar0{201}}
\definecharacter Ediaeresis    {\uchar0{203}}
\definecharacter Igrave        {\uchar0{204}}
\definecharacter Iacute        {\uchar0{205}}
\definecharacter Icircumflex   {\uchar0{206}}
\definecharacter Idiaeresis    {\uchar0{207}}
%\definecharacter Dstroke      {\uchar0{208}}
\definecharacter Ntilde        {\uchar0{209}}
\definecharacter Ograve        {\uchar0{210}}
\definecharacter Oacute        {\uchar0{211}}
\definecharacter Ocircumflex   {\uchar0{212}}
\definecharacter Otilde        {\uchar0{213}}
\definecharacter Odiaeresis    {\uchar0{214}}

\definecharacter Ostroke       {\uchar0{216}}
\definecharacter Ugrave        {\uchar0{217}}
\definecharacter Uacute        {\uchar0{218}}
\definecharacter Uhungarumlaut {\uchar0{219}}
\definecharacter Udiaeresis    {\uchar0{220}}
\definecharacter Yacute        {\uchar0{221}}
\definecharacter Thorn         {\uchar0{222}}
\definecharacter ssharp        {\uchar0{223}}
\definecharacter agrave        {\uchar0{224}}
\definecharacter aacute        {\uchar0{225}}
\definecharacter acircumflex   {\uchar0{226}}
\definecharacter atilde        {\uchar0{227}}
\definecharacter adiaeresis    {\uchar0{228}}
\definecharacter aring         {\uchar0{229}}
\definecharacter aeligature    {\uchar0{230}}
\definecharacter ccedilla      {\uchar0{231}}
\definecharacter egrave        {\uchar0{232}}
\definecharacter eacute        {\uchar0{233}}
\definecharacter ecircumflex   {\uchar0{234}}
\definecharacter ediaeresis    {\uchar0{235}}
\definecharacter igrave        {\uchar0{236}}
\definecharacter iacute        {\uchar0{237}}
\definecharacter icircumflex   {\uchar0{238}}
\definecharacter idiaeresis    {\uchar0{239}}
%\definecharacter dmacron      {\uchar0{240}}
\definecharacter ntilde        {\uchar0{241}}
\definecharacter ograve        {\uchar0{242}}
\definecharacter oacute        {\uchar0{243}}
\definecharacter ocircumflex   {\uchar0{244}}
\definecharacter ohungarumlaut {\uchar0{245}}
\definecharacter odiaeresis    {\uchar0{246}}

\definecharacter ostroke       {\uchar0{248}}
\definecharacter ugrave        {\uchar0{249}}
\definecharacter uacute        {\uchar0{250}}
\definecharacter ucircumflex   {\uchar0{251}}
\definecharacter udiaeresis    {\uchar0{252}}
\definecharacter yacute        {\uchar0{253}}
\definecharacter thorn         {\uchar0{254}}
\definecharacter ydiaeresis    {\uchar0{255}}

\definecharacter Amacron       {\uchar1{0}}
\definecharacter amacron       {\uchar1{1}}
\definecharacter Abreve        {\uchar1{2}}
\definecharacter abreve        {\uchar1{3}}
\definecharacter Aogonek       {\uchar1{4}}
\definecharacter aogonek       {\uchar1{5}}
\definecharacter Cacute        {\uchar1{6}}
\definecharacter cacute        {\uchar1{7}}
\definecharacter Ccircumflex   {\uchar1{8}}
\definecharacter ccircumflex   {\uchar1{9}}
\definecharacter Cdotaccent    {\uchar1{10}}
\definecharacter cdotaccent    {\uchar1{11}}
\definecharacter Ccaron        {\uchar1{12}}
\definecharacter ccaron        {\uchar1{13}}
\definecharacter Dcaron        {\uchar1{14}}
\definecharacter dcaron        {\uchar1{15}}
\definecharacter Dstroke       {\uchar1{16}}
\definecharacter dstroke       {\uchar1{17}}
\definecharacter Emacron       {\uchar1{18}}
\definecharacter emacron       {\uchar1{19}}
\definecharacter Ebreve        {\uchar1{20}}
\definecharacter ebreve        {\uchar1{21}}
\definecharacter Edotaccent    {\uchar1{22}}
\definecharacter edotaccent    {\uchar1{23}}
\definecharacter Eogonek       {\uchar1{24}}
\definecharacter eogonek       {\uchar1{25}}
\definecharacter Ecaron        {\uchar1{26}}
\definecharacter ecaron        {\uchar1{27}}
\definecharacter Gcircumflex   {\uchar1{28}}
\definecharacter gcircumflex   {\uchar1{29}}
\definecharacter Gbreve        {\uchar1{30}}
\definecharacter gbreve        {\uchar1{31}}
\definecharacter Gdotaccent    {\uchar1{32}}
\definecharacter gdotaccent    {\uchar1{33}}
%definecharacter Gdotaccent    {\uchar1{34}}
%definecharacter gdotaccent    {\uchar1{35}}
\definecharacter Hcircumflex   {\uchar1{36}}
\definecharacter hcircumflex   {\uchar1{37}}
\definecharacter Hstroke       {\uchar1{38}}
\definecharacter hstroke       {\uchar1{39}}
\definecharacter Itilde        {\uchar1{40}}
\definecharacter itilde        {\uchar1{41}}
\definecharacter Imacron       {\uchar1{42}}
\definecharacter imacron       {\uchar1{43}}
\definecharacter Ibreve        {\uchar1{44}}
\definecharacter ibreve        {\uchar1{45}}
\definecharacter Iogonek       {\uchar1{46}}
\definecharacter iogonek       {\uchar1{47}}
\definecharacter Idotaccent    {\uchar1{48}}
\definecharacter dotlessi      {\uchar1{49}}
\definecharacter IJligature    {\uchar1{50}}
\definecharacter ijligature    {\uchar1{51}}
\definecharacter Jcircumflex   {\uchar1{52}}
\definecharacter jcircumflex   {\uchar1{53}}
\definecharacter Kcedilla      {\uchar1{54}}
\definecharacter kcedilla      {\uchar1{55}}
\definecharacter kkra          {\uchar1{56}}
\definecharacter Lacute        {\uchar1{57}}
\definecharacter lacute        {\uchar1{58}}
\definecharacter Lcedilla      {\uchar1{59}}
\definecharacter lcedilla      {\uchar1{60}}
\definecharacter Lcaron        {\uchar1{61}}
\definecharacter lcaron        {\uchar1{62}}
\definecharacter Ldotmiddle    {\uchar1{63}}
\definecharacter ldotmiddle    {\uchar1{64}}
\definecharacter Lstroke       {\uchar1{65}}
\definecharacter lstroke       {\uchar1{66}}
\definecharacter Nacute        {\uchar1{67}}
\definecharacter nacute        {\uchar1{68}}
\definecharacter Ncedilla      {\uchar1{69}}
\definecharacter ncedilla      {\uchar1{70}}
\definecharacter Ncaron        {\uchar1{71}}
\definecharacter ncaron        {\uchar1{72}}
\definecharacter napostrophe   {\uchar1{73}}
\definecharacter Neng          {\uchar1{74}}
\definecharacter neng          {\uchar1{75}}
\definecharacter Omacron       {\uchar1{76}}
\definecharacter omacron       {\uchar1{77}}
\definecharacter Obreve        {\uchar1{78}}
\definecharacter obreve        {\uchar1{79}}
\definecharacter Ohungarumlaut {\uchar1{80}}
\definecharacter ohungarumlaut {\uchar1{81}}
\definecharacter OEligature    {\uchar1{82}}
\definecharacter oeligature    {\uchar1{83}}
\definecharacter Racute        {\uchar1{84}}
\definecharacter racute        {\uchar1{85}}
\definecharacter Rcedilla      {\uchar1{86}}
\definecharacter rcedilla      {\uchar1{87}}
\definecharacter Rcaron        {\uchar1{88}}
\definecharacter rcaron        {\uchar1{89}}
\definecharacter Sacute        {\uchar1{90}}
\definecharacter sacute        {\uchar1{91}}
\definecharacter Scircumflex   {\uchar1{92}}
\definecharacter scircumflex   {\uchar1{93}}
\definecharacter Scedilla      {\uchar1{94}}
\definecharacter scedilla      {\uchar1{95}}
\definecharacter Scaron        {\uchar1{96}}
\definecharacter scaron        {\uchar1{97}}
\definecharacter Tcedilla      {\uchar1{98}}
\definecharacter tcedilla      {\uchar1{99}}
\definecharacter Tcaron        {\uchar1{100}}
\definecharacter tcaron        {\uchar1{101}}
\definecharacter Tstroke       {\uchar1{102}}
\definecharacter tstroke       {\uchar1{103}}
\definecharacter Utilde        {\uchar1{104}}
\definecharacter utilde        {\uchar1{105}}
\definecharacter Umacron       {\uchar1{106}}
\definecharacter umacron       {\uchar1{107}}
\definecharacter Ubreve        {\uchar1{108}}
\definecharacter ubreve        {\uchar1{109}}
\definecharacter Uring         {\uchar1{110}}
\definecharacter uring         {\uchar1{111}}
\definecharacter Uhungarumlaut {\uchar1{112}}
\definecharacter uhungarumlaut {\uchar1{113}}
\definecharacter Uogonek       {\uchar1{114}}
\definecharacter uogonek       {\uchar1{115}}
\definecharacter Wcircumflex   {\uchar1{116}}
\definecharacter wcircumflex   {\uchar1{117}}
\definecharacter Ycircumflex   {\uchar1{118}}
\definecharacter ycircumflex   {\uchar1{119}}
\definecharacter Ydiaeresis    {\uchar1{120}}
\definecharacter Zacute        {\uchar1{121}}
\definecharacter zacute        {\uchar1{122}}
\definecharacter Zdotaccent    {\uchar1{123}}
\definecharacter zdotaccent    {\uchar1{124}}
\definecharacter Zcaron        {\uchar1{125}}
\definecharacter zcaron        {\uchar1{126}}
\definecharacter slong         {\uchar1{127}}

\stopencoding

\startencoding[uc]

\definecharacter endash          {\uchar{32}{19}}
\definecharacter emdash          {\uchar{32}{20}}
\definecharacter quoteleft       {\uchar{32}{24}}
\definecharacter quoteright      {\uchar{32}{25}}
\definecharacter quotesinglebase {\uchar{32}{26}}

\definecharacter quotedblleft    {\uchar{32}{28}}
\definecharacter quotedblright   {\uchar{32}{29}}
\definecharacter quotedblbase    {\uchar{32}{30}}

\definecharacter leftguillemot   {\uchar0{171}}
\definecharacter rightguillemot  {\uchar0{187}}

\definecharacter guilsingleleft  {\uchar{32}{57}}
\definecharacter guilsingleright {\uchar{32}{58}}

\stopencoding

%D Adam Lindsay's additions

\startencoding[uc]

\definecharacter exclamdown       {\uchar0{161}}
\definecharacter textcent         {\uchar0{162}}
\definecharacter textsterling     {\uchar0{163}}
\definecharacter textcurrency     {\uchar0{164}}
\definecharacter textyen          {\uchar0{165}}
\definecharacter textbrokenbar    {\uchar0{166}}
\definecharacter sectionmark      {\uchar0{167}}
\definecharacter textdiaresis     {\uchar0{168}}
\definecharacter copyright        {\uchar0{169}}

\definecharacter textlognot       {\uchar0{172}}
\definecharacter softhyphen       {\uchar0{173}}
\definecharacter registered       {\uchar0{174}}
\definecharacter textmacron       {\uchar0{175}}
\definecharacter textdegree       {\uchar0{176}}
\definecharacter textpm           {\uchar0{177}}
\definecharacter twosuperior      {\uchar0{178}}
\definecharacter threesuperior    {\uchar0{179}}
\definecharacter textacute        {\uchar0{180}}
\definecharacter textmu           {\uchar0{181}}
\definecharacter paragraphmark    {\uchar0{182}}
\definecharacter periodcentered   {\uchar0{183}}
\definecharacter textcedilla      {\uchar0{184}}
\definecharacter onesuperior      {\uchar0{185}}

\definecharacter textgrave        {\uchar3{0}}
\definecharacter textacute        {\uchar3{1}}
\definecharacter textcircumflex   {\uchar3{2}}
\definecharacter texttilde        {\uchar3{3}}
\definecharacter textmacron       {\uchar3{4}}
\definecharacter textbreve        {\uchar3{6}}
\definecharacter textdotaccent    {\uchar3{7}}
\definecharacter textdiaeresis    {\uchar3{8}}
\definecharacter textring         {\uchar3{10}}
\definecharacter texthungarumlaut {\uchar3{11}}
\definecharacter textcaron        {\uchar3{12}}
\definecharacter textogonek       {\uchar3{40}}

\definecharacter onequarter       {\uchar0{188}}
\definecharacter onehalf          {\uchar0{189}}
\definecharacter threequarters    {\uchar0{190}}
\definecharacter questiondown     {\uchar0{191}}

\definecharacter textmultiply     {\uchar0{215}}
\definecharacter textdiv          {\uchar0{247}}

\definecharacter textdag          {\uchar{32}{32}}
\definecharacter textddag         {\uchar{32}{33}}
\definecharacter textbullet       {\uchar{32}{34}}
\definecharacter textellipsis     {\uchar{32}{38}}
\definecharacter perthousand      {\uchar{32}{48}}

\definecharacter Gcedilla         {\uchar1{34}}
\definecharacter gcedilla         {\uchar1{35}}
\definecharacter Eth              {\uchar0{208}}
\definecharacter eth              {\uchar0{240}}

\stopencoding

%D Vietnamese:

\startencoding[uc]

\definecharacter   Ohorn                {\uchar1{"A0}}
\definecharacter   ohorn                {\uchar1{"A1}}
\definecharacter   Uhorn                {\uchar1{"AF}}
\definecharacter   uhorn                {\uchar1{"B0}}

\definecharacter   Yhook                {\uchar{"1E}{"F6}}
\definecharacter   yhook                {\uchar{"1E}{"F7}}
\definecharacter   Ydotbelow            {\uchar{"1E}{"F4}}
\definecharacter   ydotbelow            {\uchar{"1E}{"F5}}
\definecharacter   Ahook                {\uchar{"1E}{"A2}}
\definecharacter   Adotbelow            {\uchar{"1E}{"A0}}
\definecharacter   Acircumflexgrave     {\uchar{"1E}{"A6}}
\definecharacter   Acircumflexacute     {\uchar{"1E}{"A4}}
\definecharacter   Acircumflextilde     {\uchar{"1E}{"AA}}
\definecharacter   Acircumflexhook      {\uchar{"1E}{"A8}}
\definecharacter   Acircumflexdotbelow  {\uchar{"1E}{"AC}}
\definecharacter   Abrevegrave          {\uchar{"1E}{"B0}}
\definecharacter   Abreveacute          {\uchar{"1E}{"AE}}
\definecharacter   Abrevetilde          {\uchar{"1E}{"B4}}
\definecharacter   Abrevehook           {\uchar{"1E}{"B2}}
\definecharacter   Abrevedotbelow       {\uchar{"1E}{"B6}}
\definecharacter   Ehook                {\uchar{"1E}{"BA}}
\definecharacter   Edotbelow            {\uchar{"1E}{"B8}}
\definecharacter   Ecircumflexgrave     {\uchar{"1E}{"C0}}
\definecharacter   Ecircumflexacute     {\uchar{"1E}{"BE}}
\definecharacter   Ecircumflextilde     {\uchar{"1E}{"C4}}
\definecharacter   Ecircumflexhook      {\uchar{"1E}{"C2}}
\definecharacter   Ecircumflexdotbelow  {\uchar{"1E}{"C6}}
\definecharacter   Ihook                {\uchar{"1E}{"C8}}
\definecharacter   ahook                {\uchar{"1E}{"A3}}
\definecharacter   adotbelow            {\uchar{"1E}{"A1}}
\definecharacter   acircumflexgrave     {\uchar{"1E}{"A7}}
\definecharacter   acircumflexacute     {\uchar{"1E}{"A5}}
\definecharacter   acircumflextilde     {\uchar{"1E}{"AB}}
\definecharacter   acircumflexhook      {\uchar{"1E}{"A9}}
\definecharacter   acircumflexdotbelow  {\uchar{"1E}{"AD}}
\definecharacter   abrevegrave          {\uchar{"1E}{"B1}}
\definecharacter   abreveacute          {\uchar{"1E}{"AF}}
\definecharacter   abrevetilde          {\uchar{"1E}{"B5}}
\definecharacter   abrevehook           {\uchar{"1E}{"B3}}
\definecharacter   abrevedotbelow       {\uchar{"1E}{"B7}}
\definecharacter   ehook                {\uchar{"1E}{"BB}}
\definecharacter   edotbelow            {\uchar{"1E}{"B9}}
\definecharacter   ecircumflexgrave     {\uchar{"1E}{"C1}}
\definecharacter   ecircumflexacute     {\uchar{"1E}{"BF}}
\definecharacter   ecircumflextilde     {\uchar{"1E}{"C5}}
\definecharacter   ecircumflexhook      {\uchar{"1E}{"C3}}
\definecharacter   ecircumflexdotbelow  {\uchar{"1E}{"C7}}
\definecharacter   ihook                {\uchar{"1E}{"C9}}
\definecharacter   Idotbelow            {\uchar{"1E}{"CA}}
\definecharacter   Ohook                {\uchar{"1E}{"CE}}
\definecharacter   Odotbelow            {\uchar{"1E}{"CC}}
\definecharacter   Ocircumflexgrave     {\uchar{"1E}{"D2}}
\definecharacter   Ocircumflexacute     {\uchar{"1E}{"D0}}
\definecharacter   Ocircumflextilde     {\uchar{"1E}{"D6}}
\definecharacter   Ocircumflexhook      {\uchar{"1E}{"D4}}
\definecharacter   Ocircumflexdotbelow  {\uchar{"1E}{"D8}}
\definecharacter   Ohorngrave           {\uchar{"1E}{"DC}}
\definecharacter   Ohornacute           {\uchar{"1E}{"DA}}
\definecharacter   Ohorntilde           {\uchar{"1E}{"E0}}
\definecharacter   Ohornhook            {\uchar{"1E}{"DE}}
\definecharacter   Ohorndotbelow        {\uchar{"1E}{"E2}}
\definecharacter   Uhook                {\uchar{"1E}{"E6}}
\definecharacter   Udotbelow            {\uchar{"1E}{"E4}}
\definecharacter   Uhorngrave           {\uchar{"1E}{"EA}}
\definecharacter   Uhornacute           {\uchar{"1E}{"E8}}
\definecharacter   Uhorntilde           {\uchar{"1E}{"EE}}
\definecharacter   Uhornhook            {\uchar{"1E}{"EC}}
\definecharacter   Uhorndotbelow        {\uchar{"1E}{"F0}}
\definecharacter   Ytilde               {\uchar{"1E}{"F8}}
\definecharacter   idotbelow            {\uchar{"1E}{"CB}}
\definecharacter   ohook                {\uchar{"1E}{"CF}}
\definecharacter   odotbelow            {\uchar{"1E}{"CD}}
\definecharacter   ocircumflexgrave     {\uchar{"1E}{"D3}}
\definecharacter   ocircumflexacute     {\uchar{"1E}{"D1}}
\definecharacter   ocircumflextilde     {\uchar{"1E}{"D7}}
\definecharacter   ocircumflexhook      {\uchar{"1E}{"D5}}
\definecharacter   ocircumflexdotbelow  {\uchar{"1E}{"D9}}
\definecharacter   ohorngrave           {\uchar{"1E}{"DD}}
\definecharacter   ohornacute           {\uchar{"1E}{"DB}}
\definecharacter   ohorntilde           {\uchar{"1E}{"E1}}
\definecharacter   ohornhook            {\uchar{"1E}{"DF}}
\definecharacter   ohorndotbelow        {\uchar{"1E}{"E3}}
\definecharacter   uhook                {\uchar{"1E}{"E7}}
\definecharacter   udotbelow            {\uchar{"1E}{"E5}}
\definecharacter   uhorngrave           {\uchar{"1E}{"EB}}
\definecharacter   uhornacute           {\uchar{"1E}{"E9}}
\definecharacter   uhorntilde           {\uchar{"1E}{"EF}}
\definecharacter   uhornhook            {\uchar{"1E}{"ED}}
\definecharacter   uhorndotbelow        {\uchar{"1E}{"F1}}
\definecharacter   ytilde               {\uchar{"1E}{"F9}}

\definecharacter   Etilde               {\uchar{"1E}{"BC}}
\definecharacter   etilde               {\uchar{"1E}{"BD}}
\definecharacter   Ygrave               {\uchar{"1E}{"F2}}
\definecharacter   ygrave               {\uchar{"1E}{"F3}}

\stopencoding

% Greek:

\startencoding[uc]

\definecharacter greekAlphatonos         {\uchar3{"86}}
\definecharacter greekEpsilontonos       {\uchar3{"88}}
\definecharacter greekEtatonos           {\uchar3{"89}}
\definecharacter greekIotatonos          {\uchar3{"8A}}
\definecharacter greekOmicrontonos       {\uchar3{"8C}}
\definecharacter greekUpsilontonos       {\uchar3{"8E}}
\definecharacter greekOmegatonos         {\uchar3{"8F}}
\definecharacter greekiotadialytikatonos {\uchar3{"90}}
\definecharacter greekAlpha              {\uchar3{"91}}
\definecharacter greekBeta               {\uchar3{"92}}
\definecharacter greekGamma              {\uchar3{"93}}
\definecharacter greekDelta              {\uchar3{"94}}
\definecharacter greekEpsilon            {\uchar3{"95}}
\definecharacter greekZeta               {\uchar3{"96}}
\definecharacter greekEta                {\uchar3{"97}}
\definecharacter greekTheta              {\uchar3{"98}}
\definecharacter greekIota               {\uchar3{"99}}
\definecharacter greekKappa              {\uchar3{"9A}}
\definecharacter greekLamda              {\uchar3{"9B}}
\definecharacter greekMu                 {\uchar3{"9C}}
\definecharacter greekNu                 {\uchar3{"9D}}
\definecharacter greekXi                 {\uchar3{"9E}}
\definecharacter greekOmicron            {\uchar3{"9F}}
\definecharacter greekPi                 {\uchar3{"A0}}
\definecharacter greekRho                {\uchar3{"A1}}
\definecharacter greekSigma              {\uchar3{"A3}}
\definecharacter greekTau                {\uchar3{"A4}}
\definecharacter greekUpsilon            {\uchar3{"A5}}
\definecharacter greekPhi                {\uchar3{"A6}}
\definecharacter greekChi                {\uchar3{"A7}}
\definecharacter greekPsi                {\uchar3{"A8}}
\definecharacter greekOmega              {\uchar3{"A9}}

\definecharacter greekalpha              {\uchar3{"B1}}
\definecharacter greekbeta               {\uchar3{"B2}}
\definecharacter greekgamma              {\uchar3{"B3}}
\definecharacter greekdelta              {\uchar3{"B4}}
\definecharacter greekepsilon            {\uchar3{"B5}}
\definecharacter greekzeta               {\uchar3{"B6}}
\definecharacter greeketa                {\uchar3{"B7}}
\definecharacter greektheta              {\uchar3{"B8}}
\definecharacter greekiota               {\uchar3{"B9}}
\definecharacter greekkappa              {\uchar3{"BA}}
\definecharacter greeklamda              {\uchar3{"BB}}
\definecharacter greekmu                 {\uchar3{"BC}}
\definecharacter greeknu                 {\uchar3{"BD}}
\definecharacter greekxi                 {\uchar3{"BE}}
\definecharacter greekomicron            {\uchar3{"BF}}
\definecharacter greekpi                 {\uchar3{"C0}}
\definecharacter greekrho                {\uchar3{"C1}}
\definecharacter greekfinalsigma         {\uchar3{"C2}}
\definecharacter greeksigma              {\uchar3{"C3}}
\definecharacter greektau                {\uchar3{"C4}}
\definecharacter greekupsilon            {\uchar3{"C5}}
\definecharacter greekphi                {\uchar3{"C6}}
\definecharacter greekchi                {\uchar3{"C7}}
\definecharacter greekpsi                {\uchar3{"C8}}
\definecharacter greekomega              {\uchar3{"C9}}
\definecharacter greekiotadialytika      {\uchar3{"CA}}
\definecharacter greekupsilondialytika   {\uchar3{"CB}}
\definecharacter greekomicrontonos       {\uchar3{"CC}}
\definecharacter greekupsilontonos       {\uchar3{"CD}}
\definecharacter greekomegatonos         {\uchar3{"CE}}

\definecharacter greekIotadialytika          {\uchar3{"AA}}
\definecharacter greekUpsilondialytika       {\uchar3{"AB}}

\definecharacter greekalphatonos             {\uchar3{"AC}}
\definecharacter greekepsilontonos           {\uchar3{"AD}}
\definecharacter greeketatonos               {\uchar3{"AE}}
\definecharacter greekiotatonos              {\uchar3{"AF}}
\definecharacter greekupsilondialytikatonos  {\uchar3{"B0}}

\stopencoding

% Cyrillic:

\startencoding[uc]

\definecharacter cyrillicA     {\uchar4{"10}}
\definecharacter cyrillicB     {\uchar4{"11}}
\definecharacter cyrillicV     {\uchar4{"12}}
\definecharacter cyrillicG     {\uchar4{"13}}
\definecharacter cyrillicD     {\uchar4{"14}}
\definecharacter cyrillicE     {\uchar4{"15}}
\definecharacter cyrillicZH    {\uchar4{"16}}
\definecharacter cyrillicZ     {\uchar4{"17}}
\definecharacter cyrillicI     {\uchar4{"18}}
\definecharacter cyrillicISHRT {\uchar4{"19}}
\definecharacter cyrillicK     {\uchar4{"1A}}
\definecharacter cyrillicL     {\uchar4{"1B}}
\definecharacter cyrillicM     {\uchar4{"1C}}
\definecharacter cyrillicN     {\uchar4{"1D}}
\definecharacter cyrillicO     {\uchar4{"1E}}
\definecharacter cyrillicP     {\uchar4{"1F}}
\definecharacter cyrillicR     {\uchar4{"20}}
\definecharacter cyrillicS     {\uchar4{"21}}
\definecharacter cyrillicT     {\uchar4{"22}}
\definecharacter cyrillicU     {\uchar4{"23}}
\definecharacter cyrillicF     {\uchar4{"24}}
\definecharacter cyrillicH     {\uchar4{"25}}
\definecharacter cyrillicC     {\uchar4{"26}}
\definecharacter cyrillicCH    {\uchar4{"27}}
\definecharacter cyrillicSH    {\uchar4{"28}}
\definecharacter cyrillicSHCH  {\uchar4{"29}}
\definecharacter cyrillicHRDSN {\uchar4{"2A}}
\definecharacter cyrillicERY   {\uchar4{"2B}}
\definecharacter cyrillicSFTSN {\uchar4{"2C}}
\definecharacter cyrillicEREV  {\uchar4{"2D}}
\definecharacter cyrillicYU    {\uchar4{"2E}}
\definecharacter cyrillicYA    {\uchar4{"2F}}

\definecharacter cyrillica     {\uchar4{"30}}
\definecharacter cyrillicb     {\uchar4{"31}}
\definecharacter cyrillicv     {\uchar4{"32}}
\definecharacter cyrillicg     {\uchar4{"33}}
\definecharacter cyrillicd     {\uchar4{"34}}
\definecharacter cyrillice     {\uchar4{"35}}
\definecharacter cyrilliczh    {\uchar4{"36}}
\definecharacter cyrillicz     {\uchar4{"37}}
\definecharacter cyrillici     {\uchar4{"38}}
\definecharacter cyrillicishrt {\uchar4{"39}}
\definecharacter cyrillick     {\uchar4{"3A}}
\definecharacter cyrillicl     {\uchar4{"3B}}
\definecharacter cyrillicm     {\uchar4{"3C}}
\definecharacter cyrillicn     {\uchar4{"3D}}
\definecharacter cyrillico     {\uchar4{"3E}}
\definecharacter cyrillicp     {\uchar4{"3F}}
\definecharacter cyrillicr     {\uchar4{"40}}
\definecharacter cyrillics     {\uchar4{"41}}
\definecharacter cyrillict     {\uchar4{"42}}
\definecharacter cyrillicu     {\uchar4{"43}}
\definecharacter cyrillicf     {\uchar4{"44}}
\definecharacter cyrillich     {\uchar4{"45}}
\definecharacter cyrillicc     {\uchar4{"46}}
\definecharacter cyrillicch    {\uchar4{"47}}
\definecharacter cyrillicsh    {\uchar4{"48}}
\definecharacter cyrillicshch  {\uchar4{"49}}
\definecharacter cyrillichrdsn {\uchar4{"4A}}
\definecharacter cyrillicery   {\uchar4{"4B}}
\definecharacter cyrillicsftsn {\uchar4{"4C}}
\definecharacter cyrillicerev  {\uchar4{"4D}}
\definecharacter cyrillicyu    {\uchar4{"4E}}
\definecharacter cyrillicya    {\uchar4{"4F}}

%D I tried to figure out what these were, but the unicode
%D tables suggested they were the same as cyrillici, which was
%D already defined! So, a temporary definition:

% \def\cyrillicII{\cyrillicI}
% \def\cyrillicii{\cyrillici}

%D a guess derived from looking at enco-cyr suggests that this is
%D identical to the Roman I/i pair. To me, that sounds like
%D CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I in the UC tables!

\definecharacter cyrillicII    {\uchar4{"06}}
\definecharacter cyrillicii    {\uchar4{"56}}

%D Guessing that tlir6a corresponds with t2a encoding as advertised,
%D here are some more, cos I had some spare time: (AL)

\definecharacter cyrillicDJE    {\uchar4{"02}}
\definecharacter cyrillicTSHE   {\uchar4{"0B}}
%definecharacter cyrillicSHHA   132
%definecharacter cyrillicZHDSC  133
\definecharacter cyrillicZDSC   {\uchar4{"98}}
\definecharacter cyrillicLJE    {\uchar4{"09}}
\definecharacter cyrillicYI     {\uchar4{"07}}
\definecharacter cyrillicAE     {\uchar4{"D4}}
%definecharacter cyrillicNDSC   141
%definecharacter cyrillicNG     142
\definecharacter cyrillicDZE    {\uchar4{"05}}
%definecharacter cyrillicOTLD   144
\definecharacter cyrillicSDSC   {\uchar4{"AA}}
\definecharacter cyrillicUSHRT  {\uchar4{"0E}}
%definecharacter cyrillicY      147
%definecharacter cyrillicYHCRS  148
%definecharacter cyrillicHDSC   149
\definecharacter cyrillicDZHE   {\uchar4{"0F}}
\definecharacter cyrillicIE     {\uchar4{"04}}
\definecharacter cyrillicNJE    {\uchar4{"0A}}
\definecharacter cyrillicYO     {\uchar4{"01}}

\definecharacter cyrillicdje    {\uchar4{"52}}
\definecharacter cyrillictshe   {\uchar4{"5B}}
%definecharacter cyrillicshha   164
%definecharacter cyrilliczhdsc  165
\definecharacter cyrilliczdsc   {\uchar4{"99}}
\definecharacter cyrilliclje    {\uchar4{"59}}
\definecharacter cyrillicyi     {\uchar4{"57}}
\definecharacter cyrillicae     {\uchar4{"D5}}
%definecharacter cyrillicndsc   173
%definecharacter cyrillicng     174
\definecharacter cyrillicdze    {\uchar4{"55}}
%definecharacter cyrillicotld   176
\definecharacter cyrillicsdsc   {\uchar4{"AB}}
\definecharacter cyrillicushrt  {\uchar4{"5E}}
%definecharacter cyrillicy      179
%definecharacter cyrillicyhcrs  180
%definecharacter cyrillichdsc   181
\definecharacter cyrillicdzhe   {\uchar4{"5F}}
\definecharacter cyrillicie     {\uchar4{"54}}
\definecharacter cyrillicnje    {\uchar4{"5A}}
\definecharacter cyrillicyo     {\uchar4{"51}}

% is there overlap with the above definitions

\definecharacter cyrillicEgrave             {\uchar4{"00}}
\definecharacter cyrillicGJE                {\uchar4{"03}}
\definecharacter cyrillicJE                 {\uchar4{"08}}
\definecharacter cyrillicKJE                {\uchar4{"0C}}
\definecharacter cyrillicIgrave             {\uchar4{"0D}}
\definecharacter cyrillicegrave             {\uchar4{"50}}
\definecharacter cyrillicgje                {\uchar4{"53}}
\definecharacter cyrillicje                 {\uchar4{"58}}
\definecharacter cyrillickje                {\uchar4{"5C}}
\definecharacter cyrillicigrave             {\uchar4{"5D}}
\definecharacter cyrillicOMEGA              {\uchar4{"60}}
\definecharacter cyrillicomega              {\uchar4{"61}}
\definecharacter cyrillicYAT                {\uchar4{"62}}
\definecharacter cyrillicyat                {\uchar4{"63}}
\definecharacter cyrillicEiotified          {\uchar4{"64}}
\definecharacter cyrilliceiotified          {\uchar4{"65}}
\definecharacter cyrillicLITTLEYUS          {\uchar4{"66}}
\definecharacter cyrilliclittleyus          {\uchar4{"67}}
\definecharacter cyrillicLITTLEYUSiotified  {\uchar4{"68}}
\definecharacter cyrilliclittleyusiotified  {\uchar4{"69}}
\definecharacter cyrillicBIGYUS             {\uchar4{"6A}}
\definecharacter cyrillicbigyus             {\uchar4{"6B}}
\definecharacter cyrillicBIGYUSiotified     {\uchar4{"6C}}
\definecharacter cyrillicbigyusiotified     {\uchar4{"6D}}
\definecharacter cyrillicKSI                {\uchar4{"6E}}
\definecharacter cyrillicksi                {\uchar4{"6F}}
\definecharacter cyrillicPSI                {\uchar4{"70}}
\definecharacter cyrillicpsi                {\uchar4{"71}}
\definecharacter cyrillicFITA               {\uchar4{"72}}
\definecharacter cyrillicfita               {\uchar4{"73}}
\definecharacter cyrillicIZHITSA            {\uchar4{"74}}
\definecharacter cyrillicizhitsa            {\uchar4{"75}}
\definecharacter cyrillicIZHITSAdoublegrave {\uchar4{"76}}
\definecharacter cyrillicizhitsadoublegrave {\uchar4{"77}}
\definecharacter cyrillicUK                 {\uchar4{"78}}
\definecharacter cyrillicuk                 {\uchar4{"79}}
\definecharacter cyrillicOMEGAround         {\uchar4{"7A}}
\definecharacter cyrillicomegaround         {\uchar4{"7B}}
\definecharacter cyrillicOMEGAtitlo         {\uchar4{"7C}}
\definecharacter cyrillicomegatitlo         {\uchar4{"7D}}
\definecharacter cyrillicOT                 {\uchar4{"7E}}
\definecharacter cyrillicot                 {\uchar4{"7F}}
\definecharacter cyrillicKOPPA              {\uchar4{"80}}
\definecharacter cyrillickoppa              {\uchar4{"81}}
\definecharacter cyrillicTITLO              {\uchar4{"83}}
\definecharacter cyrillicPALATALIZATION     {\uchar4{"84}}
\definecharacter cyrillicDASIAPNEUMATA      {\uchar4{"85}}
\definecharacter cyrillicPSILIPNEUMATA      {\uchar4{"86}}
\definecharacter cyrillicISHRTtail          {\uchar4{"8A}}
\definecharacter cyrillicishrttail          {\uchar4{"8B}}
\definecharacter cyrillicSEMISOFT           {\uchar4{"8C}}
\definecharacter cyrillicsemisoft           {\uchar4{"8D}}
\definecharacter cyrillicERtick             {\uchar4{"8E}}
\definecharacter cyrillicertick             {\uchar4{"8F}}
\definecharacter cyrillicGHEupturn          {\uchar4{"90}}
\definecharacter cyrillicgheupturn          {\uchar4{"91}}
\definecharacter cyrillicGHEstroke          {\uchar4{"92}}
\definecharacter cyrillicghestroke          {\uchar4{"93}}
\definecharacter cyrillicGHEmidhook         {\uchar4{"94}}
\definecharacter cyrillicghemidhook         {\uchar4{"95}}
\definecharacter cyrillicZHEdescender       {\uchar4{"96}}
\definecharacter cyrilliczhedescender       {\uchar4{"97}}
\definecharacter cyrillicZDSC               {\uchar4{"98}}
\definecharacter cyrilliczdsc               {\uchar4{"99}}
\definecharacter cyrillicKADC               {\uchar4{"9A}}
\definecharacter cyrillickadc               {\uchar4{"9B}}
\definecharacter cyrillicKAvertstroke       {\uchar4{"9C}}
\definecharacter cyrillickavertstroke       {\uchar4{"9D}}
\definecharacter cyrillicKAstroke           {\uchar4{"9E}}
\definecharacter cyrillickastroke           {\uchar4{"9F}}
\definecharacter cyrillicKAbashkir          {\uchar4{"A0}}
\definecharacter cyrillickabashkir          {\uchar4{"A1}}
\definecharacter cyrillicENDC               {\uchar4{"A2}}
\definecharacter cyrillicendc               {\uchar4{"A3}}
\definecharacter cyrillicENGHE              {\uchar4{"A4}}
\definecharacter cyrillicenghe              {\uchar4{"A5}}
\definecharacter cyrillicPEmidhook          {\uchar4{"A6}}
\definecharacter cyrillicpemidhook          {\uchar4{"A7}}
\definecharacter cyrillicHA                 {\uchar4{"A8}}
\definecharacter cyrillicha                 {\uchar4{"A9}}
%\definecharacter cyrillicSDSC              {\uchar4{"AA}} already defined
%\definecharacter cyrilliccdsc              {\uchar4{"AB}} already defined
\definecharacter cyrillicTEDC               {\uchar4{"AC}}
\definecharacter cyrillictedc               {\uchar4{"AD}}
\definecharacter cyrillicYstr               {\uchar4{"AE}}
\definecharacter cyrillicystr               {\uchar4{"AF}}
\definecharacter cyrillicYstrstroke         {\uchar4{"B0}}
\definecharacter cyrillicystrstroke         {\uchar4{"B1}}
\definecharacter cyrillicHADC               {\uchar4{"B2}}
\definecharacter cyrillichadc               {\uchar4{"B3}}
\definecharacter cyrillicTETSE              {\uchar4{"B4}}
\definecharacter cyrillictetse              {\uchar4{"B5}}
\definecharacter cyrillicCHEDC              {\uchar4{"B6}}
\definecharacter cyrillicchedc              {\uchar4{"B7}}
\definecharacter cyrillicCHEvertstroke      {\uchar4{"B8}}
\definecharacter cyrillicchevertstroke      {\uchar4{"B9}}
\definecharacter cyrillicSHHA               {\uchar4{"BA}}
\definecharacter cyrillicshha               {\uchar4{"BB}}
\definecharacter cyrillicCHEabkhasian       {\uchar4{"BC}}
\definecharacter cyrilliccheabkhasian       {\uchar4{"BD}}
\definecharacter cyrillicCHEDCabkhasian     {\uchar4{"BE}}
\definecharacter cyrillicchedcabkhasian     {\uchar4{"BF}}
\definecharacter cyrillicPALOCHKA           {\uchar4{"C0}}
\definecharacter cyrillicZHEbreve           {\uchar4{"C1}}
\definecharacter cyrilliczhebreve           {\uchar4{"C2}}
\definecharacter cyrillicKAhook             {\uchar4{"C3}}
\definecharacter cyrillickahook             {\uchar4{"C4}}
\definecharacter cyrillicELtail             {\uchar4{"C5}}
\definecharacter cyrilliceltail             {\uchar4{"C6}}
\definecharacter cyrillicENhook             {\uchar4{"C7}}
\definecharacter cyrillicenhook             {\uchar4{"C8}}
\definecharacter cyrillicENtail             {\uchar4{"C9}}
\definecharacter cyrillicentail             {\uchar4{"CA}}
\definecharacter cyrillicCHEkhakassian      {\uchar4{"CB}}
\definecharacter cyrillicchekhakassian      {\uchar4{"CC}}
\definecharacter cyrillicEMtail             {\uchar4{"CD}}
\definecharacter cyrillicemtail             {\uchar4{"CE}}
\definecharacter cyrillicAbreve             {\uchar4{"D0}}
\definecharacter cyrillicabreve             {\uchar4{"D1}}
\definecharacter cyrillicAdiaeresis         {\uchar4{"D2}}
\definecharacter cyrillicadiaeresis         {\uchar4{"D3}}
%\definecharacter cyrillicAE                {\uchar4{"D4}} already defined
%\definecharacter cyrillicae                {\uchar4{"D5}} already defined
\definecharacter cyrillicEbreve             {\uchar4{"D6}}
\definecharacter cyrillicebreve             {\uchar4{"D7}}
\definecharacter cyrillicSCHWA              {\uchar4{"D8}}
\definecharacter cyrillicschwa              {\uchar4{"D9}}
\definecharacter cyrillicSCHWAdiaeresis     {\uchar4{"DA}}
\definecharacter cyrillicschwadiaeresis     {\uchar4{"DB}}
\definecharacter cyrillicZHEdiaeresis       {\uchar4{"DC}}
\definecharacter cyrilliczhediaeresis       {\uchar4{"DD}}
\definecharacter cyrillicZEdiaeresis        {\uchar4{"DE}}
\definecharacter cyrilliczediaeresis        {\uchar4{"DF}}
\definecharacter cyrillicDZEabkhasian       {\uchar4{"E0}}
\definecharacter cyrillicdzeabkhasian       {\uchar4{"E1}}
\definecharacter cyrillicImacron            {\uchar4{"E2}}
\definecharacter cyrillicimacron            {\uchar4{"E3}}
\definecharacter cyrillicIdiaeresis         {\uchar4{"E4}}
\definecharacter cyrillicidiaeresis         {\uchar4{"E5}}
\definecharacter cyrillicOdiaeresis         {\uchar4{"E6}}
\definecharacter cyrillicodiaeresis         {\uchar4{"E7}}
\definecharacter cyrillicObarred            {\uchar4{"E8}}
\definecharacter cyrillicobarred            {\uchar4{"E9}}
\definecharacter cyrillicObarreddiaeresis   {\uchar4{"EA}}
\definecharacter cyrillicobarreddiaeresis   {\uchar4{"EB}}
\definecharacter cyrillicEdiaeresis         {\uchar4{"EC}}
\definecharacter cyrillicediaeresis         {\uchar4{"ED}}
\definecharacter cyrillicUmacron            {\uchar4{"EE}}
\definecharacter cyrillicumacron            {\uchar4{"EF}}
\definecharacter cyrillicUdiaeresis         {\uchar4{"F0}}
\definecharacter cyrillicudiaeresis         {\uchar4{"F1}}
\definecharacter cyrillicUdoubleacute       {\uchar4{"F2}}
\definecharacter cyrillicudoubleacute       {\uchar4{"F3}}
\definecharacter cyrillicCHEdiaeresis       {\uchar4{"F4}}
\definecharacter cyrillicchediaeresis       {\uchar4{"F5}}
\definecharacter cyrillicYERUdiaeresis      {\uchar4{"F8}}
\definecharacter cyrillicyerudiaeresis      {\uchar4{"F9}}

\stopencoding

% Hebrew:

\startencoding[uc]

\definecharacter hebrewAlef       {\uchar5{"D0}} %  05D0
\definecharacter hebrewBet        {\uchar5{"D1}}
\definecharacter hebrewGimel      {\uchar5{"D2}}
\definecharacter hebrewDalet      {\uchar5{"D3}}
\definecharacter hebrewHe         {\uchar5{"D4}}
\definecharacter hebrewVav        {\uchar5{"D5}}
\definecharacter hebrewZayin      {\uchar5{"D6}}
\definecharacter hebrewHet        {\uchar5{"D7}}
\definecharacter hebrewTet        {\uchar5{"D8}}
\definecharacter hebrewYod        {\uchar5{"D9}}
\definecharacter hebrewKaffinal   {\uchar5{"DA}}
\definecharacter hebrewKaf        {\uchar5{"DB}}
\definecharacter hebrewLamed      {\uchar5{"DC}}
\definecharacter hebrewMemfinal   {\uchar5{"DD}}
\definecharacter hebrewMem        {\uchar5{"DE}}
\definecharacter hebrewNunfinal   {\uchar5{"DF}}
\definecharacter hebrewNun        {\uchar5{"E0}}
\definecharacter hebrewSamekh     {\uchar5{"E1}}
\definecharacter hebrewAyin       {\uchar5{"E2}}
\definecharacter hebrewPefinal    {\uchar5{"E3}}
\definecharacter hebrewPe         {\uchar5{"E4}}
\definecharacter hebrewTsadifinal {\uchar5{"E5}}
\definecharacter hebrewTsadi      {\uchar5{"E6}}
\definecharacter hebrewQof        {\uchar5{"E7}}
\definecharacter hebrewResh       {\uchar5{"E8}}
\definecharacter hebrewShin       {\uchar5{"E9}}
\definecharacter hebrewTav        {\uchar5{"EA}} % 05EA

\stopencoding

\endinput
