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.
>
> Regards,
> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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
> [EMAIL PROTECTED]
> 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: <[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
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>