/[suikacvs]/markup/html/html5/spec-ja/common.pl
Suika

Diff of /markup/html/html5/spec-ja/common.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by wakaba, Sat Nov 1 11:58:32 2008 UTC revision 1.18 by wakaba, Sun Nov 2 04:49:55 2008 UTC
# Line 1  Line 1 
1  use strict;  use strict;
2    use utf8;
3    
4  my $data_dir_name = q[data/];  my $data_dir_name = q[data/];
5  my $data2_dir_name = q[data2/];  my $data2_dir_name = q[data2/];
# Line 233  sub get_modified_hashes () { Line 234  sub get_modified_hashes () {
234    return map {tr/\x0D\x0A//d; $_} <$file>;    return map {tr/\x0D\x0A//d; $_} <$file>;
235  } # get_modified_hashes  } # get_modified_hashes
236    
237    sub normalize_width ($) {
238      my $s = shift;
239      $s =~ tr{\x{3000}\x{FF01}-\x{FF5E}\x{FF61}-\x{FF9F}\x{FFE0}-\x{FFE6}}
240              { !-~。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン\x{3099}\x{309A}\xA2\xA3\xAC\xAF\xA6\xA5\x{20A9}};
241      return $s;
242    } # normalize_width
243    
244  sub htescape ($) {  sub htescape ($) {
245    my $s = shift;    my $s = shift;
246    $s =~ s/&/&amp;/g;    $s =~ s/&/&amp;/g;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24