From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30665 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: preliminary support for tex4ht is there (for ConTeXt to HTML conversion) Date: Wed, 6 Sep 2006 11:10:51 +0200 Message-ID: <6faad9f00609060210g5c8ec200yc8b0ebe3bd00d253@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157533890 12816 80.91.229.2 (6 Sep 2006 09:11:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 09:11:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 06 11:11:26 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GKtRC-0003CC-Fg for gctc-ntg-context-518@m.gmane.org; Wed, 06 Sep 2006 11:11:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33E281FDF1; Wed, 6 Sep 2006 11:11:12 +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 24730-01; Wed, 6 Sep 2006 11:11:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6F451FDE9; Wed, 6 Sep 2006 11:11:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A63761FDE9 for ; Wed, 6 Sep 2006 11:10:59 +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 19605-07 for ; Wed, 6 Sep 2006 11:10:54 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by ronja.ntg.nl (Postfix) with SMTP id 467B31FDD9 for ; Wed, 6 Sep 2006 11:10:53 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id s12so2544474wxc for ; Wed, 06 Sep 2006 02:10:52 -0700 (PDT) Original-Received: by 10.90.105.20 with SMTP id d20mr351670agc; Wed, 06 Sep 2006 02:10:51 -0700 (PDT) Original-Received: by 10.90.94.17 with HTTP; Wed, 6 Sep 2006 02:10:51 -0700 (PDT) Original-To: "mailing list for ConTeXt users" Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30665 Archived-At: Just to let you know: if you want to convert your ConTeXt documents into HTML, you can try to install tex4ht and replace the old files with new ones: http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html (newt4ht.zip) It works OK with the old perl texexec.pl, the ruby version causes some problems, but none of them are fatal. You need DVI as an intermediate format, so if you use texexec.rb, you have to add \setupoutput[dvi] at the top of the document, otherwise tex4ht won't be able to create HTML out of it. You can compile a document with "htcontext filename" or by manually running texexec --use=tex4ht filename tex4ht filename t4ht filename I cannot give you extensible information about how fonts are set up. In MikTeX it worked out-of-the-box, however I didn't play yet to make it work under the stand-alone distribution, but the following link might be of some importance: http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn32.html Support is not that extensive yet, but sections, external images (as long as they reside in the same directory and if they are in PNG/JPG), natural tables, itemisations, "place[something]", buffers, footnotes, very basic frames, math, ... are somehow working. (The big difference with math is that in LaTeX it is changed into bitmap and in ConTeXt it's currently text-based, so you'll get weird results when using \sum or similar, but I think that that is configurable, so if you manage to play enough with it you might be able to get formulas translated into MATHML, which will be displayed nicely in firefox for example.) And I guess that conversion into an OpenOffice document is very similar. I only asked the author to rewrite the pieces of code that caused problems before and to add some additional basic support to context.4ht, so if you have other requests, you should contact the author of tex4ht, not me !!! He adds support based on user requests (his first response was: nobody asked for improving ConTeXt support so far), so if you want to have better support implemented, feel free to ask him. Adding full support for ConTeXt is a bit too optimistic, but stepwise improvements are possible. Comments wellcome. (I currently have some problems with my computer, so I might not be very responsive to additional questions, but I'll try to fix the computer ASAP. Once that I manage to make it work inside stand-alone distr., I'll report how I did it if nobody else does that before me.) Mojca