ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* wrong xml char handling
@ 2016-02-09 10:36 Pablo Rodriguez
  2016-02-09 17:02 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2016-02-09 10:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I’m afraid there may be a bug in betas from February (including the
latest one from 2016.02.08 15:35):

    \startbuffer[demo]
    <doc>
         <p>Link: <a href="http://a.b/c#d">http://a.b/c#d</a></p>
    </doc>
    \stopbuffer

    \starttext

    \startxmlsetups xml:initialize
         \xmlsetsetup{#1}{p|doc|a}{xml:*}
         \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo}
    \stopxmlsetups

    \xmlregistersetup{xml:initialize}

    \startxmlsetups xml:doc
         \xmlflush{#1}
    \stopxmlsetups

    \startxmlsetups xml:p
         \xmlflush{#1}\par
    \stopxmlsetups

    \startxmlsetups xml:a
        \mypersonalurl{\xmlflush{#1}}
    \stopxmlsetups

    \def\mypersonalurl#1{\bgroup\tt\goto{%
        \hyphenatedurl{#1}}[url(#1)]\egroup}%
        \unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

    \xmlprocessbuffer{main}{demo}{}

    \stoptext

Output with latest beta:

    Link: http://a.b/c\Ux {23}d

Output with beta from 2016.01.14 09:55;

    Link: http://a.b/c#d

I guess this is a bug. Could anyone else confirm this?

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] 6+ messages in thread

* Re: wrong xml char handling
  2016-02-09 10:36 wrong xml char handling Pablo Rodriguez
@ 2016-02-09 17:02 ` Hans Hagen
  2016-02-10 11:19   ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2016-02-09 17:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
> Dear list,
>
> I’m afraid there may be a bug in betas from February (including the
> latest one from 2016.02.08 15:35):
>
>      \startbuffer[demo]
>      <doc>
>           <p>Link: <a href="http://a.b/c#d">http://a.b/c#d</a></p>
>      </doc>
>      \stopbuffer
>
>      \starttext
>
>      \startxmlsetups xml:initialize
>           \xmlsetsetup{#1}{p|doc|a}{xml:*}
>           \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo}
>      \stopxmlsetups
>
>      \xmlregistersetup{xml:initialize}
>
>      \startxmlsetups xml:doc
>           \xmlflush{#1}
>      \stopxmlsetups
>
>      \startxmlsetups xml:p
>           \xmlflush{#1}\par
>      \stopxmlsetups
>
>      \startxmlsetups xml:a
>          \mypersonalurl{\xmlflush{#1}}
>      \stopxmlsetups
>
>      \def\mypersonalurl#1{\bgroup\tt\goto{%
>          \hyphenatedurl{#1}}[url(#1)]\egroup}%
>          \unexpanded\def\href#1#2{\goto{#2} [url(#1)]}
>
>      \xmlprocessbuffer{main}{demo}{}
>
>      \stoptext
>
> Output with latest beta:
>
>      Link: http://a.b/c\Ux {23}d
>
> Output with beta from 2016.01.14 09:55;
>
>      Link: http://a.b/c#d
>
> I guess this is a bug. Could anyone else confirm this?

fixed in next beta

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: wrong xml char handling
  2016-02-09 17:02 ` Hans Hagen
@ 2016-02-10 11:19   ` Pablo Rodriguez
  2016-02-10 12:51     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2016-02-10 11:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/09/2016 06:02 PM, Hans Hagen wrote:
> On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
>> [...]
>> Output with latest beta:
>>
>>      Link: http://a.b/c\Ux {23}d
>>
>> Output with beta from 2016.01.14 09:55;
>>
>>      Link: http://a.b/c#d
>>
>> I guess this is a bug. Could anyone else confirm this?
> 
> fixed in next beta

Many thanks for the fix. Hans.

Sorry for sounding impatient, but since next beta may take longer to be
released (because of columnsets), would it be possible to have a patch
to use latest released beta?

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] 6+ messages in thread

* Re: wrong xml char handling
  2016-02-10 11:19   ` Pablo Rodriguez
@ 2016-02-10 12:51     ` Hans Hagen
  2016-02-10 14:38       ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2016-02-10 12:51 UTC (permalink / raw)
  To: ntg-context

On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
> On 02/09/2016 06:02 PM, Hans Hagen wrote:
>> On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
>>> [...]
>>> Output with latest beta:
>>>
>>>       Link: http://a.b/c\Ux {23}d
>>>
>>> Output with beta from 2016.01.14 09:55;
>>>
>>>       Link: http://a.b/c#d
>>>
>>> I guess this is a bug. Could anyone else confirm this?
>>
>> fixed in next beta
>
> Many thanks for the fix. Hans.
>
> Sorry for sounding impatient, but since next beta may take longer to be
> released (because of columnsets), would it be possible to have a patch
> to use latest released beta?

patch involves more than one line in a few files

fwiw: here we never used the latest beta in critical workflows unless 
tested beforehand (so we always lag a few betas behind)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: wrong xml char handling
  2016-02-10 12:51     ` Hans Hagen
@ 2016-02-10 14:38       ` Pablo Rodriguez
  2016-02-10 15:33         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2016-02-10 14:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/10/2016 01:51 PM, Hans Hagen wrote:
> On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
>> [...]
>> Sorry for sounding impatient, but since next beta may take longer to be
>> released (because of columnsets), would it be possible to have a patch
>> to use latest released beta?
> 
> patch involves more than one line in a few files

OK, this is fine for me. I only asked because I thought it was a simple
replacement.

> fwiw: here we never used the latest beta in critical workflows unless 
> tested beforehand (so we always lag a few betas behind)

Many thanks for the advice.

My workflow isn’t really critical. Sorry, but I’m afraid I don’t earn a
living (or even make money) with ConTeXt.

I think it makes sense that I work with latest beta. This is the only
way I can reasonably test it, so I may report issues that will benefit
every ConTeXt user (including myself :-)).

But, please, let me know whehter my previous assumption is wrong.

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] 6+ messages in thread

* Re: wrong xml char handling
  2016-02-10 14:38       ` Pablo Rodriguez
@ 2016-02-10 15:33         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2016-02-10 15:33 UTC (permalink / raw)
  To: ntg-context

On 2/10/2016 3:38 PM, Pablo Rodriguez wrote:
> On 02/10/2016 01:51 PM, Hans Hagen wrote:
>> On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
>>> [...]
>>> Sorry for sounding impatient, but since next beta may take longer to be
>>> released (because of columnsets), would it be possible to have a patch
>>> to use latest released beta?
>>
>> patch involves more than one line in a few files
>
> OK, this is fine for me. I only asked because I thought it was a simple
> replacement.
>
>> fwiw: here we never used the latest beta in critical workflows unless
>> tested beforehand (so we always lag a few betas behind)
>
> Many thanks for the advice.
>
> My workflow isn’t really critical. Sorry, but I’m afraid I don’t earn a
> living (or even make money) with ConTeXt.
>
> I think it makes sense that I work with latest beta. This is the only
> way I can reasonably test it, so I may report issues that will benefit
> every ConTeXt user (including myself :-)).
>
> But, please, let me know whehter my previous assumption is wrong.

sounds ok to me but then you have to wait till i update (one of these days)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-02-10 15:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 10:36 wrong xml char handling Pablo Rodriguez
2016-02-09 17:02 ` Hans Hagen
2016-02-10 11:19   ` Pablo Rodriguez
2016-02-10 12:51     ` Hans Hagen
2016-02-10 14:38       ` Pablo Rodriguez
2016-02-10 15:33         ` Hans Hagen

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).