ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: error with m-database example
Date: Mon, 20 Dec 2010 22:32:25 +0100	[thread overview]
Message-ID: <4D0FCB69.7080908@wxs.nl> (raw)
In-Reply-To: <AANLkTinW3j=iUJC029tM13HhGoW84inCKRbhnEnYF0aK@mail.gmail.com>

On 20-12-2010 5:56, Mojca Miklavec wrote:
> On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote:
>> Hi,
>>
>> The example from http://wiki.contextgarden.net/m-database gives me an error.
>>
>> ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: bad argument #2 to 'lpegmatch' (string expected, got nil)
>> stack traceback:
>>         [C]: in function 'lpegmatch'
>>         ...t-beta/texmf-context/tex/context/base/m-database.lua:74: in function 'process'
>>         <main ctx instance>:1: in main chunk.
>> \doprocessdatabase ...ameter \c!command \!!es , }}
>>
>> l.18 \stopMyTable
>>
>>
>> I also, tried the first example of Mojca's CSV May Way (http://dl.contextgarden.net/myway/csv.pdf) which gives me:
>>
>> ! Undefined control sequence.
>> l.36 \startseparatedlist
>>                         [NaturalTable]
>>
>> Thanks for any suggestions,
>> Florian
>
> Dear Florian,
>
> Hans reimplemented the database module in MKIV. He requested a list of
> problems that I have discovered in new implementation, but apparently
> it's still on his TODO list to resolve them.

replace line 42 in m-database.lua by:

         data = buffers.getlines(settings.database)

(internally buffers used to be pre-split but that was changed)

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 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
___________________________________________________________________________________


  parent reply	other threads:[~2010-12-20 21:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-19 19:37 Florian Wobbe
2010-12-20 16:56 ` Mojca Miklavec
2010-12-20 17:46   ` Florian Wobbe
2010-12-20 21:32   ` Hans Hagen [this message]
2010-12-21  8:20     ` Florian Wobbe
2012-02-15 15:06 Martin
2012-02-15 20:12 ` Wolfgang Schuster
2012-02-15 20:54   ` Martin
2012-02-15 21:08     ` Wolfgang Schuster
2012-02-16 11:03       ` Martin
2012-02-16 12:16         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D0FCB69.7080908@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).