17 Sep
2015
17 Sep
'15
4:47 p.m.
Dear list, I have the following sample: \startluacode function document.gouppercase(str) tex.print(str:upper()) end \stopluacode \unexpanded\def\MyUpper#1% {\ctxlua{document.gouppercase("#1")}} \starttext \doif{\MyUpper{adfalkjfaeñf}}{\MyUpper{aDFAlkjfaeñf}}{equal}{unequal} \ctxlua{if string.upper("adfalkjfaeñf") == string.upper("aDFAlkjfaeñf") then tex.print("equal") else tex.print("unequal") end} \stoptext Why are are the first two strings unequal? Many thanks for your help, Pablo -- http://www.ousia.tk