diff options
author | Hans Hagen <pragma@wxs.nl> | 2016-11-28 14:23:17 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-11-28 14:23:17 +0100 |
commit | b8a38bef2eaacea0dd17897dc99f1ef09b46a7e3 (patch) | |
tree | e53017157648c5d4abab9b14ddfd23db0e43de38 /tex/context/base/mkiv/mlib-run.lua | |
parent | f4d0ad2ba2c4ca5bfae469650e535fd46749b3f4 (diff) | |
download | context-b8a38bef2eaacea0dd17897dc99f1ef09b46a7e3.tar.gz |
2016-11-28 13:36:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-run.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-run.lua | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tex/context/base/mkiv/mlib-run.lua b/tex/context/base/mkiv/mlib-run.lua index 10adb7709..0ef80892a 100644 --- a/tex/context/base/mkiv/mlib-run.lua +++ b/tex/context/base/mkiv/mlib-run.lua @@ -466,67 +466,12 @@ function metapost.process(mpx, data, trialrun, flusher, multipass, isextrapass, -- table.insert(data,2,"") for i=1,#data do process(data[i],i) --- local d = data[i] --- -- d = string.gsub(d,"\r","") --- if d then --- if trace_graphics then --- tra.inp:write(formatters["\n%% begin snippet %s\n"](i)) --- tra.inp:write(d) --- tra.inp:write(formatters["\n%% end snippet %s\n"](i)) --- end --- starttiming(metapost.exectime) --- result = mpx:execute(d) -- some day we wil use a coroutine with textexts --- stoptiming(metapost.exectime) --- if trace_graphics and result then --- local str = result.log or result.error --- if str and str ~= "" then --- tra.log:write(str) --- end --- end --- if not metapost.reporterror(result) then --- if metapost.showlog then --- local str = result.term ~= "" and result.term or "no terminal output" --- if not emptystring(str) then --- metapost.lastlog = metapost.lastlog .. "\n" .. str --- report_metapost("log: %s",str) --- end --- end --- if result.fig then --- converted = metapost.convert(result, trialrun, flusher, multipass, askedfig) --- end --- end --- else --- report_metapost("error: invalid graphic component %s",i) --- end end else if trace_tracingall then data = "tracingall;" .. data end process(data) --- starttiming(metapost.exectime) --- result = mpx:execute(data) --- stoptiming(metapost.exectime) --- if trace_graphics and result then --- local str = result.log or result.error --- if str and str ~= "" then --- tra.log:write(str) --- end --- end --- -- todo: error message --- if not result then --- report_metapost("error: no result object returned") --- elseif result.status > 0 then --- report_metapost("error: %s",(result.term or "no-term") .. "\n" .. (result.error or "no-error")) --- else --- if metapost.showlog then --- metapost.lastlog = metapost.lastlog .. "\n" .. result.term --- report_metapost("info: %s",result.term or "no-term") --- end --- if result.fig then --- converted = metapost.convert(result, trialrun, flusher, multipass, askedfig) --- end --- end end if trace_graphics then local banner = "\n% end graphic\n\n" |