ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupnotation[footnote][numberconversion=numerals] in latest beta
@ 2014-03-19 21:04 Pablo Rodriguez
  2014-03-19 21:12 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2014-03-19 21:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample that I cannot compile with latest beta:

\setupnotation[footnote][numberconversion=numerals]

\starttext
Text\footnote{Text.}.
\stoptext

numberconversion=numerals seems to be the problematic part.

Has this option been changed or is it a bug?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  \setupnotation[footnote][numberconversion=numerals] in latest beta
  2014-03-19 21:04 \setupnotation[footnote][numberconversion=numerals] in latest beta Pablo Rodriguez
@ 2014-03-19 21:12 ` Wolfgang Schuster
  2014-03-19 21:23   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-03-19 21:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.03.2014 um 22:04 schrieb Pablo Rodriguez <oinos@gmx.es>:

> Dear list,
> 
> I have the following sample that I cannot compile with latest beta:
> 
> \setupnotation[footnote][numberconversion=numerals]
> 
> \starttext
> Text\footnote{Text.}.
> \stoptext
> 
> numberconversion=numerals seems to be the problematic part.
> 
> Has this option been changed or is it a bug?

There is a typo in strc-doc.lua (missing c in front of tx_convertnumber):

local function process(index,numbers,ownnumbers,criterium,separatorset,conversion,conversionset,index,entry,result,preceding,done)
    -- todo: too much (100 steps)
    local number = numbers and (numbers[index] or 0)
    local ownnumber = ownnumbers and ownnumbers[index] or ""
    if number > criterium or (ownnumber ~= "") then
        local block = (entry.block ~= "" and entry.block) or sections.currentblock() -- added
        if preceding then
            local separator = sets.get("structure:separators",block,separatorset,preceding,".")
            if separator then
                if result then
                    result[#result+1] = strippedprocessor(separator)
                else
                    applyprocessor(separator)
                end
            end
            preceding = false
        end
        if result then
            if ownnumber ~= "" then
                result[#result+1] = ownnumber
            elseif conversion and conversion ~= "" then -- traditional (e.g. used in itemgroups) .. inherited!
                result[#result+1] = converters.convert(conversion,number)
            else
                local theconversion = sets.get("structure:conversions",block,conversionset,index,"numbers")
                result[#result+1] = converters.convert(theconversion,number)
            end
        else
            if ownnumber ~= "" then
                applyprocessor(ownnumber)
            elseif conversion and conversion ~= "" then -- traditional (e.g. used in itemgroups)
-               tx_convertnumber(conversion,number)
+               ctx_convertnumber(conversion,number)
            else
                local theconversion = sets.get("structure:conversions",block,conversionset,index,"numbers")
                local data = startapplyprocessor(theconversion)
                ctx_convertnumber(data or "numbers",number)
                stopapplyprocessor()
            end
        end
        return index, true
    else
        return preceding or false, done
    end
end

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  \setupnotation[footnote][numberconversion=numerals] in latest beta
  2014-03-19 21:12 ` Wolfgang Schuster
@ 2014-03-19 21:23   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2014-03-19 21:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 03/19/2014 10:12 PM, Wolfgang Schuster wrote:
> 
> Am 19.03.2014 um 22:04 schrieb Pablo Rodriguez <oinos@gmx.es>:
> 
>> Dear list,
>>
>> I have the following sample that I cannot compile with latest beta:
>>
>> \setupnotation[footnote][numberconversion=numerals]
>>
>> \starttext
>> Text\footnote{Text.}.
>> \stoptext
>>
>> numberconversion=numerals seems to be the problematic part.
>>
>> Has this option been changed or is it a bug?
> 
> There is a typo in strc-doc.lua (missing c in front of tx_convertnumber):

Many thanks for your quick reply and fix, Wolfgang.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-19 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 21:04 \setupnotation[footnote][numberconversion=numerals] in latest beta Pablo Rodriguez
2014-03-19 21:12 ` Wolfgang Schuster
2014-03-19 21:23   ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).