ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christopher Creutzig <christopher@creutzig.de>
Subject: Re: ConTeXt to RTF Conversion
Date: Thu, 22 Sep 2005 22:54:47 +0200	[thread overview]
Message-ID: <43331A17.1020100@creutzig.de> (raw)
In-Reply-To: <2DF694F1-C55F-47D5-95E2-1D889971836F@ensta.fr>

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 <p>,
<em>, <a> 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

  reply	other threads:[~2005-09-22 20:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050922100002.E15A2127F0@ronja.ntg.nl>
2005-09-22 10:23 ` Duncan Hothersall
2005-09-22 16:51   ` Maurice Diamantini
2005-09-22 20:54     ` Christopher Creutzig [this message]
2005-09-23 18:57       ` Idris Samawi Hamid
2005-09-23 20:13         ` Christopher Creutzig
2005-09-21 16:12 Idris Samawi Hamid
  -- strict thread matches above, loose matches on Subject: below --
2005-09-21 15:12 Louis F.Springer
2005-09-21 15:31 ` andrea valle
2005-09-21 15:58   ` Pr. Erich Fickel
2005-09-21 21:23     ` andrea valle
2005-09-21 20:09 ` Mojca Miklavec
2005-09-21 20:19   ` Adam Lindsay

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=43331A17.1020100@creutzig.de \
    --to=christopher@creutzig.de \
    --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).