From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83198 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: spaces in xml index Date: Wed, 26 Jun 2013 14:51:30 +0200 Message-ID: <6D283601-934E-4C55-8257-6FE294A3EE97@gmail.com> References: <51CA949F.2060501@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372251108 20552 80.91.229.3 (26 Jun 2013 12:51:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 12:51:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 26 14:51:48 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrpCO-0004cP-Dp for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jun 2013 14:51:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D6BCA101EB; Wed, 26 Jun 2013 14:51:47 +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 KHVRFhw2tVDX; Wed, 26 Jun 2013 14:51:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C9081101E5; Wed, 26 Jun 2013 14:51:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F24E8101E5 for ; Wed, 26 Jun 2013 14:51:43 +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 F+eZgWB1Gf2k for ; Wed, 26 Jun 2013 14:51:43 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id F1832101E0 for ; Wed, 26 Jun 2013 14:51:32 +0200 (CEST) Original-Received: from mail-ee0-x236.google.com (mail-ee0-x236.google.com [IPv6:2a00:1450:4013:c00::236]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5QCpWmx026374 for ; Wed, 26 Jun 2013 14:51:32 +0200 Original-Received: by mail-ee0-f54.google.com with SMTP id t10so7450193eei.41 for ; Wed, 26 Jun 2013 05:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=AXRmGPkT9OtsOTtm8RC4rAh99kChCXaUsJPU/zWdAv0=; b=WRN+HkSO0/TmTcoRVi7oju8CsygKGPOIzVHUB8Fj7KTE5lLoZnRDGgEGjrYZpruWLj muj0xux3oxDibzAKwcwn3YtDGBLaCli8x8R4G9Z1SZmBUjzJJkTDYMA3olXd3H0fW2FP tHeKWDUl5AHRmJ3sZWwsLI3cmj1wu0ry6E3fiNwhllZFZY+MgzjUqei8k5WCaxTLFkFT l2Tl1zdNVn1s2GNff7wIUy0COcuzMTTbYQtnLFSlRgYYltBEKTFMao4TglF+dd7yKmu1 unDRVTM+3Bb3st8CVBTmWFZQ6vSaOHlNqayi/HScYkMbVt5cP8+4cPao7AHdjtJoQ6a0 ppjg== X-Received: by 10.14.7.133 with SMTP id 5mr3983155eep.115.1372251092192; Wed, 26 Jun 2013 05:51:32 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d072d2f.pool.mediaWays.net. [77.7.45.47]) by mx.google.com with ESMTPSA id y1sm37964826eew.3.2013.06.26.05.51.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Jun 2013 05:51:31 -0700 (PDT) In-Reply-To: <51CA949F.2060501@uni-bonn.de> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJR0PwBP - 43bfadf821ac - 20130626 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83198 Archived-At: Am 26.06.2013 um 09:13 schrieb Thomas A. Schmitz : > Hi all, > > back with a question on index entries in xml. I have the problem that my processing command inserts empty spaces. \removeunwantedspaces does not remove the unwanted spaces; \ignorespaces removes even wanted spaces. Can anybody help? > > Thanks and all best > > Thomas > > \starttext > > \startbuffer[demo] > >

Gustave Flaubert originated from Rouen.

>
> \stopbuffer > > \startxmlsetups xml:test > \xmlsetsetup{#1}{*}{-} > \xmlsetsetup{#1}{document|p|indexterm}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:test} > > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:p > \xmlflush{#1} > \par > \stopxmlsetups > > \startxmlsetups xml:indexterm > \doifelse{\xmlattdef{#1}{keyword}{@@@}}{@@@} > {\expanded{\index{\xmlflush{#1}}}\xmlflush{#1}\removeunwantedspaces} > {\expanded{\index{\xmlatt{#1}{keyword}}}\xmlflush{#1}\removeunwantedspaces} There is a space at the end of this line, remove it and it will also disappear from the output. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________