From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35613 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: makempy (pstoedit <-> gs) hangs Date: Mon, 30 Jul 2007 14:30:51 +0200 Message-ID: <46ADF61B.15465.29BF47@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: sea.gmane.org 1185798929 17662 80.91.229.12 (30 Jul 2007 12:35:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 12:35:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 30 14:35:21 2007 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 1IFUT3-0005gM-Db for gctc-ntg-context-518@m.gmane.org; Mon, 30 Jul 2007 14:35:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C60B61FEB5; Mon, 30 Jul 2007 14:35:18 +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 30723-03-3; Mon, 30 Jul 2007 14:35:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3818F1FE7C; Mon, 30 Jul 2007 14:35:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 785D61FE7C for ; Mon, 30 Jul 2007 14:35:05 +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 31381-01-3 for ; Mon, 30 Jul 2007 14:35:01 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by ronja.ntg.nl (Postfix) with ESMTP id 6F5361FADB for ; Mon, 30 Jul 2007 14:35:01 +0200 (CEST) Original-Received: from [89.13.53.54] (helo=[192.168.178.21]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1IFUSi40et-0007T6; Mon, 30 Jul 2007 14:35:01 +0200 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX1+yp5ywQNXpKtyhY77mGH7N5I2nmurzR4MepiY mnbcjG5X1MSFHkoXC11T3/KkL4uLMmHkd/MgqiX10A8lK4+ioK 5OaEM6LPuGgCyEtn/2pWhCrUwCREIGi 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:35613 Archived-At: Hallo! > I think I've identified the problem: in the PostScript prologue > file for > pstoedit you find the following bit of code (slightly simplified): > > /getorigfont > { > dup /OrigFont known > { > /OrigFont get getorigfont > } > if > } > def > > > I guess anyone, even not familiar with PostScript, can spot the > error here: > getorigfont is called recursively ad infinitum! I have no idea why > this is so, > but this mistake is easy to correct, by simply commenting out the > innermost > ?getorigfont?; and it indeed fixes the problem with Wolfgang's > code. > > Why the error wouldn't happen with older versions of gs isn't > clear to me and > I haven't tested it (for debugging I used pstoedit 3.44 and gs > 8.56 > throughout); on the other hand, it's quite clear why the bug > wouldn't show up > on code that uses only outlines and no font, like in the last > example of > http://wiki.contextgarden.net/User-Defined_Enumerations as George > pointed out: > the spurious piece of code is only used for font redefinitions and > is therefore > not called in the case of the fuzzy itemize style, because the > symbols are not > taken from a font. > > For people wanting to compile an amended version of pstoedit, the > attached > patch should do the trick, although hand-editing the relevant file > (src/pstoedit.ph) should be just as easy (this is really a 2-byte > patch ? and > you can even turn it into a 2-bit patch ;-). Thank you Arthur! I have patched 'pstoedit.dll' version 3.44 (0x6B674: 0x20 --> 0x25) and so it works with gs 8.57 for me! 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 ___________________________________________________________________________________