[NTG-context] braces removed in url

2021-03-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \setupinteraction[state=start]
  \starttext
  \startTEXpage[offset=1em]
  \def\MyURL#1{\goto{\hyphenatedurl{#1}}[url(#1)]}
  \MyURL{a={b}}\\
  \MyURL{a=\letterleftbrace b\letterrightbrace}\\
  \asciimode\MyURL{a={b}}\\
  \stopTEXpage
  \stoptext

For all three options, destination is a=#b. Both with MkIV and MkXL.

What am I missing to get the destination a={b}?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML/MathML namespace handling bug

2021-03-26 Thread Hans Hagen

On 3/26/2021 6:02 AM, Hugo Landau wrote:

in x-math.mkiv search for

\startxmlsetups mml:apply

and replace this bit:

 \edef\mmlapplyaction{\xmlfilter{#1}{/*/tag()}}
 \doifelsesetups {mml:apply:mml:\mmlapplyaction} {
 \xmlsetup{#1}{mml:apply:mml:\mmlapplyaction}
  } {
 \xmlsetup{#1}{mml:\mmlapplyaction}
  }

(btw, isn't content mathml more fun than presentation mathml?)

Works nicely. For  I also had to change this part from name() to
tag():

\startxmlsetups mml:relation
 \edef\mmlapplyaction{\xmlfilter{#1}{/*/tag()}}
 \MMLcreset 
\xmlsetup{#1}{mml:relation:\xmlattdef{#1}{align}{\MMLrelationalign}}
\stopxmlsetups

can you also check

\startxmlsetups mml:apply:inverse
\settrue\xmlinversefunction
\xmlsetup{#1}{mml:\xmlfilter{#1}{/mml:apply/*[2]/tag()}}
\stopxmlsetups


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___