Namazu-devel-ja(旧)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
filter/html.pl: decode_numbered_entity
- From: 藤原 誠 / Makoto Fujiwara <makoto@xxxxx>
- Date: Thu, 05 Jun 2003 10:24:46 +0900
- X-ml-name: namazu-devel-ja
- X-mail-count: 02949
> 千葉市中央区長洲
> 藤原 誠
To: namazu-users-en@xxxxxxxxxx
X-ML-Name: namazu-users-en
X-Mail-Count: 00409
に書いたことですが、次のものを commit しようと思います。
(stable-2-0 および head)
参考にした URL は
http://www.namazu.org/ml/namazu-users-en/msg00388.html
http://www.namazu.org/ml/namazu-users-en/msg00398.html
http://cvs.namazu.org/namazu/doc/ja/tips.html
http://www.blooberry.com/indexdot/html/tagpages/text.htm
等です。
Index: filter/html.pl
===================================================================
RCS file: /storage/cvsroot/namazu/filter/html.pl,v
retrieving revision 1.32.4.5
diff -u -r1.32.4.5 html.pl
--- filter/html.pl 29 Apr 2003 19:10:39 -0000 1.32.4.5
+++ filter/html.pl 5 Jun 2003 00:56:17 -0000
@@ -315,7 +315,9 @@
sub decode_numbered_entity ($) {
my ($num) = @_;
return ""
- if $num >= 0 && $num <= 8 || $num >= 11 && $num <= 31 || $num >=127;
+ if $num >= 0 && $num <= 31 || $num >= 127 && $num <= 159 ;
+ return ""
+ if $num >=127 && islang('ja');
sprintf ("%c",$num);
}
---
(藤原)