core-con.mkiv: missing “)" -\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,"\currentlanguage"}} +\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,"\currentlanguage")}} core-con.lua: missing “w” in the last two local ordinals = { english = function(n) local two = n % 100 - if two == 11 or two == 12 or to == 13 then + if two == 11 or two == 12 or two == 13 then core-con.lua: print the number! function commands.ordinal(n,language) local t = language and ordinals[language] local o = t and t(n) + context(n) -- is this the right place? if o then context.highordinalstr(o) end end Wolfgang
On 28-6-2011 11:30, Wolfgang Schuster wrote:
core-con.mkiv: missing “)"
-\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,"\currentlanguage"}} +\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,"\currentlanguage")}}
maybe that one should be unexpandable ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster