From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40374 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: mplib Date: Thu, 17 Apr 2008 00:38:02 +0200 Message-ID: <48069BEA.12528.859C4C@wwl.musensturm.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1208385069 30033 80.91.229.12 (16 Apr 2008 22:31:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 22:31:09 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 17 00:31:44 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JmG9b-0001Y5-Na for gctc-ntg-context-518@m.gmane.org; Thu, 17 Apr 2008 00:30:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4AEC31FC36; Thu, 17 Apr 2008 00:30:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22295-01-2; Thu, 17 Apr 2008 00:29:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF8A41FC0D; Thu, 17 Apr 2008 00:29:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 482BA1FC00 for ; Thu, 17 Apr 2008 00:29:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22295-01 for ; Thu, 17 Apr 2008 00:28:54 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by ronja.ntg.nl (Postfix) with ESMTP id E36191FC14 for ; Thu, 17 Apr 2008 00:28:53 +0200 (CEST) Original-Received: from [192.168.178.20] (fuld-590d1ca3.pool.einsundeins.de [89.13.28.163]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1JmG7Z0M3l-0002un; Thu, 17 Apr 2008 00:28:53 +0200 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX18xaFkubvqNKnJsmLzpFFl8lSkZJfmjE2yTEtr 7jckY7sMZuTgfOhE6vcnQtJ9Dg/3AlnfDWSKpje05Nfprijjw3 jQf5dnC+q86xPWmGSlQoYqrm+q/LVCi X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40374 Archived-At: On 16 Apr 2008 at 1:52, ntg-context-request@ntg.nl wrote: Hallo, > >>> (I have temporary appended 'dump;' to plain.mp) > >> After the above, you should have plain.mem in the local > directory. > > = > > No. > > There is neither a 'plain.fmt' nor a 'plain.mem'! > = > Everything I read below says there should be a 'plain.mem' > in the folder where you ran theat file in. If there > really really isn't, then my only advise to you is to buy > a less thieving operating system, as it seems this one steals > your files before you can even have an admiring look at them. :-) I tried the same with 'mpost'. This has the advantage that one has = not to adapt 'plain.mp'. But here too, there is no 'mpost.mem' and no 'mpost.log'. I have included a test before and after mp:finish(). Can anybody with a minimal under windows run this example? ------------------------------- \starttext % start low-level \startlua local function finder(name, mode, ftype) if mode=3D=3D"w" then return name else return kpse.find_file(name,ftype) end end mp =3D mplib.new ( { hash_size =3D 100000, main_memory =3D 2000000, param_size =3D 100000, find_file =3D finder, ini_version =3D true } ) if mp then res =3D mp:execute("mpost") tex.print("[" .. tostring(res.status) .. "]") print(table.serialize(res)) if io.open("mpost.mem","r") then print("found") else print("nothing") end res =3D mp:finish() print(table.serialize(res)) if io.open("mpost.mem","r") then print("found") else print("nothing") end end \stoplua % stop low-level \stoptext ------------------------------- Gru=DF, Wolfgang ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________