certik / slabikar-otf

https://certik.github.io/slabikar-otf/
MIT License
12 stars 3 forks source link

XX use Lua #6

Closed certik closed 1 year ago

certik commented 1 year ago

The minimal reproducible example is:

languagesystem DFLT dflt;
languagesystem latn dflt;

lookup LETTER_END {
    substitute a' by a end;
} LETTER_END;

feature liga {
  substitute a' lookup LETTER_END;
} liga;

And applying this patch makes it work with LuaTeX:

--- a/font.ufo/features.fea
+++ b/font.ufo/features.fea
@@ -1,10 +1,6 @@
 languagesystem DFLT dflt;
 languagesystem latn dflt;

-lookup LETTER_END {
-    substitute a' by a end;
-} LETTER_END;
-
 feature liga {
-  substitute a' lookup LETTER_END;
+  substitute a' by a end;
 } liga;