Hi all, Hi Hans, has anything changed in xml processing in the latest beta? My beautiful (!) collection of xml entities has stopped working. In my environment files, I have stuff such as \defineXMLentity[textellipsis]{\textellipsis} but only get the typeset "textellipsis" in my pdfs when I process them with mkiv. Bug or do I have to change anything in my files? All best Thomas
Thomas A. Schmitz wrote:
Hi all, Hi Hans,
has anything changed in xml processing in the latest beta? My beautiful (!) collection of xml entities has stopped working. In my environment files, I have stuff such as
\defineXMLentity[textellipsis]{\textellipsis}
but only get the typeset "textellipsis" in my pdfs when I process them with mkiv. Bug or do I have to change anything in my files?
so, how about a test file ... indeed something has changed, i.e. all encoding stuff is gone, but it should not affect too much do you use mkii xml or mkiv xml 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 -----------------------------------------------------------------
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes: \startxmlsetups mytest \xmlsetsetup{main}{document|p}{*} \stopxmlsetups \xmlregistersetup{mytest} \startxmlsetups document \xmlflush{#1}\par \stopxmlsetups \startxmlsetups p \xmlflush{#1}\par \stopxmlsetups \defineXMLentity[textbar]{\textbar} \defineXMLentity[shorta]{\buildtextaccent\textbreve a} \startbuffer[test] <?xml version="1.0" encoding="UTF-8"?> <document> <p>Hello &textbar; &shorta; World!</p> </document> \stopbuffer \starttext \xmlprocessbuffer{main}{test}{} \stoptext
indeed something has changed, i.e. all encoding stuff is gone, but it should not affect too much
do you use mkii xml or mkiv xml
I've switched to mkiv almost exclusively, esp. for all my xml stuff. Greets Thomas
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes:
you mean http://www.trouw.nl/redactie/spotprent/woensdag160.gif -) 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 -----------------------------------------------------------------
On Thu, Nov 6, 2008 at 4:38 PM, Thomas A. Schmitz < thomas.schmitz@uni-bonn.de> wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes:
\startxmlsetups mytest \xmlsetsetup{main}{document|p}{*} \stopxmlsetups
\xmlregistersetup{mytest}
\startxmlsetups document \xmlflush{#1}\par \stopxmlsetups
\startxmlsetups p \xmlflush{#1}\par \stopxmlsetups \defineXMLentity[textbar]{\textbar} \defineXMLentity[shorta]{\buildtextaccent\textbreve a}
\startbuffer[test] <?xml version="1.0" encoding="UTF-8"?> <document> <p>Hello &textbar; &shorta; World!</p> </document> \stopbuffer
\starttext \xmlprocessbuffer{main}{test}{} \stoptext
not ok here, I suppose. This is what I see : Hello [textbar] [shorta] World! minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.11.05 13:51 -- luigi
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes
Somehow I could ... new beta ... \setupxml[entities=mkii] <p>A &textbar; B &shorta; C &dotlessi; D &adiaeresis; E</p> seems to work ok ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Thu, Nov 6, 2008 at 7:46 PM, Hans Hagen
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes
Somehow I could ... new beta ...
\setupxml[entities=mkii]
<p>A &textbar; B &shorta; C &dotlessi; D &adiaeresis; E</p>
seems to work ok
yes . btw, current version has wrong value minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.56.06 19:11 -- luigi
On Nov 6, 2008, at 7:46 PM, Hans Hagen wrote:
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes
Somehow I could ... new beta ...
Yes, this looks much better - my entities are processed again! Thanks Hans!
\setupxml[entities=mkii]
Is a mkiv version of \defineXMLentity around yet, or is this just a placeholder for future developments? All best Thomas
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 7:46 PM, Hans Hagen wrote:
Thomas A. Schmitz wrote:
On Nov 6, 2008, at 1:26 PM, Hans Hagen wrote:
so, how about a test file ...
Yes we can! Here comes Somehow I could ... new beta ...
Yes, this looks much better - my entities are processed again! Thanks Hans!
\setupxml[entities=mkii]
Is a mkiv version of \defineXMLentity around yet, or is this just a placeholder for future developments?
remind me in a few weeks (i have a few solutions in mind but time ...) 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
luigi scarso
-
Thomas A. Schmitz