Re: [NTG-context] LMTX problem with XML

2021-02-15 Thread Pablo Rodriguez
On 2/14/21 10:32 PM, Hans Hagen wrote:
> On 2/14/2021 9:24 PM, Pablo Rodriguez wrote:
>
>> But I‘m afraid it will take some time before I can provide a minimal
>> sample showing the issue.
>
> We have plenty of time in these lock down days.

Many thanks for your reply, Hans.

Might I suggest a couple of implementations in ConTeXt for these
lockdown days?

Parallel streams (both in pages and columns) have been already mentioned
here by some other users.

BTW, a nice version of three streams in two facing pages can be seen at
https://archive.org/details/aristo-teles-poetica/page/n54/mode/1up.

The other suggestion would be page registers for footnotes (such as in
http://www.faenumpublishing.com/uploads/2/3/9/8/23987979/hippocrates_on_airs_waters_and_places_-_hayes_and_nimis_june_2013.pdf#page=126).

>> Many thanks again for your excellent work with ConTeXt,
> Maybe some bad tuc file? Sometimes wiping it helps.

I overlooked that XML output was different from a newer version of
pandoc (which I use in Windows).

The new version included the same class for parent and child element
(parent  and child ). Of course, this lead to crash, since my
lpath selection took for granted that only the parent  had that class.

In my case, copying everything to a new "testing" file (or bunch of
files) and start removing lines is the way to discover what is wrong in
the code.

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] LMTX problem with XML

2021-02-14 Thread Hans Hagen

On 2/14/2021 9:24 PM, Pablo Rodriguez wrote:


But I‘m afraid it will take some time before I can provide a minimal
sample showing the issue.


We have plenty of time in these lock down days.


Many thanks again for your excellent work with ConTeXt,

Maybe some bad tuc file? Sometimes wiping it helps.

Hans

-
  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
___


Re: [NTG-context] LMTX problem with XML

2021-02-14 Thread Pablo Rodriguez
On 2/14/21 5:47 PM, Hans Hagen wrote:
> On 2/14/2021 5:25 PM, Pablo Rodriguez wrote:
>> On 2/14/21 1:34 PM, Pablo Rodriguez wrote:
>>> Hans,
>>>
>>> the following sample breaks compilation with latest after release from
>>> 2021.02.05 17:45:
>>> [...]
>>> Current latest from 2021.02.13 00:28 complains about argument of \xmlw
>>> having an extra }.
>>
>> Hans,
>>
>> many thanks for your fix in current latest (2021.02.14 16:39).
> well, thanks for testing it and reporting issues; i'm stepwise removing
> some old hacks but one not always knows in advance if some ancient hack
> had other (positive) side effects, so the more testing the better

I need to test more, since I have an issue compiling XML sources that
only happens in Windows (and not in Linux).

The issue is really weird, since I can compile single chapters in both
OSes, but not the whole book in Windows.

But I‘m afraid it will take some time before I can provide a minimal
sample showing the issue.

Many thanks again for your excellent work with ConTeXt,

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] LMTX problem with XML

2021-02-14 Thread Hans Hagen

On 2/14/2021 5:25 PM, Pablo Rodriguez wrote:

On 2/14/21 1:34 PM, Pablo Rodriguez wrote:

Hans,

the following sample breaks compilation with latest after release from
2021.02.05 17:45:
[...]
Current latest from 2021.02.13 00:28 complains about argument of \xmlw
having an extra }.


Hans,

many thanks for your fix in current latest (2021.02.14 16:39).
well, thanks for testing it and reporting issues; i'm stepwise removing 
some old hacks but one not always knows in advance if some ancient hack 
had other (positive) side effects, so the more testing the better


Hans


-
  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
___


Re: [NTG-context] LMTX problem with XML

2021-02-14 Thread Pablo Rodriguez
On 2/14/21 1:34 PM, Pablo Rodriguez wrote:
> Hans,
>
> the following sample breaks compilation with latest after release from
> 2021.02.05 17:45:
> [...]
> Current latest from 2021.02.13 00:28 complains about argument of \xmlw
> having an extra }.

Hans,

many thanks for your fix in current latest (2021.02.14 16:39).

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
___


[NTG-context] LMTX problem with XML

2021-02-14 Thread Pablo Rodriguez
Hans,

the following sample breaks compilation with latest after release from
2021.02.05 17:45:

  \startbuffer[demo]
  http://www.w3.org/1999/xhtml;>

 
   In
 
 
   Body
 

  
  \stopbuffer

  \startxmlsetups xml:initialize
\xmlsetsetup{#1}
  {html|body|div|h1}
  {xml:*}

\xmlsetsetup{#1}
  {[contains(@class,'frontmatter')]}
  {xml:frontmatter}

\xmlsetsetup{#1}
  {[contains(@class,'bodymatter')]}
  {xml:bodymatter}
  \stopxmlsetups

  \xmlregistersetup{xml:initialize}

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


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

  \startxmlsetups xml:frontmatter
\startfrontmatter
\xmlflush{#1}
\stopfrontmatter
  \stopxmlsetups

  \startxmlsetups xml:bodymatter
\startbodymatter
\xmlflush{#1}
\stopbodymatter
  \stopxmlsetups

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

  \starttext
 \xmlprocessbuffer{main}{demo}{}
  \stoptext

Current latest from 2021.02.13 00:28 complains about argument of \xmlw
having an extra }.

I think this may be a bug in ConTeXt.

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
___