langhelp 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/bin/mklanghelp ADDED
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- ruby -*-
3
+ # mklanghelp - Create langhelp index of various languages
4
+ #
5
+ # Copyright (C) 2005,2006 rubikitch <rubikitch@ruby-lang.org>
6
+ # Version: $Id:$
7
+
8
+ # This program is free software; you can redistribute it and/or modify
9
+ # it under the terms of the GNU General Public License as published by
10
+ # the Free Software Foundation; either version 2 of the License, or
11
+ # (at your option) any later version.
12
+ # This program is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with this program; if not, write to the Free Software
18
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+
20
+ require 'optparse'
21
+ require 'langhelp/mklanghelp'
22
+ mk = MkLangHelp.new
23
+ langs = ARGV # default
24
+
25
+ ARGV << "--help" if ARGV.empty?
26
+ ARGV.options do |o|
27
+ o.banner << " [languages]\n" << "Supported languages: #{mk.langs.join(', ')}\n"
28
+ o.on("-a", "--all", "Output index of all languages.") { langs = mk.langs }
29
+ o.on("--home=DIR", "Output directory of index files.") {|v| mk.langhelp_home = v}
30
+ o.on("--suffix=SUFFIX",
31
+ "Suffix of index files [default: #{mk.index_suffix}]"){|v|
32
+ mk.index_suffix = v }
33
+ o.on("--init-script=FILE", "-c FILE",
34
+ "Initialize script name [default: #{mk.init_script}]"){|v|
35
+ mk.init_script = v }
36
+ o.on("-f", "Suppress read of init script."){ mk.no_init = true }
37
+ o.on("--langs", "Output supported languages.") {
38
+ puts mk.langs; exit 0 }
39
+ o.on("--stdout", "Output index into stdout.") { mk.output_stdout = true }
40
+ o.on("-e EXP", "--eval=EXP", "Evaluate.") {|e|
41
+ mk.eval_expr = eval(e)
42
+ mk.output_stdout = true
43
+ langs = ["stdout"]
44
+ }
45
+ o.on("-d", "--debug", "Output stack trace when error occurred.") {
46
+ mk.debug_mode = true }
47
+ o.parse!
48
+ end
49
+
50
+ mk.write(langs)
@@ -0,0 +1,889 @@
1
+ # -*- ruby -*-
2
+ #
3
+ ################################################################
4
+ # #
5
+ # This is a langhelp sample configuration file #
6
+ # #
7
+ ################################################################
8
+ #
9
+ # This file is pure Ruby script. So all the Ruby expression is valid.
10
+ # If you use langhelp for the first time then copy it into
11
+ # `~/.langhelp/config' and edit the copied file for your environment.
12
+ #
13
+ # If you do not need a certain line which begins from spaces and `{'
14
+ # character (Hash elements), you can comment out the line. To comment
15
+ # out a line, put `#' character at the beginning of line. If you use
16
+ # font-lock the commented line is colored as comment. To avoid
17
+ # confusion and syntax error, Hash elements are written in one line
18
+ # even if the line is very long.
19
+ #
20
+ # To help you modify this file for your environment, some sexps are embedded.
21
+ # All lines containing embedded sexp have `[EVAL IT]' mark.
22
+ # To eval the sexp, type C-e C-x C-e; `end-of-line' and `eval-last-sexp'.
23
+ #
24
+ # Remember to reboot el4r when you modify this file.
25
+ # Type `M-x el4r-boot' to reboot el4r.
26
+ #
27
+ # If you want to know supported languages, eval the sexp below.
28
+ # [EVAL IT] (occur "^################ ")
29
+ #
30
+ ######## How to Get Documents
31
+ #
32
+ # To get documents, it is easy by using Debian GNU/Linux package
33
+ # even if you are not using Debian.
34
+ #
35
+ # If you are using Debian, simply `apt-get install' package.
36
+ #
37
+ # If you are not using Debian, eval `browse-url' sexp. It brings you
38
+ # the debian package directory. The file name of Debian package `foo'
39
+ # is `foo_version_architecture.deb'. Then download the corresponding
40
+ # package.
41
+ #
42
+ # To extract Debian package, execute the following command.
43
+ # You need GNU ar (in Binutils).
44
+ # [EVAL IT] (browse-url "http://www.gnu.org/software/binutils/")
45
+ #
46
+ # ar x foo_version_architecture.deb; tar xzvf data.tar.gz | grep usr/share
47
+ #
48
+ #
49
+ ######## You need GNU wget to download multiple HTMLs
50
+ #
51
+ # For windows users,
52
+ # Wget for win32 is here [EVAL IT] (browse-url "http://apollo.u-gakugei.ac.jp/~sunaoka/tools/win32/wget/wget-1.9.1-win32-binary.zip")
53
+ # OpenSSL for win32 is here [EVAL IT] (browse-url "http://apollo.u-gakugei.ac.jp/~sunaoka/tools/win32/openssl/openssl-0.9.7g-win32-binary.zip")
54
+ #
55
+ ######## If you are not Japanese
56
+ #
57
+ # Eval this sexp to comment-out all the Japanese setting.
58
+ #
59
+ # [EVAL IT] (replace-regexp "^.+Japanese" "#\\&")
60
+ #
61
+ ######## How to Add a New Document
62
+ #
63
+ # Langhelp defines many classes to handle various document formats,
64
+ # such as HTML, Info, Manpage, RD, Perl POD, and so on. If you get an
65
+ # HTML document, use HTML class. If you get an Info document, use Info
66
+ # class. If you get a plain text document, use Grep class.
67
+ #
68
+ # Eval this sexp to list all the class.
69
+ #
70
+ # [EVAL IT] (occur "#### class")
71
+ #
72
+ ######## How to Add a New Language
73
+ #
74
+ # This file is a Ruby script. So if you want to add a new language,
75
+ # add a new element assignment of the `@lang' hash.
76
+ #
77
+ # For example, you add `foo' language,
78
+ #
79
+ # @lang["foo"] = [
80
+ #
81
+ # ]
82
+ #
83
+ #
84
+ # After writing an assignment, add documents.
85
+ #
86
+ ################################################################
87
+
88
+ @LANGHELP_HOME = File.expand_path("~/.langhelp/")
89
+ @HTML2TXT = "w3m -cols 1000 -dump -T text/html"
90
+ @ENCODING = :euc_jp
91
+ # @ENCODING = :sjis
92
+ @TAB_WIDTH = -4 # negative number means (frame-width - @TAB_WIDTH.abs)
93
+
94
+ # If you do not want to use langhelp frame, uncomment this.
95
+ # @NO_FRAME=true
96
+
97
+ #### The langhelp key binding.
98
+ ## The left is key and the right is EmacsLisp command.
99
+ ## Note that the name of EmacsLisp command is substituted ('-' -> '_').
100
+ @KEY_BINDING = {
101
+ 'n' => :next_line,
102
+ 'p' => :previous_line,
103
+
104
+ ## vi-like cursor movement
105
+ 'j' => :next_line,
106
+ 'k' => :previous_line,
107
+
108
+ ## follow the link
109
+ # [EVAL IT] (describe-function 'lh-goto-link)
110
+ # [EVAL IT] (describe-function 'lh-goto-link-centering)
111
+ # [EVAL IT] (describe-function 'lh-goto-link-edit)
112
+ 'l' => :lh_goto_link,
113
+ '\C-m' => :lh_goto_link,
114
+ ';' => :lh_goto_link_centering,
115
+ 'C' => :lh_goto_link_centering,
116
+ 'L' => :lh_goto_link_centering,
117
+ 'o' => :lh_goto_link_edit,
118
+ ## Kill help buffer
119
+ # [EVAL IT] (describe-function 'lh-kill-link)
120
+ 'D' => :lh_kill_link,
121
+ 'K' => :lh_kill_link,
122
+
123
+
124
+ ## Restore window configuration before langhelp-call.
125
+ '\C-c\C-c' => :winconf_pop,
126
+ 'h' => :winconf_pop,
127
+
128
+ ## scroll the langhelp buffer
129
+ ' ' => :scroll_up,
130
+ 'b' => :scroll_down,
131
+
132
+ '/' => :isearch_forward,
133
+ 's' => :isearch_forward,
134
+ 'g' => :beginning_of_buffer,
135
+
136
+ ## scroll help buffer (under the langhelp buffer)
137
+ # [EVAL IT] (describe-function 'scroll-other-window)
138
+ # [EVAL IT] (describe-function 'scroll-other-window-down)
139
+ 'v' => :scroll_other_window,
140
+ 'c' => :scroll_other_window_down,
141
+
142
+ ## Update langhelp buffer
143
+ # [EVAL IT] (describe-function 'langhelp-revert-buffer)
144
+ 'R' => :langhelp_revert_buffer,
145
+
146
+ ## bm.el : buffer bookmark.
147
+ # [EVAL IT] (describe-function 'bm-toggle)
148
+ # [EVAL IT] (describe-function 'bm-previous)
149
+ # [EVAL IT] (describe-function 'bm-next)
150
+ 'm' => :bm_toggle,
151
+ 'u' => :bm_toggle,
152
+ 'P' => :bm_previous,
153
+ 'N' => :bm_next,
154
+
155
+ ## show full index
156
+ # [EVAL IT] (describe-function 'langhelp-switch-to-index-buffer)
157
+ 'd' => :langhelp_switch_to_index_buffer,
158
+
159
+ ## narrowing
160
+ # [EVAL IT] (describe-function 'langhelp-toggle-narrowing)
161
+ '\C-c\C-n' => :langhelp_toggle_narrowing,
162
+
163
+ ## exclude
164
+ # [EVAL IT] (describe-function 'flush-lines)
165
+ 'V' => :flush_lines_whole_buffer,
166
+ 'G' => :keep_lines_whole_buffer,
167
+
168
+ } # /@KEY_BINDING
169
+
170
+
171
+ #### langhelp-occur setup
172
+ ## When isearching in langhelp buffer, this key invokes langhelp-occur.
173
+ @isearch_occur_key = '\C-o'
174
+ ## Langhelp key binding (global-map)
175
+ @langhelp_key = '\C-cs'
176
+ ## `true' if you want to use `grep' shell command. This is faster.
177
+ @occur_by_grep = true
178
+ ## If you do not have `grep' shell command, uncomment this.
179
+ # @occur_by_grep = false
180
+
181
+ ################################################################
182
+ ################################################################
183
+
184
+ @lang = {} # DO NOT REMOVE THIS LINE
185
+ @aliases = {} # DO NOT REMOVE THIS LINE
186
+
187
+ # Note that specified file names are expanded internally. So you can
188
+ # write `~/' notation.
189
+
190
+ #### Directories which contain manpages.
191
+ manpath = %w[ /usr/share/man/ /usr/local/man/ /usr/local/share/man /usr/X11R6/man ]
192
+
193
+
194
+ ################ Index for shell script ################
195
+ @lang["sh"] = [
196
+ #### class Info
197
+ #
198
+ # Extract lines which match the regexp or function markup from GNU Info format.
199
+ #
200
+ # :Info : Info files (wildcard is also accepted)
201
+ # :regexp : All lines which match this regexp are indexed.
202
+ # Extract important information if omitted
203
+ # :title : Title of this section (common among all classes)
204
+ # :extract : Which to extract. candidates = [:node, :regexp, :section, :description]
205
+ # If you prefer brief index, set :extract attribute.
206
+ # By default, extract all of above.
207
+ #
208
+
209
+ ## debian: zsh-doc
210
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/z/zsh/")
211
+ {:Info => "/usr/share/info/zsh.info*", :title=>"ZSH Info"},
212
+ ## debian: bash-doc
213
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/b/bash/")
214
+ {:Info => "/usr/share/info/bash.info.gz", :title=>"Bash Info"},
215
+ ## debian: coreutils
216
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/c/coreutils/")
217
+ {:Info=>"gnujdoc/coreutils-5.2.1/coreutils-ja.info*", :title=>"Info (Japanese)"},
218
+ {:Info => "/usr/share/info/coreutils.info.gz", :title=>"GNU Coreutils"},
219
+
220
+ {:Info=>"~/.langhelp/gnujdoc/fileutils-4.1/fileutils-ja.info.gz", :title=>"Info (Japanese)"},
221
+
222
+ {:Info=>"~/.langhelp/gnujdoc/findutils-4.2.23/find-ja.info.gz", :title=>"Info (Japanese)"},
223
+
224
+ {:Info=>"~/.langhelp/gnujdoc/sh-utils-2.0/sh-utils-ja.info.gz", :title=>"Info (Japanese)"},
225
+ {:Info=>"~/.langhelp/gnujdoc/textutils-2.0/textutils-ja.info.gz", :title=>"Info (Japanese)"},
226
+
227
+ ## debian: gettext
228
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/gettext/")
229
+ # {:Info => "/usr/share/info/gettext.info.gz", :title=>"GNU `gettext' utilities"},
230
+ ## debian: id-utils
231
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/i/id-utils/")
232
+ # {:Info => "/usr/share/info/id-utils.info.gz", :title=>"ID utilities"},
233
+
234
+ ## If you prefer brief index, uncomment those three lines.
235
+ # {:Info => "/usr/share/info/coreutils.info.gz", :regexp=>/^\d+\.\d+ \`(\w+)\': /, :title=>"GNU Coreutils"},
236
+ # {:Info => "/usr/share/info/gettext.info.gz", :regexp=>/^[\d\.]+ Invoking the \`(.+)\' Program$/, :title=>"GNU `gettext' utilities"},
237
+ # {:Info => "/usr/share/info/id-utils.info.gz", :regexp=>/^[\d\.]+ \`(.+)\':/, :title=>"ID utilities"},
238
+
239
+ #### class Manpage
240
+ #
241
+ # Create manpage index(multiple manpages / not read contents).
242
+ #
243
+ # :Manpage : Sections of manpages
244
+ # :manpath : Directories which contain manpages.
245
+ # :glob : List only matched filename [default: *]
246
+ #
247
+ #
248
+ # Create single manpage index(read contents).
249
+ # :Manpage : command
250
+ # :section : manpage section
251
+ # :regexp : regexp to extract
252
+ #
253
+ ## man1, man5, man6, man7, man8
254
+ {:Manpage => [1,5,6,7,8], :manpath=>manpath, :title=>"Manpages" },
255
+ ]
256
+ ## shell-mode also uses sh's index
257
+ @aliases["sh"] = [ "shell", "shell-script" ]
258
+
259
+
260
+ ################ Index for C ################
261
+ @lang["c"] = [
262
+ #### class RefeC, Ri, Refe, LuaHelp ...
263
+ #
264
+ # Call the specific shell command when documentation is shown.
265
+ #
266
+ # [Class Symbol] : true means that shell command is called
267
+ # :cmd : Shell command cmd is called
268
+ #
269
+
270
+ ## refe is available at here
271
+ ## [EVAL IT] (browse-url "http://i.loveruby.net/ja/projects/refe/")
272
+ {:RefeC => true, :cmd=>"refe -e", :title=>"Ruby/C API (Japanese)"},
273
+ ## debian: glibc-doc
274
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/glibc/")
275
+ {:Info => "/usr/share/info/libc.info*", :title=>"The GNU C Library Reference Manual"},
276
+ ## man2, man3
277
+ {:Manpage => [2,3], :manpath=>manpath, :title=>"Manpages"},
278
+ ]
279
+
280
+
281
+ ################ Index for Makefile ################
282
+ @lang["makefile"] = [
283
+ ## debian: make
284
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/m/make/")
285
+ {:Info => "/usr/share/info/make.info*", :title=>"GNU Make Info"},
286
+ ## debian: automake1.9
287
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/a/automake1.9/")
288
+ {:Info=>"~/.langhelp/gnujdoc/automake-1.9/automake-ja.info*", :title=>"Info (Japanese)"},
289
+ {:Info => "/usr/share/info/automake-1.9.info*", :title=>"GNU Automake Info"},
290
+ ]
291
+
292
+ ################ Index for Autoconf ################
293
+ @lang["autoconf"] = [
294
+ {:Info=>"~/.langhelp/gnujdoc/autoconf-2.59/autoconf-ja.info*", :title=>"Info (Japanese)"},
295
+ ## debian: autoconf-doc
296
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/non-free/a/autoconf-nonfree/")
297
+ {:Info => "/usr/share/info/autoconf.info.gz", :title=>"GNU Autoconf Info"},
298
+ ## debian: autoconf2.13
299
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/a/autoconf2.13/")
300
+ # {:Info => "/usr/share/info/autoconf2.13.info.gz", :title=>"GNU Autoconf Info"},
301
+ ]
302
+
303
+ ################ Index for C++ ################
304
+ @lang["c++"] = [
305
+ #### class W3MLink
306
+ #
307
+ # Create a hyperlink to an HTML file.
308
+ #
309
+ # :W3MLink : The HTML file to link
310
+ # :label : Name of link (can be omitted)
311
+ #
312
+
313
+ ## debian: stl-manual
314
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/s/stl-manual/")
315
+ {:W3MLink => "/usr/share/doc/stl-manual/html/index.html", :label=>"STL Guide", :title=>"Useful links"},
316
+
317
+ #### class W3MExtractLinks
318
+ #
319
+ # Extract links from an HTML file, and create lh-w3m hyperlinks.
320
+ #
321
+ # :W3MExtractLinks : The HTML file to extract links
322
+ # :exclude_label : specify labels which you do not want to be extractd (Hash / Regexp / Array)
323
+ # :exclude_url : specify URLs which you do not want to be extractd (Hash / Regexp / Array)
324
+ {:W3MExtractLinks => "/usr/share/doc/stl-manual/html/stl_index.html", :exclude_url=>[/www.sgi.com/, /index.html/], :title=>"STL index"},
325
+
326
+ ## debian: libg++2.8.1.3-dev
327
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/libg/libg++27/")
328
+ {:Info => "/usr/share/info/libg++.info.gz", :title=>"libg++ Info"},
329
+ ]
330
+
331
+
332
+ ################ Index for Ruby ################
333
+ @lang["ruby"] = [
334
+ #### class RubyRefm
335
+ #
336
+ # Create index of Ruby Reference Manual in Japanese.
337
+ #
338
+ # :RubyRefm : index page or directory.
339
+ #
340
+
341
+ ## available at
342
+ ## [EVAL IT] (browse-url "http://elbereth-hp.hp.infoseek.co.jp/ruby.html")
343
+ {:RubyRefm => "~/doc/rubyrefm/", :title=>"Ruby Reference Manual (Japanese)"},
344
+ ## Ri index
345
+ {:Ri => true, :title=>"RI"},
346
+ ## ReFe index (so-called Japanese Ri)
347
+ ## refe is available at here
348
+ ## [EVAL IT] (browse-url "http://i.loveruby.net/ja/projects/refe/")
349
+ {:Refe => true, :cmd=>"refe", :title=>"ReFe (Japanese)"},
350
+ #### class MoonWolfRubyDoc
351
+ #
352
+ # Create index of MoonWolf's RubyDoc format.
353
+ #
354
+ {:MoonWolfRubyDoc => "~/ruby/htmlsplit.html", :title=>"HTMLSplit (Japanese)"},
355
+ #### class RD
356
+ #
357
+ # Create index of RD format.
358
+ #
359
+ # :exclude : Exclude line or regexp (Array).
360
+ #
361
+ # [EVAL IT] (locate "sys-proctable")
362
+ {:RD => "~/compile/sys-proctable-0.6.4/doc/linux.rd", :title=>"ProcTable"},
363
+
364
+ {:Grep => "~/compile/narray-0.5.7/SPEC.ja", :regexp=>/^(\S.| \S)/, :title=>"NArray SPEC"},
365
+ {:RD=> "~/compile/numru-units-1.5/doc/units.rd", :title=>"units"},
366
+
367
+ ]
368
+ ## inferior-ruby-mode (and irbsh) also uses ruby's index.
369
+ @aliases["ruby"] = [ "inferior-ruby" ]
370
+
371
+
372
+ ################ Index for EmacsLisp ################
373
+ @lang["emacs-lisp" ] = [
374
+ ## debian: emacs-lisp-intro
375
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/emacs-lisp-intro/")
376
+ {:Info => "/usr/share/info/emacs-lisp-intro.info.gz", :title=>"EmacsLisp Intro"},
377
+
378
+ {:Info => "/usr/share/info/emacs-21/cl*.gz", :title=>"cl manual"},
379
+ ## debian: elisp-manual-ja
380
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/elisp-manual-ja/")
381
+ {:Info => "/usr/share/info/elisp-ja*", :title=>"EmacsLisp manual (Japanese)"},
382
+ ## debian: elisp-manual
383
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/elisp-manual/")
384
+ # {:Info => "/usr/share/info/elisp*", :title=>"EmacsLisp manual (English)"},
385
+ ## debian: emacs-manual-ja
386
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/emacs-manual-ja/")
387
+ # {:Info => "/usr/share/info/emacs-ja*", :title=>"Emacs manual (Japanese)"},
388
+ {:Info=>"~/.langhelp/gnujdoc/emacs-20.6/emacs-ja.info*", :title=>"Info (Japanese)"},
389
+
390
+ ## debian: emacs21-common
391
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/emacs21/")
392
+ {:Info => "/usr/share/info/emacs-21/emacs*", :title=>"Emacs manual (English)"},
393
+ ## debian: elib
394
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/e/elib/")
395
+ {:Info => "/usr/share/info/elib.info*", :title=>"Elib manual"},
396
+ ## debian: eieio
397
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/c/cedet/")
398
+ {:Info => "/usr/share/info/eieio.info*", :title=>"EIEIO manual"},
399
+ ## debian: apel
400
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/a/apel/")
401
+ {:Grep => "/usr/share/doc/apel/README.en.gz", :regexp=>/^\*/, :title=>"apel manual"},
402
+
403
+ ]
404
+ ## inferior-emacs-lisp-mode and lisp-interaction-mode also use emacs-lisp's index
405
+ @aliases["emacs-lisp"] = [ "inferior-emacs-lisp", "lisp-interaction" ]
406
+
407
+
408
+ ################ Index for Perl ################
409
+ @lang["perl"] = [
410
+ #### class PodSections
411
+ #
412
+ # Show all the sections in perl.pod.
413
+ #
414
+ # :PodSections : true (means that langhelp defuns `lh-podsections')
415
+ # :perl_pod : The full path of perl.pod
416
+ # :cmd : perldoc command line
417
+ #
418
+ # [EVAL IT] (locate "perl.pod")
419
+
420
+ ## debian: perl-doc
421
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/p/perl/")
422
+ {:PodSections => true, :perl_pod => "/usr/share/perl/5.8.8/pod/perl.pod", :cmd=>"perldoc -t", :title=>"POD Sections"},
423
+
424
+ #### class PerlFunc
425
+ #
426
+ # Create index of Perl builtin functions.
427
+ #
428
+ # :PerlFunc : true
429
+ # :perlfunc_pod : The full path of perlfunc.pod
430
+ # :cmd : perldoc command line
431
+ #
432
+ # [EVAL IT] (locate "perlfunc.pod")
433
+
434
+ ## debian: perl-doc
435
+ {:PerlFunc => true, :perlfunc_pod => "/usr/share/perl/5.8.8/pod/perlfunc.pod", :cmd=>"perldoc -t -f", :title=>"Perl Builtin Functions"},
436
+
437
+ #### class PerlDoc
438
+ #
439
+ # Create index of Perl modules.
440
+ #
441
+ # :PerlDoc : true
442
+ # :perl_path : Perl library path (Array)
443
+ # :cmd : perldoc command line
444
+ #
445
+ # [EVAL IT] (locate "/usr/share/perl")
446
+ {:PerlDoc => true, :perl_path => [ "/usr/share/perl/5.8.8", "/usr/share/perl5" ], :cmd=>"perldoc -t", :title=>"Perl Modules"},
447
+ ]
448
+ ## cperl-mode also uses perl's index.
449
+ @aliases["perl"] = [ "cperl" ]
450
+
451
+
452
+ ################ Index for PHP ################
453
+ ## Directory which contains PHP manual (HTML format)
454
+ php_manual_dir = "~/compile/phpdoc/"
455
+ @lang["php"] = [
456
+ #### class PHPManual
457
+ #
458
+ # Create index of PHP Manual whose format is HTML.
459
+ #
460
+ # :PHPManual : Directory which contains PHP manual.
461
+ # :glob : Process only files which match the glob.
462
+ #
463
+ # [EVAL IT] (locate "control-structures")
464
+
465
+ ## debian: phpdoc
466
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/non-free/p/phpdoc/")
467
+ {:PHPManual => php_manual_dir, :glob=>"function.*", :title=>"Function Reference"},
468
+ {:PHPManual => php_manual_dir, :glob=>"class.*", :title=>"Class Reference"},
469
+ {:PHPManual => php_manual_dir, :glob=>"control-structures.*", :title=>"Control Structure Reference"},
470
+ ]
471
+
472
+
473
+ ################ Index for Scheme ################
474
+ @lang["scheme"] = [
475
+ ## debian: gauche-doc
476
+ ## [EVAL IT] (locate "gauche-ref")
477
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/gauche/")
478
+ {:Info => "/usr/share/info/gauche-refj.info*.gz", :title=>"Info (Japanese)"},
479
+ {:Info => "/usr/share/info/gauche-refe.info*.gz", :title=>"Info (English)"},
480
+
481
+ ## debian: guile-1.6-doc
482
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/guile-1.6/")
483
+ {:Info => "/usr/share/info/guile.info*", :title=>"Guile Info"},
484
+ {:Info => "/usr/share/info/guile-tut.info*", :title=>"Guile Tutorial"},
485
+ {:Info => "/usr/share/info/goops.info*", :title=>"GOOPS Info"},
486
+
487
+
488
+ ## R5RS documents
489
+ ## debian: r5rs-doc
490
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/r/r5rs-doc/")
491
+ {:Info => "/usr/share/info/r5rs.info*.gz", :title=>"R5RS Info"},
492
+
493
+ #### class HTML
494
+ #
495
+ # Extract HeadLines (Content of H1 .. H6 element) and DescListItems
496
+ # (Content of DT element) of HTML format. This class handles many
497
+ # logically marked-up HTMLs. For poorly marked-up HTMLs, use W3MGrep
498
+ # class instead or write your own class.
499
+ #
500
+ # :HTML : The HTML file. (allows multiple HTMLs using glob)
501
+ # :noconv : If true, disable charset conversion.
502
+ # :recursive : Recursive indexing.
503
+ # if `:next', follow the next page specified by LINK element.
504
+ #
505
+ ## SRFI documents
506
+ # To download all SRFI documents, issue:
507
+ # cd ~/doc; srfi-get.rb
508
+ # If you want to read Japanese SRFI documents(partial), issue:
509
+ # srfi-ja-get.rb
510
+ {:HTML => "~/doc/srfi-*.html", :title=>"SRFI"},
511
+
512
+ #### class Grep
513
+ #
514
+ # Extract lines which match the regexp. This class is for plain text.
515
+ # This class is general purpose.
516
+ #
517
+ # :Grep : The input file.
518
+ # :regexp : The regexp to extract.
519
+ # :exclude : Exclude line or regexp (Array).
520
+ #
521
+ # Older definition is deprecated.
522
+ # :Grep : The regexp to extract.
523
+ # :src : The input file.
524
+ # :exclude : Exclude line or regexp (Array).
525
+ #
526
+ # [EVAL IT] (locate "gaunit")
527
+
528
+ ## GaUnit is available here
529
+ ## [EVAL IT] (browse-url "http://www.cozmixng.org/~kou/gauche/gaunit.html.en")
530
+ {:Grep => "~/compile/gaunit-0.1.1/README.ja", :regexp=>%r!^---|^:!, :title=>"GaUnit (Japanese)"},
531
+ {:Grep => "~/compile/gaunit-0.1.1/README.en", :regexp=>%r!^---|^:!, :title=>"GaUnit (English)"},
532
+ ]
533
+ ## Index for Scheme is the same as gauche's one.
534
+ @aliases["scheme"] = ["inferior-gauche"]
535
+ @aliases["scheme"] << "gauche"
536
+ @aliases["scheme"] << "guile"
537
+
538
+
539
+ ################ Index for ratpoisonrc ################
540
+ # ratpoisonrc is configuration file for ratpoison window manager.
541
+ @lang["ratpoisonrc"] = [
542
+ ## [EVAL IT] (locate "ratpoison.info.gz")
543
+ ## debian: ratpoison
544
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/r/ratpoison/")
545
+ # {:Info => "/usr/share/info/ratpoison.info.gz", :title=>"Info"},
546
+ {:Info => "~/compile/ratpoison-1.4.0/doc/ratpoison.info", :title=>"Info"},
547
+ ]
548
+
549
+
550
+ ################ Index for screenrc ################
551
+ # screenrc is configuration file for GNU Screen.
552
+ @lang["screenrc"] = [
553
+ # [EVAL IT] (locate "screen.info.gz")
554
+ ## debian: screen
555
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/s/screen/")
556
+ # {:Info => "/usr/share/info/screen.info*", :title=>"Info"},
557
+ {:Info => "~/src/screen-4.0.2/doc/screen.info*", :title=>"Info"},
558
+ ]
559
+
560
+
561
+ ################ Index for EmacsRuby ################
562
+ @lang["el4r"] = [
563
+ # *langhelp:el4r* == *langhelp:ruby* + *langhelp:emacs-lisp*
564
+ @lang["ruby"],
565
+ @lang["emacs-lisp"],
566
+ ]
567
+
568
+
569
+
570
+ ################ Index for Python ################
571
+ @lang["python"] = [
572
+ ## debian: python2.1-doc
573
+ ## debian: python2.2-doc
574
+ ## debian: python2.3-doc
575
+ ## debian: python2.4-doc
576
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/p/python2.4/")
577
+ {:Info => "/usr/share/info/python2.4-ref.info*", :title=>"Python Reference Manual"},
578
+ {:Info => "/usr/share/info/python2.4-lib.info*", :title=>"Python Library Reference"},
579
+ {:Info => "/usr/share/info/python2.4-tut.info*", :title=>"Python Tutorial"},
580
+ {:Info => "/usr/share/info/python2.4-mac.info*", :title=>"Macintosh Library Modules"},
581
+ {:Info => "/usr/share/info/python2.4-ext.info*", :title=>"Extending and Embedding the Python Interpreter"},
582
+ {:Info => "/usr/share/info/python2.4-dist.info*", :title=>"Distributing Python Modules"},
583
+ {:Info => "/usr/share/info/python2.4-api.info*", :title=>"Python/C API Reference Manual"},
584
+
585
+
586
+ #### class PythonLib
587
+ #
588
+ # Create index of Python Manual whose format is HTML.
589
+ #
590
+ # :PythonLib : The index page.
591
+ #
592
+ # [EVAL IT] (locate "genindex.html")
593
+ # {:PythonLib => "~/src/Python-Docs-2.4/lib/genindex.html", :title=>"Python reference (HTML)"},
594
+ ]
595
+
596
+ ################ Index for Lua ################
597
+ @lang["lua"] = [
598
+ #### luahelp
599
+ {:LuaHelp => true, :cmd=>"luahelp", :title=>"LuaHelp"},
600
+ #### lunit (Testing framework)
601
+ # [EVAL IT] (locate "lunit-")
602
+ {:Grep => "~/compile/lunit-0.3alpha/DOCUMENTATION", :regexp=>%r/^\tlunit\./, :title=>"lunit"},
603
+ ]
604
+
605
+ ################ Index for Graphviz ################
606
+ @lang["graphviz-dot"] = [
607
+ #### class W3MGrep
608
+ #
609
+ # Extract lines which match the regexp. This class is for HTML.
610
+ # Beware that W3M-DUMPED TEXT is grepped.
611
+ # This class is general purpose.
612
+ #
613
+ # :W3MGrep : The input file.
614
+ # :regexp : The regexp to extract.
615
+ # :exclude : Exclude line or regexp (Array).
616
+ #
617
+ # Older definition is deprecated
618
+ # :W3MGrep : The regexp to extract.
619
+ # :src : The input file.
620
+ # :exclude : Exclude line or regexp (Array).
621
+ #
622
+ # [EVAL IT] (locate "graphviz")
623
+ # [EVAL IT] (locate "attrs.html")
624
+
625
+ ## debian: graphviz
626
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/graphviz/")
627
+ {:W3MGrep => "/usr/share/doc/graphviz/html/info/attrs.html", :regexp=>/^\w+$/, :title=>"Graph Attributes"},
628
+ {:W3MGrep => "/usr/share/doc/graphviz/html/FAQ.html", :regexp=>/^(Q\.|=+)/, :title=>"FAQ"},
629
+
630
+ {:HTML=>"/usr/share/doc/graphviz/html/info/lang.html", :title=>"The DOT Language"},
631
+ {:HTML=>"/usr/share/doc/graphviz/html/info/command.html", :title=>"Command-line usage"},
632
+ {:HTML=>"/usr/share/doc/graphviz/html/info/output.html", :title=>"Output Formats"},
633
+ {:HTML=>"/usr/share/doc/graphviz/html/info/shapes.html", :title=>"Node Shapes"},
634
+ {:HTML=>"/usr/share/doc/graphviz/html/info/colors.html", :title=>"Colors"},
635
+ ]
636
+
637
+ ################ Index for Octave ################
638
+ # [EVAL IT] (shell-command "apt-cache search octave")
639
+ # [EVAL IT] (list-directory "/usr/share/info")
640
+ @lang["octave"] = [
641
+ ## debian: octave2.9-info
642
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/o/octave2.9/")
643
+ {:Info => "/usr/share/info/octave2.9.info*", :title => "Octave info" },
644
+ {:Info => "/usr/share/info/Octave2.9-FAQ.info.gz", :title => "Octave FAQ info" },
645
+ {:Info => "/usr/share/info/liboctave2.9.info.gz", :title => "liboctave info" },
646
+
647
+ ## older octave
648
+ ## debian: octave2.1-info
649
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/o/octave2.1/")
650
+ # {:Info => "/usr/share/info/octave2.1.info*", :title => "Octave info" },
651
+ # {:Info => "/usr/share/info/Octave2.1-FAQ.info.gz", :title => "Octave FAQ info" },
652
+ # {:Info => "/usr/share/info/liboctave2.1.info.gz", :title => "liboctave info" },
653
+ ]
654
+ @aliases["octave"] = [ "inferior-octave" ]
655
+
656
+ ################ Index for LaTeX ################
657
+ # [EVAL IT] (locate "latex.info.gz")
658
+ # [EVAL IT] (locate "kpathsea.info.gz")
659
+ # [EVAL IT] (locate "web2c.info.gz")
660
+ # [EVAL IT] (locate "dvips.info.gz")
661
+ @lang["latex"] = [
662
+ ## debian: tetex-bin
663
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/t/tetex-bin/")
664
+ {:Info => "~/info/latex.info*", :title=>"LaTeX Info"},
665
+ {:Info => "~/info/kpathsea.info.gz", :title=>"Kpathsea Info"},
666
+ {:Info => "~/info/web2c.info*", :title=>"Web2c Info"},
667
+ {:Info => "~/info/dvips.info*", :title=>"Dvips Info"},
668
+ ]
669
+ @aliases["latex"] = [ "yatex", "auctex" ]
670
+
671
+ ################ Index for Awk ################
672
+ # [EVAL IT] (locate "awk.info.gz")
673
+ @lang["awk"] = [
674
+ ## debian: gawk
675
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/gawk/")
676
+ {:Info => "/usr/share/info/gawk.info.gz", :title=>"GNU Awk Info"},
677
+ {:Info => "/usr/share/info/gawkinet.info.gz", :title=>"TCP/IP Internetworking With `gawk' Info"},
678
+ ]
679
+
680
+ ################ Index for sed ################
681
+ # [EVAL IT] (locate "sed.info.gz")
682
+ @lang["sed"] = [
683
+ {:Info=>"~/.langhelp/gnujdoc/sed-4.1.2/sed-ja.info.gz", :title=>"Info (Japanese)"},
684
+ ## debian: sed
685
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/s/sed/")
686
+ {:Info => "/usr/share/info/sed.info.gz", :title=>"GNU sed Info"},
687
+ ]
688
+
689
+ ################ Index for m4 ################
690
+ @lang["m4"] = [
691
+ {:Info=>"~/.langhelp/gnujdoc/m4-1.4/m4-ja.info.gz", :title=>"Info (Japanese)"},
692
+ ## debian: m4
693
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/m/m4/")
694
+ {:Info => "/usr/share/info/m4.info.gz", :title=>"GNU m4 Info"},
695
+ ]
696
+
697
+ ################ Index for Tcl ################
698
+ @lang["tcl"] = [
699
+ ## debian: tcl8.0-doc
700
+ ## debian: tcl8.3-doc
701
+ ## debian: tcl8.4-doc
702
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/t/tcl8.4/")
703
+ {:Manpage => [3], :manpath=>manpath, :glob=>"*.3tcl*", :title=>"Tcl Manpages"},
704
+ ]
705
+
706
+ ################ Index for wget ################
707
+ @lang["wget"] = [
708
+ {:Info => "~/.langhelp/gnujdoc/wget-1.10/wget-ja.info.gz", :title=>"GNU Wget Info (Japanese)"},
709
+ {:Info => "/usr/share/info/wget.info.gz", :title=>"GNU Wget Info"},
710
+ ]
711
+
712
+ ################ Index for binutils ################
713
+ @lang["binutils"] = [
714
+ {:Info=>"~/.langhelp/gnujdoc/binutils-2.16.1/binutils-ja.info.gz", :title=>"Info (Japanese)"},
715
+ ## debian: binutils-doc
716
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/b/binutils/")
717
+ {:Info=>"/usr/share/info/as.info.gz", :title=>"Info"},
718
+ {:Info=>"/usr/share/info/bfd.info.gz", :title=>"Info"},
719
+ {:Info=>"/usr/share/info/binutils.info.gz", :title=>"Info"},
720
+ {:Info=>"/usr/share/info/gprof.info.gz", :title=>"Info"},
721
+ {:Info=>"/usr/share/info/ld.info.gz", :title=>"Info"},
722
+ ]
723
+
724
+ ################ Index for diff ################
725
+ @lang["diff"] = [
726
+ {:Info=>"~/.langhelp/gnujdoc/diffutils-2.8.1/diff-ja.info.gz", :title=>"Info (Japanese)"},
727
+ ## debian: diff-doc
728
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/d/diff-doc/")
729
+ {:Info=>"/usr/share/info/diff.info.gz", :title=>"Info"},
730
+ ]
731
+ ################ Index for flex ################
732
+ @lang["flex"] = [
733
+ {:Info=>"~/.langhelp/gnujdoc/flex-2.5.4/flex-ja.info.gz", :title=>"Info (Japanese)"},
734
+ ## debian: flex
735
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/f/flex/")
736
+ {:Info=>"/usr/share/info/flex.info.gz", :title=>"Info"},
737
+ ]
738
+ ################ Index for gengetopt ################
739
+ @lang["gengetopt"] = [
740
+ {:Info=>"~/.langhelp/gnujdoc/gengetopt-2.14/gengetopt-ja.info.gz", :title=>"Info (Japanese)"},
741
+ ]
742
+ ################ Index for grep ################
743
+ @lang["grep"] = [
744
+ {:Info=>"~/.langhelp/gnujdoc/grep-2.5/grep-ja.info.gz", :title=>"Info (Japanese)"},
745
+ ]
746
+ ################ Index for gzip ################
747
+ @lang["gzip"] = [
748
+ {:Info=>"~/.langhelp/gnujdoc/gzip-1.2.4/gzip-ja.info.gz", :title=>"Info (Japanese)"},
749
+ ## debian: gzip
750
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/gzip/")
751
+ {:Info=>"/usr/share/info/gzip.info.gz", :title=>"Info"},
752
+ ]
753
+ ################ Index for hurd ################
754
+ @lang["hurd"] = [
755
+ {:Info=>"~/.langhelp/gnujdoc/hurd-0.2/hurd-ja.info.gz", :title=>"Info (Japanese)"},
756
+ ## debian: hurd-doc
757
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/h/hurd/")
758
+ {:Info=>"/usr/share/info/hurd.info.gz", :title=>"Info"},
759
+
760
+ ]
761
+ ################ Index for libtool ################
762
+ @lang["libtool"] = [
763
+ {:Info=>"~/.langhelp/gnujdoc/libtool-1.5/libtool-ja.info.gz", :title=>"Info (Japanese)"},
764
+ ## debian: libtool-doc
765
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/libt/libtool/")
766
+ {:Info=>"/usr/share/info/libtool.info.gz", :title=>"Info"},
767
+ ]
768
+ ################ Index for standards ################
769
+ @lang["standards"] = [
770
+ {:Info=>"~/.langhelp/gnujdoc/standards-19981118/standards-ja.info.gz", :title=>"Info (Japanese)"},
771
+ ## debian: gnu-standards
772
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/non-free/g/gnu-standards/")
773
+ {:Info=>"/usr/share/info/standards.info.gz", :title=>"Info"},
774
+ {:Info=>"/usr/share/info/maintain.info.gz", :title=>"Info"},
775
+ ]
776
+ ################ Index for texinfo ################
777
+ @lang["texinfo"] = [
778
+ {:Info=>"~/.langhelp/gnujdoc/texinfo-4.3/info-ja.info.gz", :title=>"Info (Japanese)"},
779
+ {:Info=>"~/.langhelp/gnujdoc/texinfo-4.3/info-stnd-ja.info.gz", :title=>"Info (Japanese)"},
780
+ {:Info=>"~/.langhelp/gnujdoc/texinfo-4.3/texinfo-ja.info*", :title=>"Info (Japanese)"},
781
+ ## debian: info
782
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/t/texinfo/")
783
+ {:Info=>"/usr/share/info/info.info.gz", :title=>"Info"},
784
+ {:Info=>"/usr/share/info/info-stnd.info.gz", :title=>"Info"},
785
+ ]
786
+
787
+
788
+ ################ Index for gdb ################
789
+ @lang["gdb"] = [
790
+ {:Info=>"~/.langhelp/gnujdoc/gdb-4.18/gdb-ja.info*", :title=>"Info (Japanese)"},
791
+ ## debian: gdb
792
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/g/gdb/")
793
+ {:Info=>"/usr/share/info/gdb.info.gz", :title=>"Info"},
794
+ {:Info=>"/usr/share/info/gdbinit.info.gz", :title=>"Info"},
795
+ {:Info=>"/usr/share/info/stabs.info.gz", :title=>"Info"},
796
+ ]
797
+ ################ Index for cvs ################
798
+ @lang["cvs"] = [
799
+ ## debian: cvsbook-ja
800
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/j/j-cvsbook/")
801
+ {:Info=>"/usr/share/info/j-cvsbook.info*", :title=>"CVS book (Japanese)"},
802
+ ## debian: cvsbook
803
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/c/cvsbook/")
804
+ {:Info=>"/usr/share/info/cvsbook.info*", :title=>"CVS book"},
805
+
806
+ {:Info=>"~/.langhelp/gnujdoc/cvs-1.11/cvs-ja.info*", :title=>"Info (Japanese)"},
807
+ ## debian: cvs
808
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/c/cvs/")
809
+ {:Info=>"/usr/share/info/cvs.info.gz", :title=>"Info"},
810
+ {:Info=>"/usr/share/info/cvsclient.info.gz", :title=>"Info"},
811
+
812
+ ]
813
+ ################ Index for bison ################
814
+ @lang["bison"] = [
815
+ {:Info=>"~/.langhelp/gnujdoc/bison-1.28/bison-ja.info.gz", :title=>"Info (Japanese)"},
816
+ ## debian: bison-doc
817
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/main/b/bison/")
818
+ {:Info=>"/usr/share/info/bison.info.gz", :title=>"Info"},
819
+ ]
820
+
821
+ ################ Index for svn ################
822
+ #
823
+ ### How to get Japanese subversion book.
824
+ #
825
+ # cd ~/.langhelp
826
+ # wget -r -l1 -p -k http://subversion.bluegate.org/doc/index.html
827
+ #
828
+ ### How to get English subversion book.
829
+ #
830
+ # cd ~/.langhelp
831
+ # wget -r -l1 -p -k http://svnbook.red-bean.com/en/1.0/
832
+ #
833
+ @lang["svn"] = [
834
+ {:HTML=>"~/.langhelp/subversion.bluegate.org/doc/pr01.html", :recursive=>:next, :title=>"subversion book (Japanese)"},
835
+ {:HTML=>"~/.langhelp/svnbook.red-bean.com/en/1.0/pr01.html", :recursive=>:next, :title=>"subversion book"},
836
+ ]
837
+ @aliases["svn"] = ["svn-status"]
838
+
839
+
840
+ ################ Index for HTML ################
841
+ #### How to get Japanese Recommendations of the W3
842
+ #
843
+ # cd ~/.langhelp
844
+ # wget -r -l1 -p -k http://www.asahi-net.or.jp/%7Esd5a-ucd/rec-html401j/cover.html http://www.doraneko.org/webauth/xhtml11/20010531/Overview.html http://www.doraneko.org/webauth/xhtmlbasic/20001219/Overview.html http://www.doraneko.org/webauth/css1/19961217/Overview.html
845
+ #
846
+ @lang["html"] = [
847
+ {:HTML=>"~/.langhelp/www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/cover.html", :recursive=>:next, :title=>"HTML 4.01 Specification (Japanese)"},
848
+ {:HTML=>"~/.langhelp/www.doraneko.org/webauth/xhtml11/20010531/Overview.html", :recursive=>:next, :title=>"XHTML 1.1 - Module-based XHTML (Japanese)"},
849
+ {:HTML=>"~/.langhelp/www.doraneko.org/webauth/xhtmlbasic/20001219/Overview.html", :title=>"XHTML Basic (Japanese)"},
850
+ {:HTML=>"~/.langhelp/www.doraneko.org/webauth/css1/19961217/Overview.html", :title=>"Cascading Style Sheets, level 1 (Japanese)"},
851
+
852
+
853
+ ## debian: w3-recs
854
+ ## [EVAL IT] (browse-url "http://ftp.debian.or.jp/debian/pool/non-free/w/w3-recs/")
855
+ {:HTML=>"/usr/share/doc/w3-recs/RECS/html4/cover.html", :recursive=>:next, :title=>"HTML 4.01 Specification"},
856
+ {:HTML=>"/usr/share/doc/w3-recs/RECS/xhtml1-20020801/Cover.html", :recursive=>:next, :title=>"XHTML 1.0 The Extensible HyperText Markup Language (Second Edition)"},
857
+ {:HTML=>"/usr/share/doc/w3-recs/RECS/xhtml11-20010531/xhtml11.html", :recursive=>:next, :title=>"XHTML 1.1 - Module-based XHTML"},
858
+ {:HTML=>"/usr/share/doc/w3-recs/RECS/REC-CSS1-19990111.html", :title=>"Cascading Style Sheets, level 1"},
859
+ {:HTML=>"/usr/share/doc/w3-recs/RECS/css2/cover.html", :recursive=>:next, :title=>"Cascading Style Sheets, Level 2"},
860
+
861
+ ]
862
+ @aliases["html"] = ["yahtml", "css"]
863
+
864
+
865
+ ################ Index for GLOBAL ################
866
+ @lang["global"] = [
867
+ {:Info=>"/usr/share/info/global.info.gz", :title=>"Info"},
868
+ ]
869
+
870
+ ################ Index for id-utils ################
871
+ @lang["id-utils"] = [
872
+ {:Info => "/usr/share/info/id-utils.info.gz", :title=>"ID utilities"},
873
+ ]
874
+
875
+ ################ Index for sgrep ################
876
+ @lang["sgrep"] = [
877
+ {:Manpage=>"sgrep", :section=>1, :regexp=>/^ v\(/, :title=>"manpage"},
878
+ {:Grep=>"/usr/share/doc/sgrep/README.gz", :regexp=>/^\*/, :title=>"readme"},
879
+ ]
880
+
881
+ #### ~/.langhelp/config2 is the private config file. (not mandatory)
882
+ config2 = "#{@LANGHELP_HOME}/config2"
883
+ if File.file? config2
884
+ eval File.read(config2)
885
+ end
886
+
887
+ # Local Variables:
888
+ # ee-anchor-format: "################ %s ################"
889
+ # End: