Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/4-stable/doc/htmlhelp_index_make.pl

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

revision 4405 by yutakapon, Wed Mar 30 10:33:46 2011 UTC revision 4431 by yutakapon, Sun Apr 10 13:49:08 2011 UTC
# Line 4  Line 4 
4  # HTMLヘルプのインデックスファイルを生成する  # HTMLヘルプのインデックスファイルを生成する
5  #  #
6  # Usage(ActivePerl):  # Usage(ActivePerl):
7  #  perl htmlhelp_index_make.pl  #  perl htmlhelp_index_make.pl ja html > ja\Index.hhk
8  #  #
9    
10  use Cwd;  use Cwd;
# Line 71  sub get_file_paths { Line 71  sub get_file_paths {
71  sub check_html_file {  sub check_html_file {
72          my($filename) = shift;          my($filename) = shift;
73          local(*FP);          local(*FP);
74          my($line, $no);          my($line, $no, $val);
75                    
76          if ($filename !~ /.html$/) {          if ($filename !~ /.html$/) {
77                  return;                  return;
# Line 85  sub check_html_file { Line 85  sub check_html_file {
85                  if ($line =~ /<TITLE>(.+)<\/TITLE>/i) {                  if ($line =~ /<TITLE>(.+)<\/TITLE>/i) {
86  #                       print "$filename:$no: $1\n";  #                       print "$filename:$no: $1\n";
87  #                       print "$line\n";  #                       print "$line\n";
88                          write_add_index($filename, $1);                          $val = $1;
89                            $val =~ s/"/&#34;/g;  # 二重引用符をエスケープする
90                            write_add_index($filename, $val);
91                          last;                          last;
92                  }                  }
93    

Legend:
Removed from v.4405  
changed lines
  Added in v.4431

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26