[luatex] Off topic: A quiz
luigi scarso
luigi.scarso at gmail.com
Thu Dec 12 09:46:58 CET 2013
On Thu, Dec 12, 2013 at 9:40 AM, Patrick Gundlach <patrick at gundla.ch> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20131212/80f0fbad/attachment.html>
More information about the luatex
mailing list