From gildea at cs.rochester.edu Sun Mar 26 21:55:06 2023 From: gildea at cs.rochester.edu (Daniel Gildea) Date: Sun, 26 Mar 2023 15:55:06 -0400 Subject: [l2h] iso_map() Message-ID: thanks for the report, I have updated this in github. > > I think the perl code of iso_map() in latex2html.pin may be fail: > > 10883 $enc =~ /^\&\#(\d{3});$/; > 10884 # numeric character references in html refer to unicode > 10885 # we need to convert this char to an 8-bit character > 10886 if ($1 && ($1<=255)) { $enc = chr($1) } > > If the value of the "$enc" doesn't match the pattern in the line > 10883 (for example, ""e;", which exists in %iso_8859_1_ > character_map), then $1 in the line 10886 may be old value for > another pattern matching. > > I think the following code may be better: > > if ($enc =~ /^\&\#(\d{3});$/ && $1 && $1<=255) { $enc = chr($1) } >