From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55993 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: xml entities and trailing space Date: Sun, 7 Feb 2010 22:19:38 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265577607 5312 80.91.229.12 (7 Feb 2010 21:20:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 21:20:07 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 22:20:04 2010 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.69) (envelope-from ) id 1NeEY0-0004MS-FO for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 22:20:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1F8DC9C43; Sun, 7 Feb 2010 22:21:29 +0100 (CET) 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 9ikWBeqXtahi; Sun, 7 Feb 2010 22:21:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37F9EC9B88; Sun, 7 Feb 2010 22:21:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9537DC9B88 for ; Sun, 7 Feb 2010 22:21:25 +0100 (CET) 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 YQ2mi9cKHmYt for ; Sun, 7 Feb 2010 22:21:23 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id 8C7B1C9B7A for ; Sun, 7 Feb 2010 22:21:23 +0100 (CET) Original-Received: from [87.178.84.16] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 32269582 for ntg-context@ntg.nl; Sun, 07 Feb 2010 22:19:54 +0100 X-Mailer: Apple Mail (2.1077) 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:55993 Archived-At: Hi all, Hans, this is something I had mentioned a few weeks ago, but wanted to complain about it again: when you define xml entities as TeX commands, those used to preserve trailing spaces. This hasn't been the case since a number of version. I would like to recommend havin the old behavior back (since adding spaces isn't as easy in xml as it is in TeX). The example below demonstrates the problem. All best Thomas \startbuffer[xmltest]

A &textbar; B

\stopbuffer \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:p \xmlflush{#1} \par \stopxmlsetups \xmlsetentity{textbar}{\textbar} \starttext \xmlprocessbuffer{main}{xmltest}{} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________