On Thu, Dec 12, 2013 at 9:40 AM, Patrick Gundlach <[email protected]> wrote:

> 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
>
>
>
$ luatex test.lua
space
not a space


-- 
luigi

Reply via email to