% (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: . [COMBINING COMMA ABOVE][COMBINING ACUTE ACCENT] => ">'" \1; . [COMBINING COMMA ABOVE][COMBINING GRAVE ACCENT] => ">`" \1; . [COMBINING COMMA ABOVE][COMBINING GREEK PERISPOMENI] => ">=" \1; . [COMBINING REVERSED COMMA ABOVE][COMBINING ACUTE ACCENT] => "<'" \1; . [COMBINING REVERSED COMMA ABOVE][COMBINING GRAVE ACCENT] => "<`" \1; . [COMBINING REVERSED COMMA ABOVE][COMBINING GREEK PERISPOMENI] => @"40 \1; . [COMBINING COMMA ABOVE]=> ">" \1; . [COMBINING REVERSED COMMA ABOVE] => "<" \1; . [COMBINING ACUTE ACCENT] => "'" \1; . [COMBINING GRAVE ACCENT] => "`" \1; . [COMBINING GREEK PERISPOMENI] => "=" \1; % 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 DIAERESIS] => "\UseMemAccent{t}{34}"; [COMBINING DIAERESIS BELOW] => "\UseMemAccent{u}{34}"; [COMBINING BREVE BELOW] => "\UseMemAccent{b}{20}"; [COMBINING INVERTED BREVE BELOW] => "\UseMemAccent{b}{1}"; [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-@"0021|@"0025|@"0028-@"003A|@"005B|@"005D) => \1;