From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21486 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt to XML? Date: Tue, 19 Jul 2005 22:57:49 +0200 Message-ID: <42DD694D.2020507@wxs.nl> References: <9EA19B5C-0590-49C8-B397-0DDF02B0E53F@uni-bonn.de> <6faad9f005052410333139b7f2@mail.gmail.com> <429378DC.407@seznam.cz> <6faad9f005052413547f1e774f@mail.gmail.com> <6faad9f0050628073767e019bf@mail.gmail.com> <32E92F94-02D4-4A1E-A350-6F3CFF2FDD1A@uni-bonn.de> <6faad9f0050715124647ba63fa@mail.gmail.com> <6E7CB668-55CB-42CD-BAD4-F58C3EEC5983@uni-bonn.de> <42DAC94E.4080902@wxs.nl> <4491E49E-9A14-4D8D-9ED8-314B1A100C1F@uni-bonn.de> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121806671 23476 80.91.229.2 (19 Jul 2005 20:57:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 20:57:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 19 22:57:48 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 1Duz9X-0007CK-A7 for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jul 2005 22:57:23 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7BFC127DC; Tue, 19 Jul 2005 22:57:22 +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 23800-03; Tue, 19 Jul 2005 22:57:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 927EC127D0; Tue, 19 Jul 2005 22:57:19 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 13A25127D0 for ; Tue, 19 Jul 2005 22:57: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 23805-02 for ; Tue, 19 Jul 2005 22:57:16 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id EA275127C4 for ; Tue, 19 Jul 2005 22:57:16 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6JKvBYd029870 for ; Tue, 19 Jul 2005 22:57:11 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id A53A2314E6; Tue, 19 Jul 2005 22:13:46 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id 3945417AEC for ; Tue, 19 Jul 2005 20:13:45 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.86.1/984/Tue Jul 19 11:16:09 2005 on mailrelay02 X-Virus-Status: Clean 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:21486 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21486 Elena Fraboschi wrote: > So, I have been delving into ConTeXt, and I like its syntax: far > "cleaner" than LaTeX. I have also read that there is work in progress > to convert XML to ConTeXt --- my question is, any thoughts, hints, > recommendations about reverse-engineering, that is, from ConTeXt to > XML? If the IUMJ switched production to ConTeXt, we would still want > to preserve on "archival" copy in XML. > > (As of now we translate LaTeX to XML using "hermes", but it would > not work with ConTeXt.) If nothing is contemplated in the > area of *from ConTeXt to XML", might this strategy work There are several things involved in such a translation - the general structure, this is not that hard and can easily be scripted - special characters, also easy to script - special markup, like math, chemistry etc concerning math, one can use: - content mathml, which is very structured and configurable - presentation mathml, which looks like tex, and does not always lead to nice looking output - embedded tex, which is ok as a start one can consider "structure in xml and embedded tex for formulas", its not that hard to generate web pages from that i'm considering adding open math support (needed for a project) > ConTeXt -> pdf - pdf to XML ? the best way is: xml -> context xml -> html xml -> anything normally magazines are not that complex so oen can use context's direct mapping; depending on the amount of manipulations, one can xml -> context reading xml -> pdf xml -> xslt -> xml -> context reading xml -> pdf xml -> xslt -> context code -> context reading tex -> pdf in any case, try to cut the problem into small parts and find solutions for that; so far i never ran into things/demands that could not be solved > I apologize if the topic is off bounds, and will be grateful if anyone > decides to think outloud on this subject. Best, elena no problem, if you want to know more you can either use this list (it could also be a nice thread for those who want to do similar things) if you don't want to bother the list., you may also mail me directly pdf is pages while xml is structured markup, so converting pdf into xml is non trivial, (btw, the dutch math societies journal is made up in context, i.e. non standard layout (2/3 columns, grayscales, two non cm font sets, graphics, pictures etc; the main reason why we now have the columnsets mechanism-) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------