% LTHUNI.enc
% by Poonlap Veerathanabutr <poonlap@linux.thai.net>
% 2002-12-30
% 2003-09-15 Chanop Silpa-Anan <chanop@debian.org>
%  * Use new unicode variant name.
% 2011-12-26  Theppitak Karoonboonyanan <thep@linux.thai.net>
%  * Support more common Latin characters with native font glyphs.
%
% This is LaTeX LTH (Locale Thai) encoding for unicode encoded fonts
%
%ligature for making LEFT vowels, tone marks and Nikhahit
%PoPla left vowel
%LIGKERN uni0E1B uni0E31 |=:> uni0E31.left ;
%LIGKERN uni0E1B uni0E34 |=:> uni0E34.left ;
%LIGKERN uni0E1B uni0E35 |=:> uni0E35.left ;
%LIGKERN uni0E1B uni0E36 |=:> uni0E36.left ;
%LIGKERN uni0E1B uni0E37 |=:> uni0E37.left ;
%LIGKERN uni0E1B uni0E38 |=:> uni0E38.left ;
%LIGKERN uni0E1B uni0E39 |=:> uni0E39.left ;
%LIGKERN uni0E1B uni0E3A |=:> uni0E3A.left ;
%LIGKERN uni0E1B uni0E47 |=:> uni0E47.left ;
%Popla left tone marks, thanthakhat, nikhahit
%LIGKERN uni0E1B uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E1B uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E1B uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E1B uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E1B uni0E4C.low |=:> uni0E4C.low_left ;
%LIGKERN uni0E1B uni0E4D |=:> uni0E4D.left ;
%Popla sara-am
%LIGKERN uni0E1B uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4D.left uni0E33 |=:> uni0E32 ;

%FoFa left vowel
%LIGKERN uni0E1D uni0E31 |=:> uni0E31.left ;
%LIGKERN uni0E1D uni0E34 |=:> uni0E34.left ;
%LIGKERN uni0E1D uni0E35 |=:> uni0E35.left ;
%LIGKERN uni0E1D uni0E36 |=:> uni0E36.left ;
%LIGKERN uni0E1D uni0E37 |=:> uni0E37.left ;
%LIGKERN uni0E1D uni0E38 |=:> uni0E38.left ;
%LIGKERN uni0E1D uni0E39 |=:> uni0E39.left ;
%LIGKERN uni0E1D uni0E3A |=:> uni0E3A.left ;
%LIGKERN uni0E1D uni0E47 |=:> uni0E47.left ;
%FoFa left tone marks, thanthakhat, nikhahit
%LIGKERN uni0E1D uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E1D uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E1D uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E1D uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E1D uni0E4C.low |=:> uni0E4C.low_left ;
%LIGKERN uni0E1D uni0E4D |=:> uni0E4D.left ;
%FoFa sara-am
%LIGKERN uni0E1D uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4D.left uni0E33 |=:> uni0E32 ;

%FoFan left vowel
%LIGKERN uni0E1F uni0E31 |=:> uni0E31.left ;
%LIGKERN uni0E1F uni0E34 |=:> uni0E34.left ;
%LIGKERN uni0E1F uni0E35 |=:> uni0E35.left ;
%LIGKERN uni0E1F uni0E36 |=:> uni0E36.left ;
%LIGKERN uni0E1F uni0E37 |=:> uni0E37.left ;
%LIGKERN uni0E1F uni0E38 |=:> uni0E38.left ;
%LIGKERN uni0E1F uni0E39 |=:> uni0E39.left ;
%LIGKERN uni0E1F uni0E3A |=:> uni0E3A.left ;
%LIGKERN uni0E1F uni0E47 |=:> uni0E47.left ;
%FoFan left tone marks, thanthakhat, nikhahit
%LIGKERN uni0E1F uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E1F uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E1F uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E1F uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E1F uni0E4C.low |=:> uni0E4C.low_left ;
%LIGKERN uni0E1F uni0E4D |=:> uni0E4D.left ;
%FoFan sara-am
%LIGKERN uni0E1F uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4D.left uni0E33 |=:> uni0E32 ;

%LoChula left vowel
%LIGKERN uni0E2C uni0E31 |=:> uni0E31.left ;
%LIGKERN uni0E2C uni0E34 |=:> uni0E34.left ;
%LIGKERN uni0E2C uni0E35 |=:> uni0E35.left ;
%LIGKERN uni0E2C uni0E36 |=:> uni0E36.left ;
%LIGKERN uni0E2C uni0E37 |=:> uni0E37.left ;
%LIGKERN uni0E2C uni0E38 |=:> uni0E38.left ;
%LIGKERN uni0E2C uni0E39 |=:> uni0E39.left ;
%LIGKERN uni0E2C uni0E3A |=:> uni0E3A.left ;
%LIGKERN uni0E2C uni0E47 |=:> uni0E47.left ;
%LoChula left tone marks, thanthakhat, nikhahit
%LIGKERN uni0E2C uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E2C uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E2C uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E2C uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E2C uni0E4C.low |=:> uni0E4C.low_left ;
%LIGKERN uni0E2C uni0E4D |=:> uni0E4D.left ;
%LoChula sara-am
%LIGKERN uni0E2C uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4D.left uni0E33 |=:> uni0E32 ;

%ligature for making left SaraAm with HiLeft tone marks
%LIGKERN uni0E48.low_left uni0E33 =:| uni0E48.left ;
%LIGKERN uni0E48.left uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E49.low_left uni0E33 =:| uni0E49.left ;
%LIGKERN uni0E49.left uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4A.low_left uni0E33 =:| uni0E4A.left ;
%LIGKERN uni0E4A.left uni0E33 |=:|> uni0E4D.left ;
%LIGKERN uni0E4B.low_left uni0E33 =:| uni0E4B.left ;
%LIGKERN uni0E4B.left uni0E33 |=:|> uni0E4D.left ;

%LIGKERN uni0E48.low uni0E33 =:| uni0E48 ;
%LIGKERN uni0E49.low uni0E33 =:| uni0E49 ;
%LIGKERN uni0E4A.low uni0E33 =:| uni0E4A ;
%LIGKERN uni0E4B.low uni0E33 =:| uni0E4B ;

%ligature for making HI tone marks
%LIGKERN uni0E31 uni0E48.low |=:> uni0E48 ;
%LIGKERN uni0E31 uni0E49.low |=:> uni0E49 ;
%LIGKERN uni0E31 uni0E4A.low |=:> uni0E4A ;
%LIGKERN uni0E31 uni0E4B.low |=:> uni0E4B ;
%LIGKERN uni0E34 uni0E48.low |=:> uni0E48 ;
%LIGKERN uni0E34 uni0E49.low |=:> uni0E49 ;
%LIGKERN uni0E34 uni0E4A.low |=:> uni0E4A ;
%LIGKERN uni0E34 uni0E4B.low |=:> uni0E4B ;
%LIGKERN uni0E34 uni0E4C.low |=:> uni0E4C ;
%LIGKERN uni0E35 uni0E48.low |=:> uni0E48 ;
%LIGKERN uni0E35 uni0E49.low |=:> uni0E49 ;
%LIGKERN uni0E35 uni0E4A.low |=:> uni0E4A ;
%LIGKERN uni0E35 uni0E4B.low |=:> uni0E4B ;
%LIGKERN uni0E35 uni0E4C.low |=:> uni0E4C ;
%LIGKERN uni0E36 uni0E48.low |=:> uni0E48 ;
%LIGKERN uni0E36 uni0E49.low |=:> uni0E49 ;
%LIGKERN uni0E36 uni0E4A.low |=:> uni0E4A ;
%LIGKERN uni0E36 uni0E4B.low |=:> uni0E4B ;
%LIGKERN uni0E36 uni0E4C.low |=:> uni0E4C ;
%LIGKERN uni0E37 uni0E48.low |=:> uni0E48 ;
%LIGKERN uni0E37 uni0E49.low |=:> uni0E49 ;
%LIGKERN uni0E37 uni0E4A.low |=:> uni0E4A ;
%LIGKERN uni0E37 uni0E4B.low |=:> uni0E4B ;
%LIGKERN uni0E37 uni0E4C.low |=:> uni0E4C ;

%ligature for making LEFT HI tone marks and thantakhat
%LIGKERN uni0E31.left uni0E48.low |=:> uni0E48.left ;
%LIGKERN uni0E34.left uni0E48.low |=:> uni0E48.left ;
%LIGKERN uni0E35.left uni0E48.low |=:> uni0E48.left ;
%LIGKERN uni0E36.left uni0E48.low |=:> uni0E48.left ;
%LIGKERN uni0E37.left uni0E48.low |=:> uni0E48.left ;

%LIGKERN uni0E31.left uni0E49.low |=:> uni0E49.left ;
%LIGKERN uni0E34.left uni0E49.low |=:> uni0E49.left ;
%LIGKERN uni0E35.left uni0E49.low |=:> uni0E49.left ;
%LIGKERN uni0E36.left uni0E49.low |=:> uni0E49.left ;
%LIGKERN uni0E37.left uni0E49.low |=:> uni0E49.left ;

%LIGKERN uni0E31.left uni0E4A.low |=:> uni0E4A.left ;
%LIGKERN uni0E34.left uni0E4A.low |=:> uni0E4A.left ;
%LIGKERN uni0E35.left uni0E4A.low |=:> uni0E4A.left ;
%LIGKERN uni0E36.left uni0E4A.low |=:> uni0E4A.left ;
%LIGKERN uni0E37.left uni0E4A.low |=:> uni0E4A.left ;

%LIGKERN uni0E31.left uni0E4B.low |=:> uni0E4B.left ;
%LIGKERN uni0E34.left uni0E4B.low |=:> uni0E4B.left ;
%LIGKERN uni0E35.left uni0E4B.low |=:> uni0E4B.left ;
%LIGKERN uni0E36.left uni0E4B.low |=:> uni0E4B.left ;
%LIGKERN uni0E37.left uni0E4B.low |=:> uni0E4B.left ;

%LIGKERN uni0E34.left uni0E4C.low |=:> uni0E4C.left ;

%ligature for making LEFT LOW tone marks and thantakhat
%LIGKERN uni0E38.left uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E39.left uni0E48.low |=:> uni0E48.low_left ;
%LIGKERN uni0E3A.left uni0E48.low |=:> uni0E48.low_left ;

%LIGKERN uni0E38.left uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E39.left uni0E49.low |=:> uni0E49.low_left ;
%LIGKERN uni0E3A.left uni0E49.low |=:> uni0E49.low_left ;

%LIGKERN uni0E38.left uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E39.left uni0E4A.low |=:> uni0E4A.low_left ;
%LIGKERN uni0E3A.left uni0E4A.low |=:> uni0E4A.low_left ;

%LIGKERN uni0E38.left uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E39.left uni0E4B.low |=:> uni0E4B.low_left ;
%LIGKERN uni0E3A.left uni0E4B.low |=:> uni0E4B.low_left ;

%LIGKERN uni0E38.left uni0E4C.low |=:> uni0E4C.low_left ;

%ligature for making HI MaiTaikhu and Nikhahit
%LIGKERN uni0E31 uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E34 uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E35 uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E36 uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E37 uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E31.left uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E34.left uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E35.left uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E36.left uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E37.left uni0E47 |=:> uni0E47.high ;
%LIGKERN uni0E31 uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E34 uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E35 uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E36 uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E37 uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E31.left uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E34.left uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E35.left uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E36.left uni0E4D |=:> uni0E4D.high ;
%LIGKERN uni0E37.left uni0E4D |=:> uni0E4D.high ;

%ligature for making LOW SaraU SaraUu and Phinthu
%LIGKERN uni0E0E uni0E38 |=:> uni0E38.low ;
%LIGKERN uni0E0E uni0E39 |=:> uni0E39.low ;
%LIGKERN uni0E0E uni0E3A |=:> uni0E3A.low ;
%LIGKERN uni0E0F uni0E38 |=:> uni0E38.low ;
%LIGKERN uni0E0F uni0E39 |=:> uni0E39.low ;
%LIGKERN uni0E0F uni0E3A |=:> uni0E3A.low ;

%ligature for making YoYingDescless and ThoThanDescless
%LIGKERN uni0E0D uni0E38 =:|> uni0E0D.descless ;
%LIGKERN uni0E0D uni0E39 =:|> uni0E0D.descless ;
%LIGKERN uni0E0D uni0E3A =:|> uni0E0D.descless ;
%LIGKERN uni0E10 uni0E38 =:|> uni0E10.descless ;
%LIGKERN uni0E10 uni0E39 =:|> uni0E10.descless ;
%LIGKERN uni0E10 uni0E3A =:|> uni0E10.descless ;

%ligature for making Lakkhangyao
%LIGKERN uni0E24 uni0E32 |=:> uni0E45 ;
%LIGKERN uni0E26 uni0E32 |=:> uni0E45 ;

%default ligature and kern set normally built-in in afm2tfm
%LIGKERN question quoteleft =: questiondown ; exclam quoteleft =: exclamdown ;
%LIGKERN hyphen hyphen =: endash ; endash hyphen =: emdash ;
%LIGKERN quoteleft quoteleft =: quotedblleft ;
%LIGKERN quoteright quoteright =: quotedblright ;
%LIGKERN space {} * ; * {} space ; zero {} * ; * {} zero ;
%LIGKERN one {} * ; * {} one ; two {} * ; * {} two ;
%LIGLERN three {} * ; * {} three ; four {} * ; * {} four ;
%LIGLERN five {} * ; * {} five ; six {} * ; * {} six ;
%LIGKERN seven {} * ; * {} seven ; eight {} * ; * {} eight ;
%LIGKERN nine {} * ; * {} nine ;
%LIGKERN comma comma =: quotedblbase ; less less =: guillemotleft ;
%LIGKERN greater greater =: guillemotright ;
%LIGKERN f f =: ff ; f i =: fi ; f l =: fl ;
%LIGKERN ff i =: ffi ; ff l =: ffl ;

/LTHEncoding [
% 0x00
/.notdef /.notdef /.notdef /.notdef
/dagger /daggerdbl /section /paragraph
/copyright /registered /trademark /germandbls
/ae /AE /oe /OE
% 0x10
/exclamdown /questiondown /quotedblbase /guillemotleft 
/guillemotright /uni0E38.left /uni0E39.left /uni0E3A.left
/perthousand /dotlessi /dotlessj /ff
/fi /fl /ffi /ffl
% 0x20
/space /exclam /quotedbl /numbersign
/dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus
/comma /hyphen /period /slash
% 0x30
/zero /one /two /three
/four /five /six /seven
/eight /nine /colon /semicolon
/less /equal /greater /question
% 0x40
/at /A /B /C
/D /E /F /G
/H /I /J /K
/L /M /N /O
% 0x50
/P /Q /R /S
/T /U /V /W
/X /Y /Z /bracketleft
/backslash /bracketright /asciicircum /underscore
% 0x60
/quoteleft /a /b /c
/d /e /f /g
/h /i /j /k
/l /m /n /o
% 0x70
/p /q /r /s
/t /u /v /w
/x /y /z /braceleft
/bar /braceright /asciitilde /.notdef
% 0x80
/uni0E10.descless /uni0E34.left /uni0E35.left /uni0E36.left
/uni0E37.left /ellipsis /uni0E48.low_left /uni0E49.low_left
/uni0E4A.low_left /uni0E4B.low_left /uni0E4C.low_left /uni0E48
/uni0E49 /uni0E4A /uni0E4B /uni0E4C
% 0x90
/uni0E0D.descless /.notdef /.notdef /quotedblleft
/quotedblright /bullet /endash /emdash
/uni0E31.left /uni0E4D.left /uni0E47.left /uni0E48.left
/uni0E49.left /uni0E4A.left /uni0E4B.left /uni0E4C.left
% 0xA0
/nonbreakingspace /uni0E01 /uni0E02 /uni0E03
/uni0E04 /uni0E05 /uni0E06 /uni0E07
/uni0E08 /uni0E09 /uni0E0A /uni0E0B
/uni0E0C /uni0E0D /uni0E0E /uni0E0F
% 0xB0
/uni0E10 /uni0E11 /uni0E12 /uni0E13
/uni0E14 /uni0E15 /uni0E16 /uni0E17
/uni0E18 /uni0E19 /uni0E1A /uni0E1B
/uni0E1C /uni0E1D /uni0E1E /uni0E1F
% 0xC0
/uni0E20 /uni0E21 /uni0E22 /uni0E23
/uni0E24 /uni0E25 /uni0E26 /uni0E27
/uni0E28 /uni0E29 /uni0E2A /uni0E2B
/uni0E2C /uni0E2D /uni0E2E /uni0E2F
% 0xD0
/uni0E30 /uni0E31 /uni0E32 /uni0E33
/uni0E34 /uni0E35 /uni0E36 /uni0E37
/uni0E38 /uni0E39 /uni0E3A /uni0E4D.high
/zerowidthspace /dottedcircle /uni0E47.high /uni0E3F
% 0xE0
/uni0E40 /uni0E41 /uni0E42 /uni0E43
/uni0E44 /uni0E45 /uni0E46 /uni0E47
/uni0E48.low /uni0E49.low /uni0E4A.low /uni0E4B.low
/uni0E4C.low /uni0E4D /uni0E4E /uni0E4F
% 0xF0
/uni0E50 /uni0E51 /uni0E52 /uni0E53
/uni0E54 /uni0E55 /uni0E56 /uni0E57
/uni0E58 /uni0E59 /uni0E5A /uni0E5B
/uni0E38.low /uni0E39.low /uni0E3A.low /.notdef
] def
