ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: ConTeXt to XML?
Date: Tue, 19 Jul 2005 22:57:49 +0200	[thread overview]
Message-ID: <42DD694D.2020507@wxs.nl> (raw)
In-Reply-To: <Pine.GSO.4.60.0507191059300.15021@mendoza>

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
-----------------------------------------------------------------

  parent reply	other threads:[~2005-07-19 20:57 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 17:52 presentations in ConTeXt Thomas A. Schmitz
2005-05-24 17:33 ` Mojca Miklavec
2005-05-24 18:56   ` Vit Zyka
2005-05-24 20:54     ` Mojca Miklavec
2005-06-28 10:58       ` Patrick Gundlach
2005-06-28 14:37         ` Mojca Miklavec
2005-06-28 15:13           ` Patrick Gundlach
2005-06-28 15:26           ` Hans Hagen
2005-06-28 15:43             ` Willi Egger
2005-06-28 17:25               ` Mojca Miklavec
2005-06-29 12:12                 ` garden art (was: presentations in ConTeXt) Henning Hraban Ramm
2005-06-28 15:47             ` Re: presentations in ConTeXt Willi Egger
2005-07-14  9:30           ` Thomas A. Schmitz
2005-07-15 19:46             ` Mojca Miklavec
2005-07-17 19:54               ` Thomas A. Schmitz
2005-07-17 21:10                 ` Hans Hagen
2005-07-19 15:18                   ` Thomas A. Schmitz
2005-07-19 16:18                     ` ConTeXt to XML? Elena Fraboschi
2005-07-19 19:57                       ` Brooks Moses
2005-07-19 20:40                         ` Hans Hagen
2005-07-19 23:26                           ` Brooks Moses
2005-07-20  7:02                             ` Help with interaction luigi.scarso
2005-07-20 11:56                               ` luigi.scarso
2005-07-20  9:25                             ` ConTeXt to XML? Hans Hagen
2005-07-19 20:57                       ` Hans Hagen [this message]
2005-07-19 21:02                       ` Hans Hagen
2005-07-19 18:23                     ` Re: presentations in ConTeXt Hans Hagen
2005-07-19 20:10                       ` Thomas A. Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42DD694D.2020507@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).