From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40476 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: mplib Date: Fri, 18 Apr 2008 20:40:32 +0200 Message-ID: <48090740.2884.196A90B@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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208619233 10965 80.91.229.12 (19 Apr 2008 15:33:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 15:33:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 19 17:34:25 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 1Jmvv9-0007BT-C4 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Apr 2008 21:06:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46B5C1FCAA; Fri, 18 Apr 2008 21:06:08 +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 05753-02-7; Fri, 18 Apr 2008 21:05:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9BC91FBBD; Fri, 18 Apr 2008 21:05:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BCA81FB8F for ; Fri, 18 Apr 2008 21:05:04 +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 06077-02-5 for ; Fri, 18 Apr 2008 21:04:02 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by ronja.ntg.nl (Postfix) with ESMTP id 1CF2C1FBF9 for ; Fri, 18 Apr 2008 20:31:15 +0200 (CEST) Original-Received: from [192.168.178.20] (fuld-590d1ca3.pool.einsundeins.de [89.13.28.163]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1JmvMg1D9t-0003Pc; Fri, 18 Apr 2008 20:31:14 +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: V01U2FsdGVkX18lH8IVOFLSyuazqk1MWF2lWVZgU+4/yAkGCb4 kM5zQVnmkKVbZMeL5Hm3JG/19OUS104fb46W/It7DQQeHjhuPJ uU/n3iEORna00ugDDuh2bDdCd4lyZPd 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:40476 Archived-At: Hallo Taco, > > 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. > :-) May be you are right that operating system steals files. We should do something against that. Lutz Haseloff has send me his test (he too sees no 'mpost.mem'): ------------------------------------ TeXExec | processing document 'mplibtest.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file mplibtest.top TeXExec | using randomseed 256 TeXExec | tex engine: luatex TeXExec | tex format: cont-en (./mplibtest.tex ConTeXt ver: 2008.04.16 17:34 MKIV fmt: 2008.4.18 int: english/english language : language en is active system : cont-new loaded (C:/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/tex/texmf-context/tex/context/base/cont-new.mkiv lua : used config path - C:/tex/texmf- local/web2c/texmf.cnf;C:/tex/texmf- context/web2c/texmf.cnf;C:/tex/texmf/web2c/texmf.cnf lua : used cache path - C:/tex/texmf-cache/luatex- cache/context/71ddae2d1527093aac63e0e1aa139641 ) (C:/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (C:/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (C:/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (C:/tex/texmf-local/tex/context/user/cont-sys.tex (C:/tex/texmf- context/tex/context/base/type-tmf.tex) (C:/tex/texmf- context/tex/context/base/type-siz.tex) (C:/tex/texmf- context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : tex loaded system : mplibtest.top loaded (./mplibtest.top specials : loading definition file tpd (C:/tex/texmf-context/tex/context/base/spec-tpd.tex specials : loading definition file fdf (C:/tex/texmf-context/tex/context/base/spec-fdf.tex (C:/tex/texmf- context/tex/context/base/spec-fdf.mkiv)) specials : fdf loaded ) specials : fdf loaded ) (./mplibtest.tuo) (./mplibtest.tuo) systems : begin file mplibtest at line 2 t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 18 APR 2008 06:34 (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", } nothing t={ ["log"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.18)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.18)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on mpost.log.\ ", } nothing fonts : resetting map file list {C:/tex/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {C:/tex/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: lm-math {C:/tex/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {C:/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-base {C:/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {C:/tex/texmf-context/fonts/map/pdftex/context/original-ams- euler.map} fonts : using map file: original-public-lm {C:/tex/texmf-context/fonts/map/pdftex/context/original-public- lm.map} [1.1] systems : end file mplibtest at line 38 ) mkiv lua stats : used config path - C:/tex/texmf- local/web2c/texmf.cnf;C:/tex/texmf- context/web2c/texmf.cnf;C:/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - C:/tex/texmf- cache/luatex-cache/context/71ddae2d1527093aac63e0e1aa139641 mkiv lua stats : modules/dumps/instances - 84/20/1 mkiv lua stats : input load time - 0.031 seconds mkiv lua stats : fonts load time - 1.063 seconds mkiv lua stats : xml load time - 0.000 seconds, backreferences: 0, outer filtering time: 0.000 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.000 seconds (including kernel) mkiv lua stats : kernel processing time - 0.000 seconds mkiv lua stats : attribute processing time - 0.016 seconds mkiv lua stats : language load time - 0.031 seconds, n=2 mkiv lua stats : graphics processing time - 0.000 seconds, n=0 (including tex) mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 50679203 bytes mkiv lua stats : cleaned up reserved nodes - 16 nodes, 8 lists of 100 mkiv lua stats : node memory usage - 19 glue_spec, 2 dir mkiv lua stats : loaded patterns - en:en:pat:exc:2 mkiv lua stats : loaded fonts - file:lmroman10- bolditalic*default:otf file:lmroman10-italic*default:otf file:lmroman12-bold*default:otf file:lmroman12-italic*default:otf file:lmroman12-regular*default:otf file:lmroman7-bold*default:otf file:lmroman7-regular*default:otf file:lmroman9-bold*default:otf file:lmroman9-italic*default:otf file:lmroman9-regular*default:otf file:lmromancaps10-regular*default:otf file:lmromanslant10- bold*default:otf file:lmromanslant10-regular*default:otf file:lmromanslant12-regular*default:otf file:lmromanslant9- regular*default:otf lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm mkiv lua stats : runtime - 1.922 seconds, 1 processed pages, 1 shipped pages, 0.520 pages/second LuaTools | running command: luatex --fmt="C:/tex/texmf-cache/luatex- cache/context/71ddae2d1527093aac63e0e1aa139641/formats/cont-en" -- lua="C:/tex/texmf-cache/luatex- cache/context/71ddae2d1527093aac63e0e1aa139641/formats/cont-en.luc" "mplibtest.tex" "" LuaTools | LuaTools | runtime: 2.313 secondsTeXUtil | parsing file mplibtest.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 8 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | renaming mplibtest.tua into mplibtest.tuc TeXExec | runtime: 2.406 ------------------------------------ > 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=="w" then > return name > else > return kpse.find_file(name,ftype) > end > end > mp = mplib.new ( { > hash_size = 100000, > main_memory = 2000000, > param_size = 100000, > find_file = finder, > ini_version = true > } ) > if mp then > res = 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 = 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 > ------------------------------- Grusz, Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________