[NTG-context] lua lpeg + utf8

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Sun Jan 6 20:14:18 CET 2019


On 06.01.19 19:20, Wolfgang Schuster wrote:
> \starttext
> 
> \startluacode
> 
> print("abcdeφὴὰabcde")
> 
> local remap = utf.remapper { a = "y", c = "z", ὴ = "ή", ὰ = "ά" }
> 
> print(remap("abcdeφὴὰabcde"))
> 
> \stopluacode
> 
> \stoptext

Wolfgang, thank you, I should have looked into this manual! Is there an 
easy way to load the necessary additional libraries if I'm running 
luatex alone, outside of mtxrun?

Thomas


More information about the ntg-context mailing list