Hi,

there is a bug with the number conversion code when values from a commalist are 
used, e.g.

\starttext
\dorecurse{10}{#1:\convertnumber{set 1}{#1} }
\stoptext


The bug is in the "convert" function from the Lua part.

local function convert(method,n,language)
    local converter = language and converters[method..":"..language] or 
converters[method]
    if converter then
        return converter(n)
    else
        local lowermethod = lower(method)
        local linguistic  = counters[lowermethod]
        if linguistic then
            return do_alphabetic(n,linguistic,lowermethod == method and 
lowercharacter or uppercharacter)
        end
        local sequence = sequences[method]
        if sequence then
-           local set = sequences.set
-           if set then
-               local max = #set
+               local max = #sequence
                if n > max then
-                   return set[(n-1) % max + 1]
+                   return sequence[(n-1) % max + 1]
                else
-                   return set[n]
+                   return sequence[n]
                end
-           end
        end
        return n
    end
end

Wolfgang
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to