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 #176315 is a reply to message #176303] Tue, 20 December 2011 21:15 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
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:

<!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
[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 05:25:05 GMT 2024

Total time taken to generate the page: 0.04493 seconds