% (c) 2001-2004 Javier Bezos input: 2; output: 1; states: acc, end; aliases: topaccent = (@"0300-@"0315 | @"031A-@"031B | @"033D-@"0344); botaccent = (@"0316-@"0319 | @"031C-@"0333 | @"0339-@"033C | @"0345); overaccent = (@"0334-@"0338); accent = (@"0300-@"0345); expressions: % Combine if composed form not in main font ^({accent}) {topaccent} {topaccent} {accent} => <= \4 "c{" \3 "c{" \2 "l{" \1 "}}}" @"1B ; ^({accent}) {topaccent} {botaccent} {topaccent} => <= \3 "c{" \4 "c{" \2 "l{" \1 "}}}" @"1B ; ^({accent}) {botaccent} {topaccent} {topaccent} => <= \2 "c{" \4 "c{" \3 "l{" \1 "}}}" @"1B ; ^({accent}) {topaccent} {accent} => <= \3 "c{" \2 "l{" \1 "}}" @"1B ; ^({accent}) {botaccent} {topaccent} => <= \2 "c{" \3 "l{" \1 "}}" @"1B ; ^({accent}) {accent} => <= \2 "l{" \1 "}" @"1B ; @"1B => ; [COMBINING GRAVE ACCENT] => "\UseMemAccent{t}{0}"; [COMBINING GRAVE ACCENT BELOW] => "\UseMemAccent{u}{0}"; [COMBINING ACUTE ACCENT] => "\UseMemAccent{t}{1}"; [COMBINING ACUTE ACCENT BELOW] => "\UseMemAccent{u}{1}"; [COMBINING CIRCUMFLEX ACCENT] => "\UseMemAccent{t}{2}"; [COMBINING CIRCUMFLEX ACCENT BELOW] => "\UseMemAccent{u}{2}"; [COMBINING TILDE] => "\UseMemAccent{t}{3}"; [COMBINING TILDE BELOW] => "\UseMemAccent{u}{3}"; [COMBINING MACRON] => "\UseMemAccent{t}{9}"; [COMBINING MACRON BELOW] => "\UseMemAccent{u}{9}"; [COMBINING BREVE] => "\UseMemAccent{t}{8}"; [COMBINING BREVE BELOW] => "\UseMemAccent{u}{8}"; [COMBINING DOT ABOVE] => "\UseMemAccent{t}{10}"; [COMBINING DOT BELOW] => "\UseMemAccent{u}{10}"; [COMBINING DIAERESIS] => "\UseMemAccent{t}{4}"; [COMBINING DIAERESIS BELOW] => "\UseMemAccent{u}{4}"; [COMBINING RING ABOVE] => "\UseMemAccent{t}{6}"; [COMBINING RING BELOW] => "\UseMemAccent{u}{6}"; [COMBINING DOUBLE ACUTE ACCENT] => "\UseMemAccent{t}{5}"; [COMBINING CARON] => "\UseMemAccent{t}{7}"; [COMBINING CARON BELOW] => "\UseMemAccent{u}{7}"; [COMBINING CEDILLA] => "\UseMemAccent{c}{11}"; [COMBINING OGONEK] => "\UseMemAccent{k}{12}"; [COMBINING COMMA BELOW] => "\UseMemAccent{p}{,}"; [COMBINING DOT BELOW] => "\UseMemAccent{p}{.}"; % PUA -> ASCII @"E125 => "\MemMoveOtherChar\%"; % as a special case (37). (@"E100-@"E17F) => "\MemMoveOtherChar\" #(\1 - @"E100); % Glyphs in main font with same value as Unicode characters (@"0020-@"0026|@"0028-@"005F|@"0061-@"007E) => \1;