From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87853 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: database module: the first letter is lost Date: Thu, 26 Jun 2014 01:04:23 +0200 Message-ID: <53AB5577.3000405@wxs.nl> References: <924E62A0-1E77-4925-BDFD-219B3CC9D165@gmail.com> <53AB2695.7040703@wxs.nl> <3A2102A5-64A7-4108-A9FD-4CDB0F52F472@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1403737496 25610 80.91.229.3 (25 Jun 2014 23:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 23:04:56 +0000 (UTC) Cc: mailing list for ConTeXt users , Wolfgang Schuster To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 26 01:04:51 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WzwFH-0007lE-3b for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jun 2014 01:04:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3E1B10224 for ; Thu, 26 Jun 2014 01:04:50 +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 OT+ozuOouOKl for ; Thu, 26 Jun 2014 01:04:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 35B2610225 for ; Thu, 26 Jun 2014 01:04:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 117AF101E6 for ; Thu, 26 Jun 2014 01:04:38 +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 SgzWqJCf6kQY for ; Thu, 26 Jun 2014 01:04:32 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id B51FB101E2 for ; Thu, 26 Jun 2014 01:04:27 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s5PN4QSs010743 for ; Thu, 26 Jun 2014 01:04:26 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 8086-1713362 for multiple; Thu, 26 Jun 2014 01:04:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <3A2102A5-64A7-4108-A9FD-4CDB0F52F472@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03MiL4q4G - 89a741458331 - 20140626 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:87853 Archived-At: On 6/25/2014 11:13 PM, Wolfgang Schuster wrote: > > Am 25.06.2014 um 21:44 schrieb Hans Hagen >: > >> On 6/25/2014 7:21 PM, Michael Green wrote: >>> This appears to be the same as the problem Peter M=FCnster found with >>> the letter module >>> >>> \usemodule[database] >>> >>> \defineseparatedlist[MyTable] >>> [separator=3Dtab, >>> before=3D\bTABLE,after=3D\eTABLE, >>> first=3D\bTR,last=3D\eTR, >>> left=3D\bTD,right=3D\eTD] >>> >>> \starttext >>> >>> The first letter of =93Cell=94 is lost. >>> >>> \startseparatedlist[MyTable] >>> Cell 1Cell 2 >>> \stopseparatedlist >>> >>> With an extra return, =93Cell=94 is intact. >>> >>> \startseparatedlist[MyTable] >>> >>> Cell 1Cell 2 >>> \stopseparatedlist >>> >>> >>> \stoptext >> >> in buff-ini.mkiv change this: >> >> \def\buff_start_indeed#1#2#3#4% >> {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\plusone}} >> >> probably needs some checking > > Adding \obeylines to \grabbufferdatadirect would also work > > \unexpanded\def\grabbufferdatadirect % name start stop > {\begingroup % (6) > + \obeylines > \buff_start_indeed\empty} > > but I=92m interested what=92s the purpose of the fifth argument for > \buff_start_indeed. that was wrong; the pickup macro has a fifth argument (\plusone here) = but goes unnoticed when you add \obeylines in which case the first = 'obeyedline' ended up in #5 (i probably messed up when adding some feature but i would have to need = to look at older code to see how/when) does it make sense? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________