Martin Seidell wrote:
> Although not strictly a GUI question, help if you have the answer...
> I need to convert rich text to html. Is there a method you already have for
> using win32 OLE within activestate perl to send RTF to a registered app,
> perform the conversion and get back HTML?
of course you can do that and there is one example with pythonwin.
very similar to the perl Win32::OLE syntax. :)
but note that the output of the MS converter is very poor not to
say completely damaged. I had to write a couple of custom and spezialized
perl scripts to fix some of the output to get at least a little bit of
conforming HTML.
you'll get unmatched tags,
wrong nested tags like
<b><i><li><a...> </b></i></li></a> and more stupid crap this.
line breaks get <p> breaks which is annoying:
s|<p>\n(.{80,})</p>|$1<p>\n|gm; # keep long lines
s|<p>\n(.+)</p>|$1<br>\n|gm; # fix shorter ones to br
Note also that there is finally a RTF parser module at CPAN.
Maybe you can use that.
--
Reini Urban
http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html