Changeset 716
- Timestamp:
- 10/25/07 22:50:50 (6 years ago)
- Files:
-
- 1 modified
-
lang/ruby/chm/lib/chm.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/chm/lib/chm.rb
r709 r716 73 73 74 74 text = NKF.nkf("-w", retrieve_object(@index)) 75 #<OBJECT type="text/sitemap"> 76 #<param name="Name" value="pushd(path = nil, &block) (c/m Shell) (ruby-src:doc/shell.rd)"> 77 #<param name="Name" value="pushd(path = nil, ? (c/m Shell) (ruby-src:doc/shell.rd)"> 78 #<param name="Local" value="refm570.html#L011275"> 79 #</OBJECT> 75 #puts text[0, 1000] 80 76 81 77 index = {} … … 99 95 100 96 text = NKF.nkf("-w", retrieve_object(@topics)) 101 result = []97 result = {:children => []} 102 98 103 99 s = StringScanner.new(text) 104 s.skip(/.*? <UL>\s*/m)105 106 current = result100 s.skip(/.*?(?=<UL>)/m) 101 102 current = [result] 107 103 level = [] 108 while s.scan(/ <(LI|UL|\/UL)>\s*/)104 while s.scan(/\s*<(LI|UL|\/UL)>\s*/) 109 105 case s[1] 110 106 when "LI" … … 263 259 chm = Chmlib::Chm.new("/Users/cho45/htmlhelp/gauche-refj-0.8.7.chm") 264 260 pp chm.home 265 pp chm.instance_eval { @index }261 #pp chm.instance_eval { @index } 266 262 #pp chm.index 267 pp chm.searchable? 268 pp chm.search("list") 269 #pp chm.topics 263 #pp chm.searchable? 264 #pp chm.search("list") 265 chm = Chmlib::Chm.new("/Users/cho45/htmlhelp/macro.chm") 266 pp chm.topics 270 267 end 271 268
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)