From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53595 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: latest beta doesn't process my xml files Date: Tue, 20 Oct 2009 22:26:35 +0200 Message-ID: <4ADE1CFB.6070400@wxs.nl> References: <6791C2E8-7E4F-4681-8709-061DAFD40EA9@uni-bonn.de> <4ADDC0BA.5040708@wxs.nl> <0841989B-024F-43FA-8CF7-C88C3FD414CE@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256070429 14229 80.91.229.12 (20 Oct 2009 20:27:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2009 20:27:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 20 22:26:58 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0LI5-0004do-I4 for gctc-ntg-context-518@m.gmane.org; Tue, 20 Oct 2009 22:26:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A275C9AF5; Tue, 20 Oct 2009 13:26:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Fd0xEIwO-nHh; Tue, 20 Oct 2009 13:26:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 780E5C9ABB; Tue, 20 Oct 2009 13:26:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EBF36C9ABB for ; Tue, 20 Oct 2009 13:26:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fFm4FTLGW044 for ; Tue, 20 Oct 2009 13:26:35 +0200 (CEST) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 69D5CC9AB7 for ; Tue, 20 Oct 2009 13:26:35 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a2) with ESMTP id 928-1713362 for ; Tue, 20 Oct 2009 22:26:27 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <0841989B-024F-43FA-8CF7-C88C3FD414CE@uni-bonn.de> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:53595 Archived-At: Thomas A. Schmitz wrote: > > On Oct 20, 2009, at 3:52 PM, Hans Hagen wrote: > >> in lxml-ent.lua ... >> >> function xml.resolved_entity(str) >> local e = xml.entities[str] >> if e then >> local te = type(e) >> if te == "function" then >> e(str) >> elseif e then >> texsprint(ctxcatcodes,e) >> end >> else >> texsprint(ctxcatcodes,"\\xmle{",str,"}{",utfupper(str),"}") -- >> we need to use our own upper >> end >> end >> > > Thank you Hans, but that's not yet the solution. I still get the same > error. I thought it might be related to the fact that I had the entity > &hfill; in my titles, but even after removing it, I still get the error. > > > >> there has been quite some changes in the xml machinery; what exactly >> do you do with entities? >> > > Well, I just map a few special characters and commands to entities. In > my environment, I have > > \setupxml[entities=mkii] > > and then stuff like this: > > \defineXMLentity[smallspace]{\,} > \defineXMLentity[percent]{\percent} > \defineXMLentity[onequarter]{\onequarter} > \defineXMLentity[threequarter]{\threequarter} > \defineXMLentity[onehalf]{\onehalf} > \defineXMLentity[textellipsis]{\textellipsis} > \defineXMLentity[nbsp]{~} > \defineXMLentity[hfill]{\hfill} > > Is there a different way for doing this now? mkii xml is no longer enabled by default in mkiv ... can you try the low level newby \xmlsetentity{smallspace}{\,} (otherwise, send me a test file) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________