~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb

  • Committer: Package Import Robot
  • Author(s): Hideki Yamane
  • Date: 2013-05-19 16:14:01 UTC
  • mfrom: (12.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130519161401-hf5oyr8g8a94fsew
Tags: 3.2.2-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=begin
 
2
= rd2html-opt.rb
 
3
sub-OptionParser for rd2html-lib.rb.
 
4
=end
 
5
require "optparse"
 
6
 
 
7
q = ARGV.options
 
8
 
 
9
q.on_tail("rd2html-lib options:")
 
10
 
 
11
 
 
12
#q.on_tail("--use-numbering-anchor",
 
13
#         "use number for anchor name (old style)") do
 
14
#  $Visitor.use_old_anchor = true
 
15
#end
 
16
 
 
17
q.on_tail("--output-rbl",
 
18
          "output external Label file") do
 
19
  $Visitor.output_rbl = true
 
20
end
 
21
 
 
22
q.on_tail("--with-css=FILE",
 
23
          String,
 
24
          "use FILE as CSS of output HTML") do |i|
 
25
  $Visitor.css = i
 
26
end
 
27
 
 
28
q.on_tail("--html-charset=CHARSET",
 
29
          String,
 
30
          "indicate CHARSET as charset(char encoding)") do |i|
 
31
  $Visitor.charset = i
 
32
end
 
33
 
 
34
q.on_tail("--html-lang=LANG",
 
35
          String,
 
36
          "indicate LANG as lang attribute of html") do |i|
 
37
  $Visitor.lang = i
 
38
end
 
39
  
 
40
q.on_tail("--html-title=TITLE",
 
41
          String,
 
42
          "content of TITLE element of HTML") do |i|
 
43
  $Visitor.title = i
 
44
end
 
45
 
 
46
q.on_tail("--html-link-rel=REL",
 
47
          String,
 
48
          "add forward LINK element.(\"<rel>:<href>\")") do |i|
 
49
  if /(\w+):(.+)/ =~ i
 
50
    $Visitor.html_link_rel[$1] = $2
 
51
  else
 
52
    # warning
 
53
  end
 
54
end
 
55
 
 
56
q.on_tail("--html-link-rev=REV",
 
57
          String,
 
58
          "add reverse LINK element.(\"<rev>:<href>\")") do |i|
 
59
  if /(\w+):(.+)/ =~ i
 
60
    $Visitor.html_link_rev[$1] = $2
 
61
  else
 
62
    # warning
 
63
  end
 
64
end
 
65
 
 
66
 
 
67