ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: xml, mainlanguage de, handlecompoundchar
@ 2001-08-29 13:12 Patrick Gundlach
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2001-08-29 13:12 UTC (permalink / raw)


Hi,

thanks, it works well. The first lines of \gdef\enableXML are 
now:

.gdef.enableXML*
  B.catcode`.!=.@@other*
   .catcode`."=.@@other*
   .catcode`.?=.@@other*

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


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

* Re: xml, mainlanguage de, handlecompoundchar
  2001-08-29  9:03 Patrick Gundlach
@ 2001-08-29 11:41 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2001-08-29 11:41 UTC (permalink / raw)
  Cc: ntg-context

At 11:03 AM 8/29/2001 +0200, Patrick Gundlach wrote:
>\mainlanguage[de]
>\starttext
>\defineXMLenvironment [document] \startnarrower \stopnarrower
>\defineXMLargument [title] \midaligned
>\defineXMLenvironment [list] \startitemize \stopitemize
>\defineXMLcommand [item] \item
>\defineXMLgrouped [b] \bf
>\defineXMLentity [context] \ConTeXt
>\defineXMLentity [dots] \dots
>
>\setuptyping[file][option=xml]
>
>\startbuffer
><document>
>  <title name="small">Ein kleines xml-Dokument</title>
>   <list packed="yes">
>     <item>sinnloser Text, der sehr  <b>wichtig</b> ist.
>           </item>
>     <item>&context; kann aber noch viel kompliziertere
>           Dinge tun &dots;</item>
>    </list>
></document>
>\stopbuffer
>\processXMLbuffer
>\stoptext

in xtag-ini, search for enableXML,

add the " catcode change there, like:

    .catcode`.>=.@@other* .catcode`."=.@@other*

then, recompile the formats

let me know if this works okay since i only did a quick test

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* xml, mainlanguage de, handlecompoundchar
@ 2001-08-29  9:03 Patrick Gundlach
  2001-08-29 11:41 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2001-08-29  9:03 UTC (permalink / raw)


Hi,

I try to compile the code below. "All" I get is an error:

This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode

[...]

ConTeXt  ver: 2001.7.11  fmt: 2001.7.16  int: english  mes: english
[...]

systems        : begin file xml at line 4
<xml-xml.tmp> (./xml-xml.tmp
! Undefined control sequence.
\handlecompoundcharacter ...ndlecompoundcharacter 
                                                  {\ifx \next \bgroup \def \...

\dodoparseXMLarguments #1->\if #1
                                 >\let \dodoparseXMLarguments \empty \else \...
<argument> name="
                 small" 
\dodoXMLelement ...arguments \currentXMLelement #2
                                                  >\fi \fi \executeXMLelemen...
l.2  <title name="small">
                         Ein kleines xml-Dokument</title>
? 

without the mainlanguage[de] there is no problem. I know, that 
this happened to Johannes before, but that time he was not using 
pdfetex (in extended mode) I guess and he was using metapost. 

Any Idea how to solve this?

------------------------------ the file:
% output=pdf

\mainlanguage[de]
\starttext
\defineXMLenvironment [document] \startnarrower \stopnarrower
\defineXMLargument [title] \midaligned
\defineXMLenvironment [list] \startitemize \stopitemize
\defineXMLcommand [item] \item
\defineXMLgrouped [b] \bf
\defineXMLentity [context] \ConTeXt
\defineXMLentity [dots] \dots

\setuptyping[file][option=xml]

\startbuffer
<document> 
 <title name="small">Ein kleines xml-Dokument</title> 
  <list packed="yes"> 
    <item>sinnloser Text, der sehr  <b>wichtig</b> ist.
          </item> 
    <item>&context; kann aber noch viel kompliziertere
          Dinge tun &dots;</item>
   </list> 
</document>
\stopbuffer
\processXMLbuffer
\stoptext

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


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

end of thread, other threads:[~2001-08-29 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29 13:12 xml, mainlanguage de, handlecompoundchar Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2001-08-29  9:03 Patrick Gundlach
2001-08-29 11:41 ` 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).