[NTG-context] interaction fails with footnotes (was: xml with interaction fails in footnotes)

Curiouslearn curiouslearn at gmail.com
Mon Mar 15 04:01:40 CET 2010


Have you updated to the latest context minimals version. That might
solve the problem. I had a similar  problem with including a clickable
URL in a footnote. Updating solved it.

On 3/14/10, Philipp Gesang <pgesang at ix.urz.uni-heidelberg.de> wrote:
> On 2010-03-15 <00:12:03>, Philipp Gesang wrote:
>> Good evening all,
>>
>>
>> I'm experiencing a weird behaviour when using my module to transliterate
>> stuff in a footnote.  ConTeXt fails with an undefined control sequence
>> if an only if I switch on interaction.
>>
>> The issue vanishes when I removing either the footnote environment or
>> the interaction or the transliteration or the tag with the text to be
>> transliterated.
>>
>> In the following minimal example I specified the lines that will make
>> context process the file when commented out.  Please note that
>> everything works fine outside xml as the transliteration immediately
>> after “\starttext” demonstrates.
> Correction: It doesn't work fine outside xml, too, when again put in a
> footnote.[1]  So forget about the xml part.  Interaction seems to be the
> culprit.
>
> Philipp
>
>
> [1] Like this:
> ---8<--------------------------------------------------------------------------
> Words before a footnote\footnote{
> \transliterate{раз, два, три}
> }
> ---8<--------------------------------------------------------------------------
>
>
>>
>> Thanks for any help,
>>
>>
>> Philipp
>>
>> ---8<--------------------------------------------------------------------------
>>
>> \enabletrackers[xml.entities]
>> \enabletrackers[xml.parse]
>> \enabletrackers[xml.path]
>> \enabletrackers[xml.profile]
>> \enabletrackers[xml.remap]
>> \enabletrackers[lxml.access]
>> \enabletrackers[lxml.comments]
>> \enabletrackers[lxml.loading]
>> \enabletrackers[lxml.manipulations]
>> \enabletrackers[lxml.setups]
>>
>> \setupinteraction[state=start]        %this one
>> \usemodule[transliterator]
>>
>> \startxmlsetups xml:testsetups
>>     \xmlsetsetup{\xmldocument}{*}{-}
>>     \xmlsetsetup{\xmldocument}{
>>       body|
>>       content|
>>       trru|                           %this one
>>       fn|
>>       }{xml:*}
>> \stopxmlsetups
>>
>> \xmlregistersetup{xml:testsetups}
>>
>> \startxmlsetups xml:body
>>     \xmlflush{#1}
>> \stopxmlsetups
>>
>> \startxmlsetups xml:content
>>     \xmlflush{#1}
>> \stopxmlsetups
>>
>> \startxmlsetups xml:fn
>>     \startfootnote                    %this together with …
>>     \xmlflush{#1}
>>     \stopfootnote                     %… this one
>> \stopxmlsetups
>>
>> \startxmlsetups xml:trru
>>   \starttransliterate                 %this together with …
>>     \xmlflush{#1}
>>   \stoptransliterate                  %… this one
>> \stopxmlsetups
>>
>> \starttext
>>
>> \transliterate{раз, два, три}
>>
>> \startbuffer
>> <body>
>>     <content>
>>       Content to include with a footnote
>>       <fn>
>>       <trru>раз, два, три</trru>      %this one
>>       </fn>
>>     </content>
>> </body>
>> \stopbuffer
>>
>> \xmlprocessbuffer{test}{}{}
>>
>> \stoptext
>>
>> ---8<--------------------------------------------------------------------------
>>
>> --
>> ()  ascii ribbon campaign - against html e-mail
>> /\  www.asciiribbon.org   - against proprietary attachments
>
>
>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context at 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
>> ___________________________________________________________________________________
>
>
> --
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
>

-- 
Sent from my mobile device


More information about the ntg-context mailing list