|
|
Server-sided Conversion of Word/rtf to HTML?
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
I see there are apps on Mac OS X & Windows, but has anyone (pref. open-source? PHP?) done anything with server-sided conversion... so that a .doc or .rtf file (with fairly simple formating) could be converted at least into (p), (h1), (h2), etc tags (invisibly to the lay, HTML-ignorant users) and then styled by a site's CSS?
I've seen some CMS systems are going to start some "WYSIWIG" text editors (browser-based)... which is another route. But the one I remember seeing wasn't yet beyond Windows.
I can hear now the SILENCE responding to this pie-in-the-sky wish... but I thought I'd see if anybody's heard anything being even attempted to come close.
TIA
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status:
Offline
|
|
I haven't seen anything, but it wouldn't be too difficult. Just a matter of find replace code in PHP... If I have a spare minute, I'll write one up.
|
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
I imagine any normal app that converts Word to HTML would work as long as you can control it programmatically. Also, the WYSIWYG FCKeditor works on Firefox on Mac, though it's just an editor, not a CMS.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
Thanks for responses guys.
Chuckit... I was really having trouble figuring out FCKeditor.... I couldn't see how it would DO anything. Then I looked back and notice that, among all the browsers it supported... Safari was not listed. So I opened it in FireFox.. and wow!
So what IS it with FCKeditor / Safari? I'm amazed they can be have such different capabilities? Can anyone explain why (in simple terms) why it doesn't work in Safari?
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Mar 2003
Location: Down by the river
Status:
Offline
|
|
Not sure if UNIX terminal commands can be evoked via .CGI scripts but 'textutil' can convert from doc, rtf, tct, and html.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Originally Posted by cgc
Not sure if UNIX terminal commands can be evoked via .CGI scripts but 'textutil' can convert from doc, rtf, tct, and html.
Directly invoking a Unix terminal command from an HTTP request isn't really a good idea, but it would be easy to write a CGI script that acts as glue to invoke the command and return the results to the user. I wouldn't recommend this for high-volume sites, but if the script isn't going to see heavy use then it's worth considering.
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
|
|
|
|
|
|
|
Registered User
Join Date: Jul 2006
Status:
Offline
|
|
I was trying to get textutil to work from a PHP script running on Apache 2.0 and OS X 10.4.6 and kept running into this error:
"Window Server communications from outside of session allowed for root and console user only"
What it boils down to is: Nope, can't use that app on the command-line unless you're root or actually logged in via the GUI (though textutil might actually work if you are logged in via ssh, but still complain).
Rats!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|