[luatex] Off topic: A quiz

Patrick Gundlach patrick at gundla.ch
Thu Dec 12 09:40:44 CET 2013


Hi all,

this has to do with the discussion we had about the selene unicode library a few years ago. Here is a quiz for you. You might think about it first, before trying it out. 

----------------------------------
match = unicode.utf8.match

if match("à","%s") then
    print("space")
else
    print("not a space")
end

if match("á","%s") then
    print("space")
else
    print("not a space")
end
----------------------------------


Now, what is printed?

Patrick




More information about the luatex mailing list