Subject: Re: [htdig] Re: Fw: doc2html
From: Gilles Detillieux (email@example.com)
Date: Mon Jan 22 2001 - 09:22:46 PST
According to Leong Peck Yoke:
> Actually I was wrong, the code means replacing the soft hyphen \255 with
> \055. I didn't read it carefully. Sorry for the inconvenience caused.
> Peck Yoke
No problems. The octal code 055 is the ASCII hyphen (-), while 255 octal
is the ISO-8859-1 code for soft hyphen, which oddly enough is often used
to encode a long dash rather than a soft hyphen. This little substitution
was something I added to parse_doc.pl, and kept in conv_doc.pl, because
it solved a problem for me in dealing with some of my PDFs. I don't
think it should pose a problem for anyone else, but if it ever does it's
easily removed from the script.
> David Adams wrote:
> > When I wrote doc2html I copied this without change from conv_doc, and I
> > think it is the same in the original parse_doc parser script. Is Leong
> > correct?
> > --
> > David Adams
> > Computing Services
> > Southampton University
> > ----- Original Message -----
> > From: "Leong Peck Yoke" <firstname.lastname@example.org>
> > To: <email@example.com>
> > Sent: Sunday, January 21, 2001 1:18 PM
> > Subject: doc2html
> >> Hi,
> >> I am look at your code doc2html.pl for a project. I notice that in
> >> function try_text at line 366, the following code
> >> s/\255/-/g; # replace dashes with hyphens
> >> seems to be wrong. Shouldn't it be "s/\055/-/g" instead?
> >> Regards,
> >> Peck Yoke
> To unsubscribe from the htdig mailing list, send a message to
> You will receive a message to confirm this.
> List archives: <http://www.htdig.org/mail/menu.html>
> FAQ: <http://www.htdig.org/FAQ.html>
-- Gilles R. Detillieux E-mail: <firstname.lastname@example.org> 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
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>
This archive was generated by hypermail 2b28 : Mon Jan 22 2001 - 10:06:17 PST