According to David Adams:
> On Tue, 12 Jun 2001 16:04:03 +0200 
> [EMAIL PROTECTED] wrote:
> > Problem between r2netcmd and htdig.
> > 
> > for indexing rtf file , I have replaced rtf2html by the r2net software in
> > doc2html.pl .I am working under linux (Suze) to make conversion of rtf in
> > French language.
> > To use r2netcmd with htdig I have routing the input in a fichier .rtf in /
> > tmp for the external parser:
[snip]
> > the tampon.rtf file give me for example :
> > 
> > ****************************************************
> > bb et d\'e9ziper ce fichier dans ce nouveau r\'e9pertoire.
> > **************************************************** 
> > 
> > and the tampon.html file gives me the accents but my database db.wordlist
> > gives me only e9pertoire.
> > 
> > someone could help me. 
> 
> I think this is a LOCALE problem, which I am not capable of 
> answering.

I'm not so sure about this being a locale problem.  The fact that the
"e9" appears as part of the word in the db.wordlist suggests to me that
r2net isn't converting the \'e9 sequence in the RTF file into an é
or � in the resulting HTML output.  If \'e9 is valid RTF syntax for an �,
and r2net isn't converting it correctly, then it's a problem with r2net.
If it were merely a locale problem in htdig, the wordlist would contain
pertoire, rather than e9pertoire, because it would treat the � as a word
separator.

> As regards your modification of doc2html.pl, this does seem 
> unnecessarily involved, simply to provide a *.rtf file for 
> r2netcmd. How about simply changing the command line to:
> 
>      my $rtf = quotemeta("$TMP/$Name.rtf");
>      $cmdl = "(cp $Input $rtf; $RTF2HTML $rtf; $RM $rtf)";
> 
> I havn't tried this, but it should work.
> Even better, you might consider creating a symbolic link to 
> $Input rather making a copy.

Yes, you could replace the cp command above with ln or ln -s.  In any case,
you still need the rm (or $RM) command above to remove the copy or link.

You'll also need the $ED command to change the title, as in the original
example code you posted.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to