From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22669 Path: news.gmane.org!not-for-mail From: Christopher Creutzig Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt to RTF Conversion Date: Thu, 22 Sep 2005 22:54:47 +0200 Message-ID: <43331A17.1020100@creutzig.de> References: <20050922100002.E15A2127F0@ronja.ntg.nl> <43328617.30205@capdm.com> <2DF694F1-C55F-47D5-95E2-1D889971836F@ensta.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127422634 2419 80.91.229.2 (22 Sep 2005 20:57:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2005 20:57:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 22 22:57:06 2005 Return-path: 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 1EIY7i-0004fR-Uf for gctc-ntg-context-518@m.gmane.org; Thu, 22 Sep 2005 22:56:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B5010127FA; Thu, 22 Sep 2005 22:56:54 +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 32583-02; Thu, 22 Sep 2005 22:56:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD2E9127F9; Thu, 22 Sep 2005 22:54:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD3CB127F9 for ; Thu, 22 Sep 2005 22:54:53 +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 32583-01 for ; Thu, 22 Sep 2005 22:54:52 +0200 (CEST) Original-Received: from mailgate.uni-paderborn.de (mailgate.uni-paderborn.de [131.234.22.32]) by ronja.ntg.nl (Postfix) with ESMTP id 91B91127F6 for ; Thu, 22 Sep 2005 22:54:52 +0200 (CEST) Original-Received: from p548b0ca7.dip0.t-ipconnect.de ([84.139.12.167] helo=[192.168.1.2]) by mailgate.uni-paderborn.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.43) id 1EIY6h-0008Ki-Gt for ntg-context@ntg.nl; Thu, 22 Sep 2005 22:55:51 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <2DF694F1-C55F-47D5-95E2-1D889971836F@ensta.fr> X-Enigmail-Version: 0.92.0.0 X-UNI-PB_FAK-EIM-MailScanner-Information: Please see http://imap.uni-paderborn.de for details X-UNI-PB_FAK-EIM-MailScanner: Found to be clean X-UNI-PB_FAK-EIM-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.208, required 4, AUTH_EIM_USER -5.00, RCVD_IN_NJABL_DUL 1.66, RCVD_IN_SORBS_DUL 0.14) X-MailScanner-From: christopher@creutzig.de X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22669 Archived-At: Maurice Diamantini wrote: > So if I understand wml, I agree that xml is a format for filtering, > not a human writable format. > TeX, LaTeX or conTeXt is in input langage, which should be able to > be converted to the powerfull master XML format. No, sorry. This only works for extremely simple TeX code. forget about any real-world mathematics. Forget about 80% of what real-world LaTeX users type into their computers. TeX has simply never been written to be easily parsed. Besides, our actual users are way too much concerned with what their stuff looks like on their screens with their settings to bother about structured information and the like. Believe me, I have almost finished the translation of our highly structured program documentation files to some DocBook-based XML format, and I am very happy that I had decided to make this a one-time conversion with the automated process only trying to get some 95% or so correct. My experience with the new format (which is still limited, I've been working with it the last four months or so) leads me to believe that it is no more difficult to use than some TeX dialect. The only slightly awkward thing is that you have to explicitly mark all paragraphs. I don't mind, but if you do, that sort of thing can be scripted. Short summary: Define an xml format that embeds what you need at the moment. One mistake I made: I didn't go for short names, but used DocBook names. I probably should have started from XHTML, using

, , etc. Then use that format as your master and edit in this format. There are magnitudes more decent editors to help you with editing all sorts of xml than you will ever find for any TeX variant. (I know, one is sufficient, but finding one that does exactly what *you* want is much easier with more editors to choose from.) > So my question was, is there any exeprience about the use of > the ConTeXt module "m-tex4ht"? I do have experience with using tex4ht in LaTeX, which is its native setting. It is definitely much better than all the alternatives I tried, but it does have problems with formulas, it is rather difficult to teach it your new local commands and the generated HTML code is usable for exactly one thing: Rendering in a graphical browser, for us lucky ones without visual impairments. I would not dream of using this pile of mess for anything else. HTML generated by Word simply can't be worse. regards, Christopher