[luatex] Off topic: A quiz

Arthur Reutenauer arthur.reutenauer at normalesup.org
Thu Dec 12 13:30:18 CET 2013


  (I didn't try it, I promise.)

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

  à is U+00E0, which is 0xc3 0xa0 in UTF-8, and U+00A0 is the
unbreakable space, so I'm guessing we get "space".

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

  The two UTF-8 bytes are 0xc3 0xa2 here, and I can't remember off hand
what 0xa2, but I'm guessing "not a space".

	Arthur


More information about the luatex mailing list