match_case.fea 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ### Lowercase/uppercase operators
  2. # Must go after hyphen_arrows.fea
  3. lookup lowercase_hyphen {
  4. ignore sub @Tall \hyphen' @Lowercase;
  5. ignore sub @Lowercase \hyphen' @Tall;
  6. sub \hyphen' @Lowercase by \hyphen.lc;
  7. sub @Lowercase \hyphen' by \hyphen.lc;
  8. } lowercase_hyphen;
  9. lookup lowercase_plus {
  10. ignore sub @Tall \plus' @Lowercase;
  11. ignore sub @Lowercase \plus' @Tall;
  12. sub \plus' @Lowercase by \plus.lc;
  13. sub @Lowercase \plus' by \plus.lc;
  14. } lowercase_plus;
  15. lookup lowercase_asterisk {
  16. ignore sub @Tall \asterisk' @Lowercase;
  17. ignore sub @Lowercase \asterisk' @Tall;
  18. sub \asterisk' @Lowercase by \asterisk.lc;
  19. sub @Lowercase \asterisk' by \asterisk.lc;
  20. } lowercase_asterisk;
  21. lookup lowercase_asteriskmath {
  22. ignore sub @Tall \asteriskmath' @Lowercase;
  23. ignore sub @Lowercase \asteriskmath' @Tall;
  24. sub \asteriskmath' @Lowercase by \asteriskmath.lc;
  25. sub @Lowercase \asteriskmath' by \asteriskmath.lc;
  26. } lowercase_asteriskmath;
  27. lookup uppercase_colon {
  28. ignore sub @Tall \colon' @Lowercase;
  29. ignore sub @Lowercase \colon' @Tall;
  30. sub @Tall \colon' by \colon.uc;
  31. sub \colon' @Tall by \colon.uc;
  32. # pos @Tall \colon' <0 160 0 0>;
  33. # pos \colon' @Tall <0 160 0 0>;
  34. } uppercase_colon;