* Re: Problem with XML entities in titles [2]
@ 2007-10-04 14:36 Richard Gabriel
2007-10-04 18:26 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Richard Gabriel @ 2007-10-04 14:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2390 bytes --]
Hello once again,
I've puzzled my brain for a while ;-)
and then I came to the following solution:
\def\ExChapter#1{
\expanded{\chapter{#1}}
}
\defineXMLcommand[chapter]{
\defineXMLargument[title]\ExChapter
}
>From the first tests, it seems to work fine, anyway, I'm not sure if it won't break anything else... :-/
Anyway, thank for your hint with the expansion!
-Richard
_____
From: Wolfgang Schuster [mailto:schuster.wolfgang@googlemail.com]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Thu, 04 Oct 2007 13:47:27 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]
2007/10/4, Richard Gabriel <rgabriel@kerio.com>:
> Hello Hans,
>
> some time ago I've reported this problem with character entities. I've just
> upgraded to ConTeXt 2007-09-28, and the problem still persists!
> Could you please look into it? A simple test file is attached.
>
> Many thanks,
> Richard
Hello Richard,
I'm not Hans but I can also give you a solution to your problem.
This is related to your own definition for the chapter header and
ConTeXt's mechanism to save the two pass information of the headers,
you should save the header text and expand the header command
with the header text, you can use my example for your problem.
BTW: Your xml file is valied because you forgot to include the
chapter end tag.
\defineXMLenvironment [chapter]
{\defineXMLsave[title]}
{\expanded{\chapter{\XMLflush{title}}}}
\defineXMLenvironment[para] \dontleavehmode \par
\defineXMLentities [tex] {tex} {\TeX}
\starttext
\completecontent
\startXMLdata
<chapter><title>This is a testing &tex; chapter</title></chapter>
<para>Some meaningless text...</para>
\stopXMLdata
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3424 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-04 14:36 Problem with XML entities in titles [2] Richard Gabriel
@ 2007-10-04 18:26 ` Hans Hagen
0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2007-10-04 18:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Richard Gabriel wrote:
> Hello once again,
>
> I've puzzled my brain for a while ;-)
> and then I came to the following solution:
>
> \def\ExChapter#1{
> \expanded{\chapter{#1}}
> }
>
> \defineXMLcommand[chapter]{
> \defineXMLargument[title]\ExChapter
> }
in mkiv ... this becomes:
(1) register handler in setup ssection
\xmlsetsetups {main} {chapter} {*}
(2) access child element using lpath
\startxmlsetups chapter
\expanded{\chapter{
\xmlfirst{#1}{title}
}}
\stopxmlsetups
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-05 15:06 Richard Gabriel
@ 2007-10-05 15:55 ` Hans Hagen
0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2007-10-05 15:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
Richard Gabriel wrote:
> Thanks Hans. Please excuse me for my impertinence, but why is any backward compatibility not kept? Why suddenly stopped working what did work for years? :-(
>
> Well, OK, I'm going to start with luatex... ;-)
the new mechanism is not replacing the old ... can even be used mixed
the new one is based on loading the tree and selective flushing; more
manipulative power and much faster too (the xml interpreter is written
in lua and (on my machine) loads 5meg/sec into a tree
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
@ 2007-10-05 15:06 Richard Gabriel
2007-10-05 15:55 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Richard Gabriel @ 2007-10-05 15:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1698 bytes --]
Thanks Hans. Please excuse me for my impertinence, but why is any backward compatibility not kept? Why suddenly stopped working what did work for years? :-(
Well, OK, I'm going to start with luatex... ;-)
Thanks,
R.
_____
From: Hans Hagen [mailto:pragma@wxs.nl]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Fri, 05 Oct 2007 16:16:50 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]
Thomas A. Schmitz wrote:
> On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:
>
>> Hans,
>>
>> \xmlsetsetups throws "Undefined control sequence"...
>> (ConTeXt 2007.09.28)
>>
>> ?!
>>
>> R.
>>
>
> With --luatex?
see wiki .. you also need luatex itself
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2621 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-05 12:03 ` Thomas A. Schmitz
@ 2007-10-05 14:16 ` Hans Hagen
0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2007-10-05 14:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:
>
>> Hans,
>>
>> \xmlsetsetups throws "Undefined control sequence"...
>> (ConTeXt 2007.09.28)
>>
>> ?!
>>
>> R.
>>
>
> With --luatex?
see wiki .. you also need luatex itself
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
@ 2007-10-05 12:47 Richard Gabriel
0 siblings, 0 replies; 13+ messages in thread
From: Richard Gabriel @ 2007-10-05 12:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1866 bytes --]
Oh so, thanks Hans and Thomas! Maybe I've been sleeping too long. :-)
I'm going to setup luatex...
-Richard
_____
From: Hans Hagen [mailto:pragma@wxs.nl]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Fri, 05 Oct 2007 13:53:14 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]
Richard Gabriel wrote:
> Hans,
>
> \xmlsetsetups throws "Undefined control sequence"...
as said ...
> in mkiv ... this becomes:
so you need luatex
btw, you can then also do things like:
\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() == 'ok']}
\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() ==
upper('ok')]}
\xmlfirst{#1}{b[@n=='03' or @n=='08']}
\xmlall {#1}{b[number(@n)>2 and number(@n)<6]}
\xmlfirst{#1}{b[find(text(),'ALSO')]}
and other complex path stuff
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2767 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-05 10:06 Richard Gabriel
2007-10-05 11:53 ` Hans Hagen
@ 2007-10-05 12:03 ` Thomas A. Schmitz
2007-10-05 14:16 ` Hans Hagen
1 sibling, 1 reply; 13+ messages in thread
From: Thomas A. Schmitz @ 2007-10-05 12:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:
> Hans,
>
> \xmlsetsetups throws "Undefined control sequence"...
> (ConTeXt 2007.09.28)
>
> ?!
>
> R.
>
With --luatex?
T.
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-05 10:06 Richard Gabriel
@ 2007-10-05 11:53 ` Hans Hagen
2007-10-05 12:03 ` Thomas A. Schmitz
1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2007-10-05 11:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Richard Gabriel wrote:
> Hans,
>
> \xmlsetsetups throws "Undefined control sequence"...
as said ...
> in mkiv ... this becomes:
so you need luatex
btw, you can then also do things like:
\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() == 'ok']}
\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() ==
upper('ok')]}
\xmlfirst{#1}{b[@n=='03' or @n=='08']}
\xmlall {#1}{b[number(@n)>2 and number(@n)<6]}
\xmlfirst{#1}{b[find(text(),'ALSO')]}
and other complex path stuff
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
@ 2007-10-05 10:06 Richard Gabriel
2007-10-05 11:53 ` Hans Hagen
2007-10-05 12:03 ` Thomas A. Schmitz
0 siblings, 2 replies; 13+ messages in thread
From: Richard Gabriel @ 2007-10-05 10:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1854 bytes --]
Hans,
\xmlsetsetups throws "Undefined control sequence"...
(ConTeXt 2007.09.28)
?!
R.
_____
From: Hans Hagen [mailto:pragma@wxs.nl]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Thu, 04 Oct 2007 20:26:14 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]
Richard Gabriel wrote:
> Hello once again,
>
> I've puzzled my brain for a while ;-)
> and then I came to the following solution:
>
> \def\ExChapter#1{
> \expanded{\chapter{#1}}
> }
>
> \defineXMLcommand[chapter]{
> \defineXMLargument[title]\ExChapter
> }
in mkiv ... this becomes:
(1) register handler in setup ssection
\xmlsetsetups {main} {chapter} {*}
(2) access child element using lpath
\startxmlsetups chapter
\expanded{\chapter{
\xmlfirst{#1}{title}
}}
\stopxmlsetups
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2781 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
@ 2007-10-04 12:33 Richard Gabriel
0 siblings, 0 replies; 13+ messages in thread
From: Richard Gabriel @ 2007-10-04 12:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2924 bytes --]
Hello Wolfgang,
thanks for Your hint.
> I'm not Hans but I can also give you a solution to your problem.
OK, sorry, maybe I shouldn't address Hans directly when writing to the mailing list... ;-)
> BTW: Your xml file is valied because you forgot to include the
>chapter end tag.
Ooops! I've quickly created a minimal test file; of course I didn't want to attach the real file where I've encountered that problem...
Anyway, the XML file is structured the following way:
<chapter><title>This is a testing chapter</title>
<para>Some meaningless text...</para>
</chapter>
<chapter><title>So — let's see</title>
<para>Some meaningless text...</para>
</chapter>
... the paragraphs are enclosed inside chapters.
So unfortunately I can't use your solution because the \chapter command needs to be issued at the beginning, not at the end tag.
Got any another idea?
Many thanks,
Richard
_____
From: Wolfgang Schuster [mailto:schuster.wolfgang@googlemail.com]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Thu, 04 Oct 2007 13:47:27 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]
2007/10/4, Richard Gabriel <rgabriel@kerio.com>:
> Hello Hans,
>
> some time ago I've reported this problem with character entities. I've just
> upgraded to ConTeXt 2007-09-28, and the problem still persists!
> Could you please look into it? A simple test file is attached.
>
> Many thanks,
> Richard
Hello Richard,
I'm not Hans but I can also give you a solution to your problem.
This is related to your own definition for the chapter header and
ConTeXt's mechanism to save the two pass information of the headers,
you should save the header text and expand the header command
with the header text, you can use my example for your problem.
BTW: Your xml file is valied because you forgot to include the
chapter end tag.
\defineXMLenvironment [chapter]
{\defineXMLsave[title]}
{\expanded{\chapter{\XMLflush{title}}}}
\defineXMLenvironment[para] \dontleavehmode \par
\defineXMLentities [tex] {tex} {\TeX}
\starttext
\completecontent
\startXMLdata
<chapter><title>This is a testing &tex; chapter</title></chapter>
<para>Some meaningless text...</para>
\stopXMLdata
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4071 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-04 9:32 Richard Gabriel
2007-10-04 10:52 ` Mojca Miklavec
@ 2007-10-04 11:47 ` Wolfgang Schuster
1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2007-10-04 11:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/10/4, Richard Gabriel <rgabriel@kerio.com>:
> Hello Hans,
>
> some time ago I've reported this problem with character entities. I've just
> upgraded to ConTeXt 2007-09-28, and the problem still persists!
> Could you please look into it? A simple test file is attached.
>
> Many thanks,
> Richard
Hello Richard,
I'm not Hans but I can also give you a solution to your problem.
This is related to your own definition for the chapter header and
ConTeXt's mechanism to save the two pass information of the headers,
you should save the header text and expand the header command
with the header text, you can use my example for your problem.
BTW: Your xml file is valied because you forgot to include the
chapter end tag.
\defineXMLenvironment [chapter]
{\defineXMLsave[title]}
{\expanded{\chapter{\XMLflush{title}}}}
\defineXMLenvironment[para] \dontleavehmode \par
\defineXMLentities [tex] {tex} {\TeX}
\starttext
\completecontent
\startXMLdata
<chapter><title>This is a testing &tex; chapter</title></chapter>
<para>Some meaningless text...</para>
\stopXMLdata
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with XML entities in titles [2]
2007-10-04 9:32 Richard Gabriel
@ 2007-10-04 10:52 ` Mojca Miklavec
2007-10-04 11:47 ` Wolfgang Schuster
1 sibling, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2007-10-04 10:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/4/07, Richard Gabriel wrote:
>
> Hello Hans,
>
> some time ago I've reported this problem with character entities. I've just
> upgraded to ConTeXt 2007-09-28, and the problem still persists!
For Hans: just in case that you decide to fix this mkii issue &
implement it in mkiv at the same time, here's something to start with:
http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml-lat1.ent
http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml-special.ent
http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml-symbol.ent
http://www.w3.org/TR/2002/REC-xhtml1-20020801/dtds.html#h-A2
Mojca
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Problem with XML entities in titles [2]
@ 2007-10-04 9:32 Richard Gabriel
2007-10-04 10:52 ` Mojca Miklavec
2007-10-04 11:47 ` Wolfgang Schuster
0 siblings, 2 replies; 13+ messages in thread
From: Richard Gabriel @ 2007-10-04 9:32 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1577 bytes --]
Hello Hans,
some time ago I've reported this problem with character entities. I've just upgraded to ConTeXt 2007-09-28, and the problem still persists!
Could you please look into it? A simple test file is attached.
Many thanks,
Richard
_____
From: Richard Gabriel [mailto:rgabriel@kerio.com]
To: ntg-context@ntg.nl
Cc: Hans Hagen [mailto:pragma@wxs.nl]
Sent: Wed, 15 Aug 2007 09:35:52 +0200
Subject: [NTG-context] Problem with XML entities in titles
Hello Hans,
I'd like to report a problem (bug) with XML entities in chapter or section titles.
I've just upgraded to the recent ConTeXt version (2007.08.09) and started to get errors while processing the .tuo file.
Please test the attached minimal example.
During the second TeX run, I get the following error:
--- cut ---
(./test.tuo
! Misplaced alignment tab character &.
<argument> This is a testing chapter
\listtextcommand #1->\begstrut #1 \endstrut
\doattributes ...sname #1#2\@EA \endcsname \fi {#4}\dostopattributes
<argument> ...ry {This is a testing chapter}}
\egroup \ifdim \wd 4=\zero...
\secondoftwoarguments #1#2->#2
\dosomelistelement ...hss \dostoplistattributes }}
\endgraf \nointerlineskip ...
...
l.29 ...p;testing chapter}{2--0-1-0-0-0-0-0--2}{2}
--- cut ---
(find the complete log in attachment)
Till today, I have been using ConTeXt version 2007.04.17 and it had worked fine!
Thanks,
Richard
[-- Attachment #1.2: Type: text/html, Size: 2654 bytes --]
[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 563 bytes --]
[-- Attachment #3: test.log --]
[-- Type: application/octet-stream, Size: 4590 bytes --]
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=cont-en 2007.8.13) 13 AUG 2007 11:25
entering extended mode
%&-line parsing enabled.
(c:/WinApp/TeXLive/texmf/web2c/natural.tcx)
**test.tex \emergencyend
(./test.tex
ConTeXt ver: 2007.08.09 13:04 MKII fmt: 2007.8.13 int: english/english
language : language en is active
system : cont-new loaded
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/cont-new.mkii)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/cont-mtx.tex))
system : cont-old loaded
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(c:/WinApp/TeXLive/texmf-dist/tex/context/user/cont-sys.tex
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/type-tmf.tex)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/type-siz.tex)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/type-one.tex)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/type-akb.tex)
(c:/WinApp/TeXLive/texmf-dist/tex/context/kerio/type-luc.tex)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/type-buy.tex))
bodyfont : 12pt rm is loaded
language : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials : tex,postscript,rokicki loaded
\openout3 = `test.tui'.
system : test.top loaded
(./test.top
specials : loading definition file tpd
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-fdf.tex
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-fdf.mkii))
specials : fdf loaded
)
specials : fdf,tpd loaded
)
\openout0 = `test-mpgraph.mp'.
\openout0 = `mpgraph.mp'.
systems : system commands are disabled
specials : loading definition file tpd
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-fdf.tex
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/spec-fdf.mkii))
specials : fdf loaded
)
specials : fdf,tpd loaded
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/sort-lan.tex
loading : Context Sorting Macros (languages)
(c:/WinApp/TeXLive/texmf-dist/tex/context/base/sort-lan.mkii)) (./test.tuo)
(./test.tuo) (c:/WinApp/TeXLive/texmf-dist/tex/context/base/pdfr-def.tex)
systems : begin file test at line 13
title : - \headtext {content}
(./test.tuo
! Misplaced alignment tab character &.
<argument> This is a&
nbsp;testing chapter
\listtextcommand #1->\begstrut #1
\endstrut
\doattributes ...sname #1#2\@EA \endcsname \fi {#4
}\dostopattributes
<argument> ...ry {This is a testing chapter}}
\egroup \ifdim \wd 4=\zero...
\secondoftwoarguments #1#2->#2
\dosomelistelement ...hss \dostoplistattributes }}
\endgraf \nointerlineskip ...
...
l.29 ...p;testing chapter}{2--0-1-0-0-0-0-0--2}{2}
? x
Here is how much of TeX's memory you used:
1099 strings out of 55992
18466 string characters out of 511491
4730149 words of memory out of 5635688
42169 multiletter control sequences out of 10000+50000
86099 words of font info for 38 fonts, out of 1000000 for 2000
192 hyphenation exceptions out of 8191
36i,5n,43p,254b,557s stack positions out of 5000i,500n,6000p,200000b,50000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
[-- Attachment #4: text --]
[-- Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #5: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-10-05 15:55 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 14:36 Problem with XML entities in titles [2] Richard Gabriel
2007-10-04 18:26 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2007-10-05 15:06 Richard Gabriel
2007-10-05 15:55 ` Hans Hagen
2007-10-05 12:47 Richard Gabriel
2007-10-05 10:06 Richard Gabriel
2007-10-05 11:53 ` Hans Hagen
2007-10-05 12:03 ` Thomas A. Schmitz
2007-10-05 14:16 ` Hans Hagen
2007-10-04 12:33 Richard Gabriel
2007-10-04 9:32 Richard Gabriel
2007-10-04 10:52 ` Mojca Miklavec
2007-10-04 11:47 ` Wolfgang Schuster
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).