On 06.01.19 23:08, Hans Hagen wrote:
what do you mean with "running luatex alone" ; you can run scripts with
mtxrun --script yourscript foo.txt
(or do you mean something different)
Hi Hans,
thanks, this is what I meant! I guess I was trying to reinvent the wheel
and doing things in pure Lua
On 1/6/2019 8:14 PM, Thomas A. Schmitz wrote:
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 h
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
Thomas A. Schmitz schrieb am 06.01.19 um 18:53:
Hi everybody,
best wishes for (the still new) 2019! My question is not strictly a
ConTeXt problem, but about the way luatex (and pure Lua) can handle utf8
in lpeg. Here is my Lua example:
mystring = "abcdeφὴὰabcde"
local replace_table = {
a
Hi everybody,
best wishes for (the still new) 2019! My question is not strictly a
ConTeXt problem, but about the way luatex (and pure Lua) can handle utf8
in lpeg. Here is my Lua example:
mystring = "abcdeφὴὰabcde"
local replace_table = {
a = "y",
c = "z",
ὴ = "ή",
ὰ = "ά",
}
functi