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
Switch to threaded view of this topic Create a new topic Submit Reply
anyone know of RTF translator? [message #176302] Tue, 20 December 2011 00:06 Go to next message
Michael Joel is currently offline  Michael Joel
Messages: 42
Registered: October 2011
Karma: 0
Member
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.

Thanks
Mike
Re: anyone know of RTF translator? [message #176303 is a reply to message #176302] Tue, 20 December 2011 01:05 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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.
>
> Thanks
> Mike

Open it in MS Word
Save it in HTML

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: anyone know of RTF translator? [message #176309 is a reply to message #176303] Tue, 20 December 2011 13:07 Go to previous messageGo to next message
Derek Turner is currently offline  Derek Turner
Messages: 48
Registered: October 2010
Karma: 0
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.
>>
>> Thanks
>> Mike
>
> Open it in MS Word
> Save it in HTML

As free is preferred:

open it in Libre/OpenOffice
save it in HTML



--
"Capitalisation is the difference between helping
your Uncle Jack off a horse and helping your uncle jack off a horse."
Re: anyone know of RTF translator? [message #176311 is a reply to message #176309] Tue, 20 December 2011 15:19 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At 20 Dec 2011 13:07:01 GMT Derek Turner <frderek(at)cesmail(dot)net> 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.
>>>
>>> Thanks
>>> Mike
>>
>> Open it in MS Word
>> Save it in HTML
>
> As free is preferred:
>
> open it in Libre/OpenOffice
> save it in HTML
>

Pure CLI (and free):

rtf2latex2e (http://sourceforge.net/projects/rtf2latex2e/)
tex4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)

>
>

--
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
Re: anyone know of RTF translator? [message #176313 is a reply to message #176302] Tue, 20 December 2011 17:40 Go to previous messageGo to next message
Michael Joel is currently offline  Michael Joel
Messages: 42
Registered: October 2011
Karma: 0
Member
On Mon, 19 Dec 2011 19:06:52 -0500, Michael Joel <no(at)please(dot)com>
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.
>
> Thanks
> Mike


I was hoping there might be some way to work with RTF file in php...
kind of like you can do PDF - without having to study the file format
docs.

Thanks
Mike
Re: anyone know of RTF translator? [message #176314 is a reply to message #176313] Tue, 20 December 2011 17:50 Go to previous messageGo to next message
tony is currently offline  tony
Messages: 19
Registered: December 2010
Karma: 0
Junior Member
In article <o0i1f7hdlpp5q8gtcttb03k4lhq0v89umg(at)4ax(dot)com>,
Michael Joel <no(at)please(dot)com> wrote:
> On Mon, 19 Dec 2011 19:06:52 -0500, Michael Joel <no(at)please(dot)com>
> 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.
>
> I was hoping there might be some way to work with RTF file in php...
> kind of like you can do PDF - without having to study the file format
> docs.

Like this? http://www.lmgtfy.com?q=parse+rtf+in+php

First hit looks likely.

Cheers
Tony
--
Tony Mountifield
Work: tony(at)softins(dot)co(dot)uk - http://www.softins.co.uk
Play: tony(at)mountifield(dot)org - http://tony.mountifield.org
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 next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
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
Re: anyone know of RTF translator? [message #176316 is a reply to message #176315] Tue, 20 December 2011 22:14 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/20/2011 4:15 PM, Denis McMahon 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:
>
> <!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

lol,

Yes, MS Word kicks out a lot of garbage. But it's not that hard to
clean it up. At least most of the hard work is done.

However, I do agree with you - Open Office is much better.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
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 next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
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
Re: anyone know of RTF translator? [message #176323 is a reply to message #176317] Wed, 21 December 2011 14:59 Go to previous messageGo to next message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma: 0
Senior Member
On Tue, 20 Dec 2011 16:16:19 -0600, Robert Heller wrote:
> 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.

Isn't that ideal? Funnily enough, that's how most word processors work
these days, at least in the hands of people that actually know how to
use them instead of that merely think they do. The evidence of this
is that every real word processor these days includes the ability to
mark up text exactly like HTML does, and the magic ability to redefine
the styles associated with the classes of text, exactly like cascading
style sheets do. The issue is an astronomical percentage of people
using Word never touch the things and do all that kind of stuff by
hand instead. Which doesn't make the HTML output of Word any better.
When used properly, Word doesn't generate HTML much worse than any
bottom-rack, one-semester-of-experience HTML "designer". When given an
elaborate document created by the average typist-turned-electronic
keyboard jockey, that turns into a complete mess. But that's not (all)
Word's fault. There's just a lot more idiots using Word to create HTML
output that there are using LibreOffice to create HTML.

--
56. My Legions of Terror will be trained in basic marksmanship. Any who
cannot learn to hit a man-sized target at 10 meters will be used
for target practice.
--Peter Anspach's list of things to do as an Evil Overlord
Re: anyone know of RTF translator? [message #176325 is a reply to message #176323] Wed, 21 December 2011 16:36 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Wed, 21 Dec 2011 08:59:29 -0600 "Peter H. Coffin" <hellsop(at)ninehells(dot)com> wrote:

>
> On Tue, 20 Dec 2011 16:16:19 -0600, Robert Heller wrote:
>> 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.
>
> Isn't that ideal? Funnily enough, that's how most word processors work
> these days, at least in the hands of people that actually know how to
> use them instead of that merely think they do. The evidence of this
> is that every real word processor these days includes the ability to
> mark up text exactly like HTML does, and the magic ability to redefine
> the styles associated with the classes of text, exactly like cascading
> style sheets do. The issue is an astronomical percentage of people
> using Word never touch the things and do all that kind of stuff by
> hand instead. Which doesn't make the HTML output of Word any better.
> When used properly, Word doesn't generate HTML much worse than any
> bottom-rack, one-semester-of-experience HTML "designer". When given an
> elaborate document created by the average typist-turned-electronic
> keyboard jockey, that turns into a complete mess. But that's not (all)
> Word's fault. There's just a lot more idiots using Word to create HTML
> output that there are using LibreOffice to create HTML.

The problem is mostly the fault of the WYSIWYG editer / user-interface.
It makes it way too easy to use 'visual design' (which is bad), rather
than 'logical design' (which is good). Document preparation systems
like LaTeX *separate* the editor function from the generation function.
This forces one to use logical design, which results in cleanly
formatted documents (and if generating HTML, clean and simple HTML).

>

--
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
Re: anyone know of RTF translator? [message #176328 is a reply to message #176323] Wed, 21 December 2011 17:04 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Peter H. Coffin wrote:
> Which doesn't make the HTML output of Word any better.
> When used properly, Word doesn't generate HTML much worse than any
> bottom-rack, one-semester-of-experience HTML "designer". When given an
> elaborate document created by the average typist-turned-electronic
> keyboard jockey, that turns into a complete mess. But that's not (all)
> Word's fault. There's just a lot more idiots using Word to create HTML
> output that there are using LibreOffice to create HTML.
>

Indeed. They apply similar algorithms to Japanese and Chinese
instruction manuals..

http://www.engrish.com/category/computer/
Re: anyone know of RTF translator? [message #176329 is a reply to message #176309] Thu, 22 December 2011 10:16 Go to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
On 12/20/2011 06:07 AM, Derek Turner 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.
>>>
>>> Thanks
>>> Mike
>>
>> Open it in MS Word
>> Save it in HTML
>
> As free is preferred:
>
> open it in Libre/OpenOffice
> save it in HTML

There is a free utility whose name I can't at the moment remember (I
think it is "Calibre") whose purpose is to prepare "kindle-readable"
<sic> documents from myriad formats. Try google. This url has some
possibly relevant information:

http://wiki.mobileread.com/wiki/E-book_conversion
  Switch to threaded view of this topic Create a new topic Submit Reply
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 15:35:39 GMT 2024

Total time taken to generate the page: 0.02637 seconds