From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45318 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Minimals - problems with format: metafun.mp Date: Wed, 05 Nov 2008 12:24:37 +0100 Message-ID: <49118275.90808@elvenkind.com> References: <49103FF3.2010500@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000205080702060200070504" X-Trace: ger.gmane.org 1225884760 22419 80.91.229.12 (5 Nov 2008 11:32:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 11:32:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 05 12:33:42 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 1Kxgdp-00018R-SB for gctc-ntg-context-518@m.gmane.org; Wed, 05 Nov 2008 12:33:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA8791FD48; Wed, 5 Nov 2008 12:32:29 +0100 (CET) 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 06870-02-11; Wed, 5 Nov 2008 12:31:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B48AF1FCE5; Wed, 5 Nov 2008 12:28:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 769821FCDF for ; Wed, 5 Nov 2008 12:27:59 +0100 (CET) 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 06985-02-8 for ; Wed, 5 Nov 2008 12:27:17 +0100 (CET) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id EBB8A1FCE9 for ; Wed, 5 Nov 2008 12:24:37 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id DA519804515C for ; Wed, 5 Nov 2008 12:24:37 +0100 (CET) User-Agent: Thunderbird 2.0.0.12 (X11/20080305) In-Reply-To: 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:45318 Archived-At: This is a multi-part message in MIME format. --------------000205080702060200070504 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Meanwhile we found there is a timing issue inside \everyjob. Hans is thinking really hard about a solution. Just for verification purposes, you could try the attached, patched t-openoffice.tex. That one should work, but it is not a solution, just to verify the bug. Best wishes, Taco luigi scarso wrote: > > > On Tue, Nov 4, 2008 at 1:28 PM, Hans Hagen > wrote: > > Johannes Graumann wrote: > > No changes in error message. I attach the code that doesn't work > like so: > > > > context --ctx=t-openoffice Attempt.odt > > runs ok here > > > hmm > not here > > > minimals-beta > Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC > 2008 i686 GNU/Linux > This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown > ConTeXt MtxRun | current version: 2008.11.03 09:22 > > minimalsBIRTHDAY > Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC > 2008 i686 GNU/Linux > This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown > ConTeXt MtxRun | current version: 2008.10.31 13:58 > > -- > luigi > > > ------------------------------------------------------------------------ > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------000205080702060200070504 Content-Type: text/x-tex; name="t-openoffice.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="t-openoffice.tex" %context --ctx=t-openoffice BoldAndItalicContent.xml \startenvironment t-openoffice.tex \checknotes \initializeMPgraphics \MPLIBregister \the \everysetupxml \ctxlua {input.stoptiming(ctx)} \checkpreprocessor \startluacode document.commands = document.commands or { } function document.commands.somehexcolor(str) local r, g, b = str:match("#(..)(..)(..)") r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0, tonumber(b,16) or 0 tex.sprint(string.format("\\colored[r=%s,g=%s,b=%s]",r/255,g/255,b/255)) end \stopluacode \startxmlsetups office \xmlsetsetup{main}{text:p|text:span}{*} \stopxmlsetups \xmlregistersetup{office} \startxmlsetups text:p \xmlflush{#1}\endgraf \stopxmlsetups \startxmlsetups text:span \bgroup \let\leftofspan \relax \let\rightofspan\relax \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)} \leftofspan \xmlflush{#1} \rightofspan \egroup \stopxmlsetups \startxmlsetups do:style:text-properties \xmlval{fo:font-weight} {\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes \xmlval{fo:font-style} {\xmlatt{#1}{font-style}}{} %\xmlval{fo:color} {\xmlatt{#1}{color}}{} \getvalue{fo:color}{\xmlatt{#1}{color}} \xmlval{style:text-position} {\xmlatt{#1}{text-position}}{} \xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{} \stopxmlsetups \xmlmapvalue{fo:font-weight}{bold}{\bf} \xmlmapvalue{fo:font-style}{italic}{\em} \xmlmapvalue{fo:color}{#ff0000}{\colored[h=ff0000]} \setvalue{fo:color}#1{\expandafter\colored\expandafter[h=#1]} %\setvalue{fo:color}#1{\edef\temp{\noexpand\ctxlua{document.commands.somehexcolor("\letterhash\uppercase{#1}")}}\temp} \catcode`\%=11 \xmlmapvalue{style:text-position}{sub 58%} {\def\leftofspan##1\rightofspan{\low {##1}}} \xmlmapvalue{style:text-position}{super 58%}{\def\leftofspan##1\rightofspan{\high{##1}}} \catcode`\%=14 \definetextbackground [underline] [location=text, alternative=1, background=, framecolor=black, frame=off] %\xmlmapvalue{style:text-underline-style}{solid}{\def\leftofspan##1\rightofspan{\startunderline##1\stopunderline}} \xmlmapvalue{style:text-underline-style}{solid}{\let\leftofspan\startunderline\let\rightofspan\stopunderline} \setupcolors[state=start] \starttext %\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{} \usezipfile[\inputfilename.odt] \xmlprocess{main}{*/content.xml}{} \stoptext \stopenvironment --------------000205080702060200070504 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------000205080702060200070504--