FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » anyone know of RTF translator?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: anyone know of RTF translator? [message #176317 is a reply to message #176315] Tue, 20 December 2011 22:16 Go to previous messageGo to previous message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma:
Member
At 20 Dec 2011 21:15:36 GMT Denis McMahon <denismfmcmahon(at)gmail(dot)com> wrote:

>
> On Mon, 19 Dec 2011 20:05:34 -0500, Jerry Stuckle wrote:
>
>> On 12/19/2011 7:06 PM, Michael Joel wrote:
>>> I could really use some "add on" app/script that would allow me to
>>> supply a RTF (rich text format) file and it translate it to HTML. Of
>>> course free is preferred.
>
>> Open it in MS Word
>> Save it in HTML
>
> You owe me a keyboard cleaning Jerry. Honestly, have you seen the garbage
> that msword outputs when you ask it for html.
>
> Open office might be better, I don't know. It generates this for a
> document containing a single word:

Word Processors (*ALL* of them) generate horrible HTML (MS-Word might
be the worst of the lot). The problem is the Word Processors are all
'WYSIWYG' and HTML *by definition* is *NOT* WYSIWYG: HTML markup allows
for wide variation in what is displayed -- nothing is set in stone.
All of the markup is vague and open-ended and the browser is free to do
whatever it likes and the enduser is allowed wide latitude in
configuring almost everything from fonts to screen/window size and
resolution. In order to preserve the 'intended display, the word
processor must use lots of 'torturous' HTML to attempt to force the
proper display.

>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
> charset=utf-8">
> <TITLE></TITLE>
> <META NAME="GENERATOR" CONTENT="LibreOffice 3.3 (Unix)">
> <META NAME="AUTHOR" CONTENT="Denis McMahon">
> <META NAME="CREATED" CONTENT="20111220;21113400">
> <META NAME="CHANGEDBY" CONTENT="Denis McMahon">
> <META NAME="CHANGED" CONTENT="20111220;21122200">
> <STYLE TYPE="text/css">
> <!--
> @page { margin: 2cm }
> P { margin-bottom: 0.21cm }
> P.western { so-language: en-GB }
> -->
> </STYLE>
> </HEAD>
> <BODY LANG="en-GB" DIR="LTR">
> <P CLASS="western" STYLE="margin-bottom: 0cm">Test</P>
> </BODY>
> </HTML>
>
> which I think is a lot cleaner than word would produce for the same
> document.
>
> Rgds
>
> Denis McMahon
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Will The Earth End in 2012?Where will the human go?
Next Topic: r/w internal array pointer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 03:47:15 GMT 2024

Total time taken to generate the page: 0.04603 seconds