From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6566 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Reimplementing xspace Date: Mon, 21 Jan 2002 15:37:06 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <93457235.20020121153706@bigfoot.com> References: <5.1.0.14.1.20020120212832.02beeac0@server-1> Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035397090 11747 80.91.224.250 (23 Oct 2002 18:18:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:18:10 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Hans Hagen In-Reply-To: <5.1.0.14.1.20020120212832.02beeac0@server-1> Xref: main.gmane.org gmane.comp.tex.context:6566 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6566 Sunday, January 20, 2002 Hans Hagen wrote: HH> At 10:43 PM 1/17/2002 +0100, Giuseppe Bilotta wrote: >>this is another request from it.comp.software.tex: reimplementing HH> on how many lists are you ? Ehm ... many ;-) Ok, compt.text.tex (the international TeX newsgroup), it.comp.software.tex (the Italian TeX newsgroup), this list, the list of the ConTeXt documentation project, the list of the informal Italian TeX group Gilda/Guilda, and so on and so forth ... >>xspace. By itself the thing is pretty easy, you just need the >>code: >> >>\catcode`\@=11 >>\protected\def\xspace{\futurelet\@let@token\@xspace} >>\def\@xspace{% HH> this should be configurable so i would opt for another solution; also, it HH> should be nillable; HH> so, before i cook up the solution (using named glyphs btw) i want to know HH> if this is the same for all languages, when it should be on / off etc Now this is something I had never though about. Well, I think the list is the same for all languages, and that it should always be on (can't think of an occasion when I would want it to be off ...) OTOH the possibility to add more tokens to the list of tokens that don't require a space is a good idea. >>so the problem is rather on how to integrate this with the rest of >>ConTeXt: there are some features of ConTeXt (e.g. logos, >>abbreviations) for which obeying spaces should be an option. Right >>now, you have to do something like: >> >>\logo[tempTEX]{\TeX} >>\def\TEX{\tempTEX\xspace} >> >>to achieve the same result. >> >>Any comments? HH> it should hook into processsynonym but in such a way that it does not break HH> other code because synonyms are used (here) for more purposes then you want HH> to know. ;-) Well, using features for what they weren't originally intended for is *baaaaaad* ;-) But more seriously: can't you just set up those "other" uses so as not to use xspace? -- Giuseppe "Oblomov" Bilotta