On Wed, 21 Feb 2001 14:02:13 +0000, Flip ter Biecht wrote:

> On Sun, 18 Feb 2001 21:16:40 -0500, Glenn McCorkle wrote:

>> On Sun, 18 Feb 2001 14:19:07 +0100, Michael Polak wrote:

>> ___________________________________

>>>> text/enriched            >HTM|@call rtf2htm.bat $1 $2

>>>> text/richtext            >HTM|@call rtf2htm.bat $1 $2
>>>> application/rtf          >HTM|@call rtf2htm.bat $1 $2

>>> What is this ? Does it produce any usable output ?

>> Yep, perfectly usable and viewable html.
>> --- rtf2htm.bat ---
>> copy %1 temprtf.rtf
>> c:\1common\martha.com temprtf.rtf
>> copy temprtf.htm %1htm
>> del temprtf.*
>> ___________________

>> Version 1.8 of martha.com is brand-new... 13 Feb, 2001
>> http://www.cena.dgac.fr/~sagnier/info/formats/conversions/martha_a.htm

> How do you get this to work?
> (I tried adding to mime.cfg and replacing the default declarations and
> creating one for file/*.rtf and file/.rtf; none works...

 To start with, you need rtf2htm.bat in your Arachne_main_directory
Also, since the newest version of martha is named "martha18.com":
change that line in rtf2htm.bat to read..... "drive:\path\martha18.com"

The way this proceeds is as follows:
When Arachne encounters a file on the net with any one of those
content-types, mime.cfg tells arachne to give the file the .HTM extension
*after* passing the original file through rtf2htm.bat

text/enriched            >HTM|@call rtf2htm.bat $1 $2
text/richtext            >HTM|@call rtf2htm.bat $1 $2
application/rtf          >HTM|@call rtf2htm.bat $1 $2

$1 is the original file being passed by arachne to rtf2htm.bat
$2 is the output of rtf2htm.bat being passed back to Arachne

The above 3 lines only work for converting files as they are D/Led.

For files already on the HDD, you need this line.

file/.rtf            >HTM|@call rtf2htm.bat $1 $2

You also need this line so that .RTF files attached to eMails will
then be decoded corectly.

text/rtf    RTF

Unfortunatly, this will only work if *both sender and receiver*
have that line in mime.cfg

> Martha18 is not to consequent in creating internal links to headers, but
> I was looking for a way to convert word97 docs via rtf to html because
> some people just don't understand they shouldn't assume everyone uses
> their system and keep attaching those docs. Free ms-word97 viewer can't
> do anything more than allow "select all" and "copy". Word6.0 then makes
> the rtf, without which I would have to do all layouting again in
> netscape composer.

 I can't say how well Martha will work for that purpose.

However, here's an example of Arachne/Martha
(judge for yourself) ;-)
http://w3.one.net/~mweiler/ushda/bor.rtf <--- original file.
http://www.angelfire.com/id/glenndoom/bor.htm <--- converted with A/M

-- 
 Glenn
 http://arachne.cz/
 http://freedos-32.sourceforge.net/
 http://www.delorie.com/listserv/mime/
 http://www.angelfire.com/id/glenndoom/download.htm

Reply via email to