From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9073 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: XML processing Date: Mon, 26 Aug 2002 21:25:16 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020826212104.02030810@remote-1> References: <20020826123344.9BEC06%05570575@gmx.de> <20020826123344.9BEC06%05570575@gmx.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399432 507 80.91.224.250 (23 Oct 2002 18:57:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:57:12 +0000 (UTC) Cc: ntg-context Original-To: Simon Pepping In-Reply-To: <20020826205312.B649@scaprea> Xref: main.gmane.org gmane.comp.tex.context:9073 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9073 At 08:53 PM 8/26/2002 +0200, Simon Pepping wrote: >On Mon, Aug 26, 2002 at 12:33:44PM +0100, Robbie Pickering wrote: > > We have for example definitions DEFN which are sometimes followed by an > > example EGPH and sometimes not. > > > > ... > > 3 > > a large body, esp. of a person > > he eased his bulk out of the chair > > 4 > > unpackaged cargo or goods > > > > I have setup DEFN very simply > > > > \defineXMLenvironment [DEFN] {}{.} > > to add a full stop after the definition. It would be nice, though, to be > > able to automatically add a colon instead in those cases where the DEFN > > environment is immediately followed by a EGPH. > >This is very difficult, because your tagging has no moment at which >this can be concluded: is too early to know, but when there is >no following EGPH, there is nothing that can trigger the period or >colon. It would be easier if the whole definition would be in a >container: . Then you >can save EGPH, and could typeset it with preceding >colon, or it could typeset a period. actually, there is a trick: say that you add a signal: \newsignal\MySignal bla bla\hskip\MySignal then you can test for this signal: \ifdim\lastskip\MySignal ... \else ... \fi so, here EGPH should do the test, and DEFN add the skip of course a little bit of hmode testing and removing of spaces helps [if needed i can make a mechanism for that since i use it myself occasionally] 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------