rabbit 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -0
- data/Rakefile +27 -0
- data/bin/rabbirack +5 -1
- data/bin/rabbit +1 -1
- data/bin/rabbit-command +1 -1
- data/doc/_layouts/en.html +1 -1
- data/doc/_layouts/ja.html +1 -1
- data/doc/_site/en/development.html +1 -1
- data/doc/_site/en/faq.html +1 -1
- data/doc/_site/en/hiki.html +1 -1
- data/doc/_site/en/how-to-make/hiki.html +1 -1
- data/doc/_site/en/how-to-make/index.html +1 -1
- data/doc/_site/en/how-to-make/pdf.html +1 -1
- data/doc/_site/en/how-to-make/rd.html +1 -1
- data/doc/_site/en/how-to-make/theme.html +1 -1
- data/doc/_site/en/index.html +6 -1
- data/doc/_site/en/install/homebrew.html +1 -1
- data/doc/_site/en/install/index.html +1 -1
- data/doc/_site/en/install/macports.html +1 -1
- data/doc/_site/en/install/windows.html +1 -1
- data/doc/_site/en/news.html +161 -92
- data/doc/_site/en/rd.html +1 -1
- data/doc/_site/en/sample/hiki/rabbit.html +1 -1
- data/doc/_site/en/sample/index.html +1 -1
- data/doc/_site/en/sample/rd/rabbit.html +1 -1
- data/doc/_site/en/slides.html +1 -1
- data/doc/_site/en/usage.html +1 -1
- data/doc/_site/en/users.html +2 -2
- data/doc/_site/images/screenshots/en/blue-circle-raw.png +0 -0
- data/doc/_site/images/screenshots/en/blue-circle.png +0 -0
- data/doc/_site/images/screenshots/en/clear-blue-raw.png +0 -0
- data/doc/_site/images/screenshots/en/clear-blue.png +0 -0
- data/doc/_site/images/screenshots/en/cozmixng-raw.png +0 -0
- data/doc/_site/images/screenshots/en/cozmixng.png +0 -0
- data/doc/_site/images/screenshots/en/dark-gradation-raw.png +0 -0
- data/doc/_site/images/screenshots/en/dark-gradation.png +0 -0
- data/doc/_site/images/screenshots/en/day-white-raw.png +0 -0
- data/doc/_site/images/screenshots/en/day-white.png +0 -0
- data/doc/_site/images/screenshots/en/debian-raw.png +0 -0
- data/doc/_site/images/screenshots/en/debian.png +0 -0
- data/doc/_site/images/screenshots/en/green-circle-raw.png +0 -0
- data/doc/_site/images/screenshots/en/green-circle.png +0 -0
- data/doc/_site/images/screenshots/en/night-black-raw.png +0 -0
- data/doc/_site/images/screenshots/en/night-black.png +0 -0
- data/doc/_site/images/screenshots/en/rabbit-raw.png +0 -0
- data/doc/_site/images/screenshots/en/rabbit.png +0 -0
- data/doc/_site/images/screenshots/en/ranguba-raw.png +0 -0
- data/doc/_site/images/screenshots/en/ranguba.png +0 -0
- data/doc/_site/images/screenshots/en/red-frame-raw.png +0 -0
- data/doc/_site/images/screenshots/en/red-frame.png +0 -0
- data/doc/_site/images/screenshots/en/ruby-gnome2-raw.png +0 -0
- data/doc/_site/images/screenshots/en/ruby-gnome2.png +0 -0
- data/doc/_site/images/screenshots/en/rubykaigi2011-raw.png +0 -0
- data/doc/_site/images/screenshots/en/rubykaigi2011.png +0 -0
- data/doc/_site/images/screenshots/ja/blue-circle-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/blue-circle.png +0 -0
- data/doc/_site/images/screenshots/ja/clear-blue-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/clear-blue.png +0 -0
- data/doc/_site/images/screenshots/ja/cozmixng-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/cozmixng.png +0 -0
- data/doc/_site/images/screenshots/ja/dark-gradation-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/dark-gradation.png +0 -0
- data/doc/_site/images/screenshots/ja/day-white-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/day-white.png +0 -0
- data/doc/_site/images/screenshots/ja/debian-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/debian.png +0 -0
- data/doc/_site/images/screenshots/ja/green-circle-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/green-circle.png +0 -0
- data/doc/_site/images/screenshots/ja/night-black-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/night-black.png +0 -0
- data/doc/_site/images/screenshots/ja/rabbit-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/rabbit.png +0 -0
- data/doc/_site/images/screenshots/ja/ranguba-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/ranguba.png +0 -0
- data/doc/_site/images/screenshots/ja/red-frame-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/red-frame.png +0 -0
- data/doc/_site/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/ruby-gnome2.png +0 -0
- data/doc/_site/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/rubykaigi2011.png +0 -0
- data/doc/_site/index.html.en +1 -1
- data/doc/_site/index.html.ja +1 -1
- data/doc/_site/ja/about.html +1 -1
- data/doc/_site/ja/development.html +1 -1
- data/doc/_site/ja/faq.html +1 -1
- data/doc/_site/ja/hiki.html +1 -1
- data/doc/_site/ja/how-to-make/hiki.html +1 -1
- data/doc/_site/ja/how-to-make/index.html +1 -1
- data/doc/_site/ja/how-to-make/pdf.html +1 -1
- data/doc/_site/ja/how-to-make/rd.html +1 -1
- data/doc/_site/ja/how-to-make/theme.html +1 -1
- data/doc/_site/ja/index.html +6 -1
- data/doc/_site/ja/install/homebrew.html +1 -1
- data/doc/_site/ja/install/index.html +1 -1
- data/doc/_site/ja/install/macports.html +1 -1
- data/doc/_site/ja/install/windows.html +1 -1
- data/doc/_site/ja/news.html +161 -92
- data/doc/_site/ja/rd.html +1 -1
- data/doc/_site/ja/sample/hiki/rabbit.html +1 -1
- data/doc/_site/ja/sample/index.html +1 -1
- data/doc/_site/ja/sample/rd/rabbit.html +1 -1
- data/doc/_site/ja/slides.html +1 -1
- data/doc/_site/ja/usage.html +1 -1
- data/doc/_site/ja/users.html +1 -1
- data/doc/en/index.rd +3 -0
- data/doc/en/news.rd +73 -0
- data/doc/en/users.rd +1 -1
- data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
- data/doc/images/screenshots/en/blue-circle.png +0 -0
- data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/en/clear-blue.png +0 -0
- data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/en/cozmixng.png +0 -0
- data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
- data/doc/images/screenshots/en/dark-gradation.png +0 -0
- data/doc/images/screenshots/en/day-white-raw.png +0 -0
- data/doc/images/screenshots/en/day-white.png +0 -0
- data/doc/images/screenshots/en/debian-raw.png +0 -0
- data/doc/images/screenshots/en/debian.png +0 -0
- data/doc/images/screenshots/en/green-circle-raw.png +0 -0
- data/doc/images/screenshots/en/green-circle.png +0 -0
- data/doc/images/screenshots/en/night-black-raw.png +0 -0
- data/doc/images/screenshots/en/night-black.png +0 -0
- data/doc/images/screenshots/en/rabbit-raw.png +0 -0
- data/doc/images/screenshots/en/rabbit.png +0 -0
- data/doc/images/screenshots/en/ranguba-raw.png +0 -0
- data/doc/images/screenshots/en/ranguba.png +0 -0
- data/doc/images/screenshots/en/red-frame-raw.png +0 -0
- data/doc/images/screenshots/en/red-frame.png +0 -0
- data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
- data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
- data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
- data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
- data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
- data/doc/images/screenshots/ja/blue-circle.png +0 -0
- data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/ja/clear-blue.png +0 -0
- data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/ja/cozmixng.png +0 -0
- data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
- data/doc/images/screenshots/ja/dark-gradation.png +0 -0
- data/doc/images/screenshots/ja/day-white-raw.png +0 -0
- data/doc/images/screenshots/ja/day-white.png +0 -0
- data/doc/images/screenshots/ja/debian-raw.png +0 -0
- data/doc/images/screenshots/ja/debian.png +0 -0
- data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
- data/doc/images/screenshots/ja/green-circle.png +0 -0
- data/doc/images/screenshots/ja/night-black-raw.png +0 -0
- data/doc/images/screenshots/ja/night-black.png +0 -0
- data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
- data/doc/images/screenshots/ja/rabbit.png +0 -0
- data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
- data/doc/images/screenshots/ja/ranguba.png +0 -0
- data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
- data/doc/images/screenshots/ja/red-frame.png +0 -0
- data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
- data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
- data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
- data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
- data/doc/index.html.en +1 -1
- data/doc/index.html.ja +1 -1
- data/doc/ja/index.rd +3 -0
- data/doc/ja/news.rd +73 -0
- data/lib/rabbit/element/base.rb +6 -3
- data/lib/rabbit/element/text-container-element.rb +1 -1
- data/lib/rabbit/element/text-element.rb +8 -0
- data/lib/rabbit/element/text-renderer.rb +1 -1
- data/lib/rabbit/front.rb +8 -0
- data/lib/rabbit/gettext.rb +3 -6
- data/lib/rabbit/image/pdf.rb +1 -1
- data/lib/rabbit/info-window.rb +64 -2
- data/lib/rabbit/logger/base.rb +3 -2
- data/lib/rabbit/middleware/views/index.haml +2 -2
- data/lib/rabbit/parser.rb +26 -0
- data/lib/rabbit/parser/ext/emacs.rb +7 -2
- data/lib/rabbit/parser/ext/enscript.rb +7 -2
- data/lib/rabbit/parser/markdown.rb +32 -0
- data/lib/rabbit/parser/markdown/converter.rb +257 -0
- data/lib/rabbit/parser/pdf.rb +1 -0
- data/lib/rabbit/parser/rd.rb +1 -0
- data/lib/rabbit/parser/rd/ext/block-verbatim.rb +1 -1
- data/lib/rabbit/parser/rd/rd2rabbit-lib.rb +6 -16
- data/lib/rabbit/parser/wiki.rb +1 -0
- data/lib/rabbit/rabbit.rb +1 -1
- data/lib/rabbit/renderer/engine/cairo.rb +20 -5
- data/lib/rabbit/source/base.rb +12 -2
- data/lib/rabbit/source/file.rb +5 -1
- data/lib/rabbit/source/uri.rb +4 -0
- data/lib/rabbit/theme/default-slide/default-slide.rb +2 -0
- data/lib/rabbit/theme/nari/nari.rb +10 -0
- data/lib/rabbit/theme/slide-footer-info/slide-footer-info.rb +16 -12
- data/lib/rabbit/theme/slide-show/slide-show.rb +1 -1
- data/lib/rabbit/theme/syntax-highlighting/syntax-highlighting.rb +2 -0
- data/lib/rabbit/theme/tag/tag.rb +29 -8
- data/lib/rabbit/twitter.rb +17 -9
- data/po/rabbit.pot +124 -116
- data/sample/note.rab +12 -0
- data/sample/pre.rd +14 -3
- data/sample/rabbit-en.hiki +5 -4
- data/sample/rabbit-en.md +379 -0
- data/sample/rabbit-en.rd +5 -3
- data/sample/rabbit.hiki +1 -1
- data/sample/rabbit.md +374 -0
- data/sample/rabbit.rd +3 -1
- data/sample/test.hiki +31 -0
- data/sample/test.rab +30 -0
- metadata +180 -222
data/lib/rabbit/parser/pdf.rb
CHANGED
data/lib/rabbit/parser/rd.rb
CHANGED
|
@@ -136,7 +136,7 @@ module Rabbit
|
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
def ext_block_verb_block_quote(label, source, content, visitor)
|
|
139
|
-
return nil unless /^
|
|
139
|
+
return nil unless /^block[_-]?quote$/i =~ label
|
|
140
140
|
src, prop = parse_source(source)
|
|
141
141
|
tree = ::RD::RDTree.new("=begin\n#{src}\n=end\n")
|
|
142
142
|
elems = tree.root.children.collect do |child|
|
|
@@ -71,7 +71,7 @@ module Rabbit
|
|
|
71
71
|
target = content
|
|
72
72
|
@canvas << content
|
|
73
73
|
mode = :display
|
|
74
|
-
when SlidePropertySetter
|
|
74
|
+
when SlidePropertySetter, NoteSetter
|
|
75
75
|
target = content
|
|
76
76
|
mode = :property
|
|
77
77
|
else
|
|
@@ -102,7 +102,11 @@ module Rabbit
|
|
|
102
102
|
@slides << @slide
|
|
103
103
|
@slide
|
|
104
104
|
when 2
|
|
105
|
-
|
|
105
|
+
if /\Anote\z/i =~ title.first.text
|
|
106
|
+
NoteSetter.new(@slides.last)
|
|
107
|
+
else
|
|
108
|
+
SlidePropertySetter.new(@slides.last)
|
|
109
|
+
end
|
|
106
110
|
else
|
|
107
111
|
nil
|
|
108
112
|
end
|
|
@@ -410,20 +414,6 @@ module Rabbit
|
|
|
410
414
|
slide << ftb
|
|
411
415
|
end
|
|
412
416
|
end
|
|
413
|
-
|
|
414
|
-
class SlidePropertySetter
|
|
415
|
-
def initialize(slide)
|
|
416
|
-
@slide = slide
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
def apply(element)
|
|
420
|
-
return unless element.is_a?(Element::DescriptionList)
|
|
421
|
-
element.each do |item|
|
|
422
|
-
name = Parser.normalize_property_name(item.term.text)
|
|
423
|
-
@slide[name] = item.content.text.strip
|
|
424
|
-
end
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
417
|
end
|
|
428
418
|
end
|
|
429
419
|
end
|
data/lib/rabbit/parser/wiki.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Rabbit
|
|
|
17
17
|
unshift_loader(self)
|
|
18
18
|
class << self
|
|
19
19
|
def match?(source)
|
|
20
|
+
return true if /\A(?:hiki|wiki)\z/i =~ source.extension.to_s
|
|
20
21
|
head = source.read[0, 500]
|
|
21
22
|
head.force_encoding("ASCII-8BIT") if head.respond_to?(:force_encoding)
|
|
22
23
|
/^!/.match(head)
|
data/lib/rabbit/rabbit.rb
CHANGED
|
@@ -274,8 +274,7 @@ module Rabbit
|
|
|
274
274
|
|
|
275
275
|
def rsvg_available?
|
|
276
276
|
if @@rsvg_available.nil?
|
|
277
|
-
|
|
278
|
-
@@rsvg_available = instance_methods.include?("render_rsvg_handle")
|
|
277
|
+
@@rsvg_available = RSVG.cairo_available?
|
|
279
278
|
end
|
|
280
279
|
@@rsvg_available
|
|
281
280
|
end
|
|
@@ -290,13 +289,14 @@ module Rabbit
|
|
|
290
289
|
@context.scale(width / dim.width, height / dim.height)
|
|
291
290
|
@context.render_rsvg_handle(handle)
|
|
292
291
|
end
|
|
292
|
+
|
|
293
|
+
_draw_reflected_rsvg_handle(handle, x, y, width, height,
|
|
294
|
+
params[:reflect])
|
|
293
295
|
end
|
|
294
296
|
|
|
295
297
|
def poppler_available?
|
|
296
298
|
if @@poppler_available.nil?
|
|
297
|
-
|
|
298
|
-
available = instance_methods.include?("render_poppler_page")
|
|
299
|
-
@@poppler_available = available
|
|
299
|
+
@@poppler_available = Poppler.cairo_available?
|
|
300
300
|
end
|
|
301
301
|
@@poppler_available
|
|
302
302
|
end
|
|
@@ -457,6 +457,21 @@ module Rabbit
|
|
|
457
457
|
end
|
|
458
458
|
end
|
|
459
459
|
|
|
460
|
+
def _draw_reflected_rsvg_handle(handle, x, y, width, height, params)
|
|
461
|
+
return unless params
|
|
462
|
+
|
|
463
|
+
dim = handle.dimensions
|
|
464
|
+
surface = ::Cairo::ImageSurface.new(:argb32, width, height)
|
|
465
|
+
context = ::Cairo::Context.new(surface)
|
|
466
|
+
context.scale(width / dim.width, height / dim.height)
|
|
467
|
+
context.render_rsvg_handle(handle)
|
|
468
|
+
png = Tempfile.new("rabbit-cairo-svg-renderer")
|
|
469
|
+
context.target.write_to_png(png.path)
|
|
470
|
+
context.target.finish
|
|
471
|
+
pixbuf = Gdk::Pixbuf.new(png.path)
|
|
472
|
+
_draw_reflected_pixbuf(pixbuf, x, y, params)
|
|
473
|
+
end
|
|
474
|
+
|
|
460
475
|
def set_line_options(params)
|
|
461
476
|
set_line_width(get_line_width(params))
|
|
462
477
|
[:line_cap, :line_join].each do |key|
|
data/lib/rabbit/source/base.rb
CHANGED
|
@@ -93,12 +93,16 @@ module Rabbit
|
|
|
93
93
|
set_base(new_value)
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
|
-
|
|
96
|
+
|
|
97
|
+
def extension
|
|
98
|
+
nil
|
|
99
|
+
end
|
|
100
|
+
|
|
97
101
|
private
|
|
98
102
|
def init_base
|
|
99
103
|
set_base(".")
|
|
100
104
|
end
|
|
101
|
-
|
|
105
|
+
|
|
102
106
|
def set_base(new_value)
|
|
103
107
|
if ::File::ALT_SEPARATOR
|
|
104
108
|
new_value = new_value.gsub(::File::ALT_SEPARATOR, ::File::SEPARATOR)
|
|
@@ -140,6 +144,12 @@ module Rabbit
|
|
|
140
144
|
"UTF-8"
|
|
141
145
|
end
|
|
142
146
|
end
|
|
147
|
+
|
|
148
|
+
def extract_extension(path)
|
|
149
|
+
components = ::File.basename(path).split(/\./)
|
|
150
|
+
return nil if components.size < 2
|
|
151
|
+
components.last
|
|
152
|
+
end
|
|
143
153
|
end
|
|
144
154
|
|
|
145
155
|
module LimitAccessInterval
|
data/lib/rabbit/source/file.rb
CHANGED
data/lib/rabbit/source/uri.rb
CHANGED
|
@@ -47,6 +47,8 @@ match(Slide, HeadLine) do |headlines|
|
|
|
47
47
|
headline.font("color", color) if color
|
|
48
48
|
shadow_color = slide["headline-shadow-color"]
|
|
49
49
|
headline.font("shadow-color" => shadow_color) if shadow_color
|
|
50
|
+
align = slide["headline-align"]
|
|
51
|
+
headline.align = align if align
|
|
50
52
|
end
|
|
51
53
|
end
|
|
52
54
|
|
|
@@ -186,6 +186,16 @@ match(Slide) do |slides|
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
+
# enable headline-align
|
|
190
|
+
match(Slide) do |slides|
|
|
191
|
+
slides.each do |slide|
|
|
192
|
+
headline_align = slide["headline-align"]
|
|
193
|
+
next if headline_align.nil?
|
|
194
|
+
|
|
195
|
+
slide.headline.horizontal_centering = false
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
189
199
|
# background-image-credit
|
|
190
200
|
#
|
|
191
201
|
# Usage:
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
name = "slide-footer-info"
|
|
2
2
|
|
|
3
|
-
@slide_footer_info_line_color ||= "#666"
|
|
4
3
|
@slide_footer_info_line_width ||= screen_y(0.1)
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
@slide_footer_info_line_color ||= nil
|
|
5
|
+
if @slide_footer_info_line_color.nil?
|
|
6
|
+
@slide_footer_info_line_params ||= {
|
|
7
|
+
:pattern => {
|
|
8
|
+
:base => [0, 0, canvas.width, 0],
|
|
9
|
+
:type => :linear,
|
|
10
|
+
:color_stops => [
|
|
11
|
+
[0.0, 1, 1, 1],
|
|
12
|
+
[0.3, 0, 0, 0],
|
|
13
|
+
[0.7, 0, 0, 0],
|
|
14
|
+
[1.0, 1, 1, 1],
|
|
15
|
+
],
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
else
|
|
19
|
+
@slide_footer_info_line_color = "#666"
|
|
20
|
+
end
|
|
17
21
|
@slide_footer_info_text_size ||= screen_size(1.5 * Pango::SCALE)
|
|
18
22
|
@slide_footer_info_x_margin ||= screen_x(1)
|
|
19
23
|
@slide_footer_info_text_color ||= "#666"
|
|
@@ -67,6 +67,7 @@ theme_exit if @syntax_highlighting_uninstall
|
|
|
67
67
|
},
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
@syntax_highlighting_foreground ||= "#000000"
|
|
70
71
|
@syntax_highlighting_frame_color ||= "#000000"
|
|
71
72
|
@syntax_highlighting_frame_width ||= 2
|
|
72
73
|
@syntax_highlighting_fill_color ||= "#f8f8f8"
|
|
@@ -107,6 +108,7 @@ match("**", SyntaxHighlightingBlock) do |blocks|
|
|
|
107
108
|
blocks.keep_in_size if @syntax_highlighting_keep_in_size
|
|
108
109
|
|
|
109
110
|
draw_frame(blocks, params)
|
|
111
|
+
blocks.prop_set("foreground", @syntax_highlighting_foreground)
|
|
110
112
|
end
|
|
111
113
|
|
|
112
114
|
match("**", SyntaxHighlightingBlock, "**", CustomTag) do |tags|
|
data/lib/rabbit/theme/tag/tag.rb
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
@tag_uninstall ||= false
|
|
4
|
+
@tag_handlers ||= {}
|
|
4
5
|
|
|
5
6
|
theme_exit if @tag_uninstall
|
|
6
7
|
|
|
7
8
|
match("**", CustomTag) do |tags|
|
|
8
|
-
|
|
9
|
+
find_outer_block = lambda do |tag|
|
|
9
10
|
element = tag
|
|
10
11
|
while element.inline_element?
|
|
11
12
|
element = element.parent
|
|
@@ -13,7 +14,7 @@ match("**", CustomTag) do |tags|
|
|
|
13
14
|
element
|
|
14
15
|
end
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
find_target = lambda do |tag|
|
|
17
18
|
if tag.elements.empty?
|
|
18
19
|
tag.parent
|
|
19
20
|
else
|
|
@@ -21,19 +22,39 @@ match("**", CustomTag) do |tags|
|
|
|
21
22
|
end
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
find_handler = lambda do |tag|
|
|
26
|
+
handler = @tag_handlers[tag.name]
|
|
27
|
+
return handler if handler
|
|
28
|
+
@tag_handlers.each do |key, value|
|
|
29
|
+
return value if key === tag.name
|
|
30
|
+
end
|
|
31
|
+
nil
|
|
32
|
+
end
|
|
33
|
+
|
|
24
34
|
tags.each do |tag|
|
|
25
35
|
case tag.name
|
|
26
36
|
when "center"
|
|
27
|
-
|
|
37
|
+
find_outer_block.call(tag).horizontal_centering = true
|
|
28
38
|
when "right"
|
|
29
|
-
|
|
39
|
+
find_outer_block.call(tag).align = "right"
|
|
40
|
+
when "small"
|
|
41
|
+
find_target.call(tag).prop_set("size", @small_font_size)
|
|
42
|
+
when "x-small"
|
|
43
|
+
find_target.call(tag).prop_set("size", @x_small_font_size)
|
|
44
|
+
when "large"
|
|
45
|
+
find_target.call(tag).prop_set("size", @large_font_size)
|
|
30
46
|
when "x-large"
|
|
31
|
-
|
|
47
|
+
find_target.call(tag).prop_set("size", @x_large_font_size)
|
|
32
48
|
when "margin-top"
|
|
33
|
-
|
|
49
|
+
find_outer_block.call(tag).margin_top += @space
|
|
34
50
|
when "margin-bottom"
|
|
35
|
-
|
|
51
|
+
find_outer_block.call(tag).margin_bottom += @space
|
|
52
|
+
else
|
|
53
|
+
handler = find_handler.call(tag)
|
|
54
|
+
if handler
|
|
55
|
+
handler.call(:target => find_target.call(tag),
|
|
56
|
+
:outer_block => find_outer_block.call(tag))
|
|
57
|
+
end
|
|
36
58
|
end
|
|
37
59
|
end
|
|
38
60
|
end
|
|
39
|
-
|
data/lib/rabbit/twitter.rb
CHANGED
|
@@ -50,6 +50,7 @@ module Rabbit
|
|
|
50
50
|
setup if @oauth_parameters.nil?
|
|
51
51
|
return if @oauth_parameters.nil?
|
|
52
52
|
require 'socket'
|
|
53
|
+
require 'openssl'
|
|
53
54
|
begin
|
|
54
55
|
require 'twitter/json_stream'
|
|
55
56
|
rescue LoadError
|
|
@@ -64,6 +65,7 @@ module Rabbit
|
|
|
64
65
|
:host => "stream.twitter.com",
|
|
65
66
|
:path => "/1/statuses/filter.json",
|
|
66
67
|
:method => "POST",
|
|
68
|
+
:ssl => true,
|
|
67
69
|
:filters => filters,
|
|
68
70
|
}
|
|
69
71
|
@stream = ::Twitter::JSONStream.new(:signature, stream_options)
|
|
@@ -121,18 +123,22 @@ module Rabbit
|
|
|
121
123
|
@logger = logger
|
|
122
124
|
@options = options
|
|
123
125
|
@handler = handler
|
|
124
|
-
@
|
|
126
|
+
@tcp_socket = nil
|
|
127
|
+
@ssl_socket = nil
|
|
125
128
|
@channel = nil
|
|
126
129
|
@source_ids = []
|
|
127
130
|
end
|
|
128
131
|
|
|
129
132
|
def connect
|
|
130
133
|
close
|
|
131
|
-
@
|
|
134
|
+
@tcp_socket = TCPSocket.new(@options[:host], "https")
|
|
135
|
+
@ssl_socket = OpenSSL::SSL::SSLSocket.new(@tcp_socket)
|
|
136
|
+
@ssl_socket.sync_close = true
|
|
137
|
+
@ssl_socket.connect
|
|
132
138
|
if GLib.const_defined?(:IOChannelWin32Socket)
|
|
133
|
-
@channel = GLib::IOChannelWin32Socket.new(@
|
|
139
|
+
@channel = GLib::IOChannelWin32Socket.new(@tcp_socket.fileno)
|
|
134
140
|
else
|
|
135
|
-
@channel = GLib::IOChannel.new(@
|
|
141
|
+
@channel = GLib::IOChannel.new(@tcp_socket.fileno)
|
|
136
142
|
end
|
|
137
143
|
begin
|
|
138
144
|
@channel.flags = GLib::IOChannel::FLAG_NONBLOCK
|
|
@@ -143,7 +149,7 @@ module Rabbit
|
|
|
143
149
|
end
|
|
144
150
|
reader_id = @channel.add_watch(GLib::IOChannel::IN) do |io, condition|
|
|
145
151
|
@logger.debug("[twitter][read][start]")
|
|
146
|
-
data =
|
|
152
|
+
data = @ssl_socket.read(8192)
|
|
147
153
|
@logger.debug("[twitter][read][done] #{data.bytesize}")
|
|
148
154
|
if data.empty?
|
|
149
155
|
@source_ids.reject! {|id| id == reader_id}
|
|
@@ -170,13 +176,13 @@ module Rabbit
|
|
|
170
176
|
writer_id = @channel.add_watch(GLib::IOChannel::OUT) do |io, condition|
|
|
171
177
|
if rest.zero?
|
|
172
178
|
@logger.debug("[twitter][flush][start]")
|
|
173
|
-
@
|
|
179
|
+
@ssl_socket.flush
|
|
174
180
|
@logger.debug("[twitter][flush][done]")
|
|
175
181
|
@source_ids.reject! {|id| id == writer_id}
|
|
176
182
|
false
|
|
177
183
|
else
|
|
178
184
|
@logger.debug("[twitter][write][start]")
|
|
179
|
-
written_size = @
|
|
185
|
+
written_size = @ssl_socket.write(data)
|
|
180
186
|
if written_size.is_a?(Numeric)
|
|
181
187
|
@logger.debug("[twitter][write][done] #{written_size}")
|
|
182
188
|
rest -= written_size
|
|
@@ -193,13 +199,15 @@ module Rabbit
|
|
|
193
199
|
end
|
|
194
200
|
|
|
195
201
|
def close
|
|
196
|
-
return if @
|
|
202
|
+
return if @ssl_socket.nil?
|
|
197
203
|
@source_ids.reject! do |id|
|
|
198
204
|
GLib::Source.remove(id)
|
|
199
205
|
true
|
|
200
206
|
end
|
|
201
207
|
@channel = nil
|
|
202
|
-
@
|
|
208
|
+
@ssl_socket.close
|
|
209
|
+
@tcp_socket = nil
|
|
210
|
+
@ssl_socket = nil
|
|
203
211
|
end
|
|
204
212
|
|
|
205
213
|
def reconnect(options={})
|
data/po/rabbit.pot
CHANGED
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2011-07-
|
|
11
|
+
"POT-Creation-Date: 2011-07-15 16:08+0900\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -83,7 +83,7 @@ msgstr ""
|
|
|
83
83
|
msgid "PDF"
|
|
84
84
|
msgstr ""
|
|
85
85
|
|
|
86
|
-
#: ../../lib/rabbit/html/generator.rb:403 ../../bin/rabbit:
|
|
86
|
+
#: ../../lib/rabbit/html/generator.rb:403 ../../bin/rabbit:99
|
|
87
87
|
msgid "Source"
|
|
88
88
|
msgstr ""
|
|
89
89
|
|
|
@@ -123,7 +123,7 @@ msgstr ""
|
|
|
123
123
|
msgid "Save as image"
|
|
124
124
|
msgstr ""
|
|
125
125
|
|
|
126
|
-
#: ../../lib/rabbit/action/basic.rb:83 ../../bin/rabbit:
|
|
126
|
+
#: ../../lib/rabbit/action/basic.rb:83 ../../bin/rabbit:236
|
|
127
127
|
msgid "Print"
|
|
128
128
|
msgstr ""
|
|
129
129
|
|
|
@@ -316,7 +316,6 @@ msgstr ""
|
|
|
316
316
|
#: ../../lib/rabbit/theme/default/property.rb:1
|
|
317
317
|
#: ../../lib/rabbit/theme/rabbit/property.rb:1
|
|
318
318
|
#: ../../lib/rabbit/theme/blue-circle/property.rb:1
|
|
319
|
-
#: ../../lib/rabbit/theme/pdf-tortoise-and-hare/property.rb:1
|
|
320
319
|
#: ../../lib/rabbit/theme/lightning-rabbit/property.rb:1
|
|
321
320
|
#: ../../lib/rabbit/theme/lightning-talk/property.rb:1
|
|
322
321
|
#: ../../lib/rabbit/theme/debian/property.rb:1
|
|
@@ -327,7 +326,7 @@ msgstr ""
|
|
|
327
326
|
#: ../../lib/rabbit/theme/green-circle/property.rb:1
|
|
328
327
|
#: ../../lib/rabbit/theme/ruby-gnome2/property.rb:1
|
|
329
328
|
#: ../../lib/rabbit/theme/lightning-monochrome/property.rb:1
|
|
330
|
-
#: ../../lib/rabbit/theme/pdf/property.rb:1 ../../bin/rabbit:
|
|
329
|
+
#: ../../lib/rabbit/theme/pdf/property.rb:1 ../../bin/rabbit:72
|
|
331
330
|
msgid "Theme"
|
|
332
331
|
msgstr ""
|
|
333
332
|
|
|
@@ -361,10 +360,10 @@ msgstr ""
|
|
|
361
360
|
msgid "Specify locale dir as [DIR]."
|
|
362
361
|
msgstr ""
|
|
363
362
|
|
|
364
|
-
#: ../../lib/rabbit/console.rb:69 ../../bin/rabbit:
|
|
365
|
-
#: ../../bin/rabbit:
|
|
366
|
-
#: ../../bin/rabbit:
|
|
367
|
-
#: ../../bin/rabbit:
|
|
363
|
+
#: ../../lib/rabbit/console.rb:69 ../../bin/rabbit:130 ../../bin/rabbit:136
|
|
364
|
+
#: ../../bin/rabbit:296 ../../bin/rabbit:303 ../../bin/rabbit:310
|
|
365
|
+
#: ../../bin/rabbit:317 ../../bin/rabbit:342 ../../bin/rabbit:349
|
|
366
|
+
#: ../../bin/rabbit:356 ../../bin/rabbit:363 ../../bin/rabbit:494
|
|
368
367
|
msgid "(auto)"
|
|
369
368
|
msgstr ""
|
|
370
369
|
|
|
@@ -373,7 +372,7 @@ msgid "Specify logger type as [TYPE]."
|
|
|
373
372
|
msgstr ""
|
|
374
373
|
|
|
375
374
|
#: ../../lib/rabbit/console.rb:84 ../../lib/rabbit/console.rb:101
|
|
376
|
-
#: ../../bin/rabbit:
|
|
375
|
+
#: ../../bin/rabbit:114
|
|
377
376
|
msgid "Select from [%s]."
|
|
378
377
|
msgstr ""
|
|
379
378
|
|
|
@@ -479,6 +478,7 @@ msgstr ""
|
|
|
479
478
|
#: ../../lib/rabbit/theme/color-circle-method-list/property.rb:1
|
|
480
479
|
#: ../../lib/rabbit/theme/ruby-gnome2-slide/property.rb:1
|
|
481
480
|
#: ../../lib/rabbit/theme/slide-background-image/property.rb:1
|
|
481
|
+
#: ../../lib/rabbit/theme/default-comment/property.rb:1
|
|
482
482
|
#: ../../lib/rabbit/theme/slide-number/property.rb:1
|
|
483
483
|
#: ../../lib/rabbit/theme/icon/property.rb:1
|
|
484
484
|
#: ../../lib/rabbit/theme/color-circle-block-quote/property.rb:1
|
|
@@ -778,7 +778,7 @@ msgstr ""
|
|
|
778
778
|
#: ../../lib/rabbit/theme/stream-comment/property.rb:1
|
|
779
779
|
#: ../../lib/rabbit/theme/twitter-comment/property.rb:1
|
|
780
780
|
#: ../../lib/rabbit/theme/clutter-comment/property.rb:1
|
|
781
|
-
#: ../../lib/rabbit/theme/footer-comment/property.rb:1 ../../bin/rabbit:
|
|
781
|
+
#: ../../lib/rabbit/theme/footer-comment/property.rb:1 ../../bin/rabbit:483
|
|
782
782
|
msgid "Comment"
|
|
783
783
|
msgstr ""
|
|
784
784
|
|
|
@@ -984,14 +984,6 @@ msgid ""
|
|
|
984
984
|
"Project; i.e. displays their text colored blue."
|
|
985
985
|
msgstr ""
|
|
986
986
|
|
|
987
|
-
#: ../../lib/rabbit/theme/pdf-tortoise-and-hare/property.rb:2
|
|
988
|
-
msgid "PDF with The Tortoise and The Hare"
|
|
989
|
-
msgstr ""
|
|
990
|
-
|
|
991
|
-
#: ../../lib/rabbit/theme/pdf-tortoise-and-hare/property.rb:3
|
|
992
|
-
msgid "Theme for PDF with The Tortoise and The Hare"
|
|
993
|
-
msgstr ""
|
|
994
|
-
|
|
995
987
|
#: ../../lib/rabbit/theme/cozmixng-powered-by/property.rb:2
|
|
996
988
|
msgid "COZMIXNGPoweredBy"
|
|
997
989
|
msgstr ""
|
|
@@ -1290,6 +1282,18 @@ msgstr ""
|
|
|
1290
1282
|
msgid "Etc"
|
|
1291
1283
|
msgstr ""
|
|
1292
1284
|
|
|
1285
|
+
#: ../../lib/rabbit/theme/default-comment/property.rb:2
|
|
1286
|
+
msgid "DefaultComment"
|
|
1287
|
+
msgstr ""
|
|
1288
|
+
|
|
1289
|
+
#: ../../lib/rabbit/theme/default-comment/property.rb:3
|
|
1290
|
+
msgid "Toolkit to set up default comment theme."
|
|
1291
|
+
msgstr ""
|
|
1292
|
+
|
|
1293
|
+
#: ../../lib/rabbit/theme/default-comment/property.rb:4
|
|
1294
|
+
msgid "Sets up default comment theme."
|
|
1295
|
+
msgstr ""
|
|
1296
|
+
|
|
1293
1297
|
#: ../../lib/rabbit/theme/debian/property.rb:2
|
|
1294
1298
|
msgid "Debian Theme"
|
|
1295
1299
|
msgstr ""
|
|
@@ -1900,10 +1904,6 @@ msgstr ""
|
|
|
1900
1904
|
msgid "[FILENAME]"
|
|
1901
1905
|
msgstr ""
|
|
1902
1906
|
|
|
1903
|
-
#: ../../lib/rabbit/source/rwiki.rb:12
|
|
1904
|
-
msgid "[RWIKI_SOAP_IF_URI] and [PAGE_NAME]"
|
|
1905
|
-
msgstr ""
|
|
1906
|
-
|
|
1907
1907
|
#: ../../lib/rabbit/source/uri.rb:25
|
|
1908
1908
|
msgid "URI"
|
|
1909
1909
|
msgstr ""
|
|
@@ -1916,11 +1916,11 @@ msgstr ""
|
|
|
1916
1916
|
msgid "[USER] and [TITLE]"
|
|
1917
1917
|
msgstr ""
|
|
1918
1918
|
|
|
1919
|
-
#: ../../lib/rabbit/canvas.rb:
|
|
1919
|
+
#: ../../lib/rabbit/canvas.rb:610
|
|
1920
1920
|
msgid "Unknown action: %s"
|
|
1921
1921
|
msgstr ""
|
|
1922
1922
|
|
|
1923
|
-
#: ../../lib/rabbit/canvas.rb:
|
|
1923
|
+
#: ../../lib/rabbit/canvas.rb:682
|
|
1924
1924
|
msgid "Processing..."
|
|
1925
1925
|
msgstr ""
|
|
1926
1926
|
|
|
@@ -1976,374 +1976,382 @@ msgstr ""
|
|
|
1976
1976
|
msgid "Line width:"
|
|
1977
1977
|
msgstr ""
|
|
1978
1978
|
|
|
1979
|
-
#: ../../bin/rabbit:
|
|
1979
|
+
#: ../../bin/rabbit:75 ../../bin/rabbit-theme-manager:27
|
|
1980
1980
|
msgid "Add [PATH] to load path."
|
|
1981
1981
|
msgstr ""
|
|
1982
1982
|
|
|
1983
|
-
#: ../../bin/rabbit:
|
|
1983
|
+
#: ../../bin/rabbit:80
|
|
1984
1984
|
msgid "Use [THEME] as theme."
|
|
1985
1985
|
msgstr ""
|
|
1986
1986
|
|
|
1987
|
-
#: ../../bin/rabbit:
|
|
1987
|
+
#: ../../bin/rabbit:87
|
|
1988
|
+
msgid "Use [THEME] for comment."
|
|
1989
|
+
msgstr ""
|
|
1990
|
+
|
|
1991
|
+
#: ../../bin/rabbit:93
|
|
1992
|
+
msgid "Use [TIME] as allotted time."
|
|
1993
|
+
msgstr ""
|
|
1994
|
+
|
|
1995
|
+
#: ../../bin/rabbit:106
|
|
1988
1996
|
msgid ""
|
|
1989
1997
|
"When select %s\n"
|
|
1990
1998
|
"specify %s\n"
|
|
1991
1999
|
"as [SOURCE_INFOS]."
|
|
1992
2000
|
msgstr ""
|
|
1993
2001
|
|
|
1994
|
-
#: ../../bin/rabbit:
|
|
2002
|
+
#: ../../bin/rabbit:113
|
|
1995
2003
|
msgid "Specify source type as [TYPE]."
|
|
1996
2004
|
msgstr ""
|
|
1997
2005
|
|
|
1998
|
-
#: ../../bin/rabbit:
|
|
2006
|
+
#: ../../bin/rabbit:115
|
|
1999
2007
|
msgid "Note: case insensitive."
|
|
2000
2008
|
msgstr ""
|
|
2001
2009
|
|
|
2002
|
-
#: ../../bin/rabbit:
|
|
2010
|
+
#: ../../bin/rabbit:129
|
|
2003
2011
|
msgid "Specify source encoding as [ENCODING]."
|
|
2004
2012
|
msgstr ""
|
|
2005
2013
|
|
|
2006
|
-
#: ../../bin/rabbit:
|
|
2014
|
+
#: ../../bin/rabbit:135
|
|
2007
2015
|
msgid "Specify base URI or path of source as [BASE]."
|
|
2008
2016
|
msgstr ""
|
|
2009
2017
|
|
|
2010
|
-
#: ../../bin/rabbit:
|
|
2018
|
+
#: ../../bin/rabbit:141
|
|
2011
2019
|
msgid "Initial state"
|
|
2012
2020
|
msgstr ""
|
|
2013
2021
|
|
|
2014
|
-
#: ../../bin/rabbit:
|
|
2022
|
+
#: ../../bin/rabbit:144
|
|
2015
2023
|
msgid "Toggle full screen mode."
|
|
2016
2024
|
msgstr ""
|
|
2017
2025
|
|
|
2018
|
-
#: ../../bin/rabbit:
|
|
2026
|
+
#: ../../bin/rabbit:150
|
|
2019
2027
|
msgid "Toggle index mode."
|
|
2020
2028
|
msgstr ""
|
|
2021
2029
|
|
|
2022
|
-
#: ../../bin/rabbit:
|
|
2030
|
+
#: ../../bin/rabbit:156
|
|
2023
2031
|
msgid "Size"
|
|
2024
2032
|
msgstr ""
|
|
2025
2033
|
|
|
2026
|
-
#: ../../bin/rabbit:
|
|
2034
|
+
#: ../../bin/rabbit:159
|
|
2027
2035
|
msgid "Set window geometry [GEOMETRY]."
|
|
2028
2036
|
msgstr ""
|
|
2029
2037
|
|
|
2030
|
-
#: ../../bin/rabbit:
|
|
2038
|
+
#: ../../bin/rabbit:160
|
|
2031
2039
|
msgid "Format: WIDTHxHEIGHT+X+Y"
|
|
2032
2040
|
msgstr ""
|
|
2033
2041
|
|
|
2034
|
-
#: ../../bin/rabbit:
|
|
2042
|
+
#: ../../bin/rabbit:167 ../../bin/rabbit-theme-manager:43
|
|
2035
2043
|
msgid "Set window width to [WIDTH]."
|
|
2036
2044
|
msgstr ""
|
|
2037
2045
|
|
|
2038
|
-
#: ../../bin/rabbit:
|
|
2046
|
+
#: ../../bin/rabbit:174 ../../bin/rabbit-theme-manager:50
|
|
2039
2047
|
msgid "Set window height to [HEIGHT]."
|
|
2040
2048
|
msgstr ""
|
|
2041
2049
|
|
|
2042
|
-
#: ../../bin/rabbit:
|
|
2050
|
+
#: ../../bin/rabbit:179 ../../bin/rabbit-theme-manager:55
|
|
2043
2051
|
msgid ""
|
|
2044
2052
|
"Set window width and height to\n"
|
|
2045
2053
|
"[WIDTH] and [HEIGHT]."
|
|
2046
2054
|
msgstr ""
|
|
2047
2055
|
|
|
2048
|
-
#: ../../bin/rabbit:
|
|
2056
|
+
#: ../../bin/rabbit:191
|
|
2049
2057
|
msgid "Save"
|
|
2050
2058
|
msgstr ""
|
|
2051
2059
|
|
|
2052
|
-
#: ../../bin/rabbit:
|
|
2060
|
+
#: ../../bin/rabbit:194
|
|
2053
2061
|
msgid "Save as image and exit."
|
|
2054
2062
|
msgstr ""
|
|
2055
2063
|
|
|
2056
|
-
#: ../../bin/rabbit:
|
|
2064
|
+
#: ../../bin/rabbit:199
|
|
2057
2065
|
msgid "Specify saved image type as [TYPE]."
|
|
2058
2066
|
msgstr ""
|
|
2059
2067
|
|
|
2060
|
-
#: ../../bin/rabbit:
|
|
2068
|
+
#: ../../bin/rabbit:206
|
|
2061
2069
|
msgid "Specify saved image base name as [BASE_NAME]."
|
|
2062
2070
|
msgstr ""
|
|
2063
2071
|
|
|
2064
|
-
#: ../../bin/rabbit:
|
|
2072
|
+
#: ../../bin/rabbit:207 ../../bin/rabbit:245
|
|
2065
2073
|
msgid "Title of slide"
|
|
2066
2074
|
msgstr ""
|
|
2067
2075
|
|
|
2068
|
-
#: ../../bin/rabbit:
|
|
2076
|
+
#: ../../bin/rabbit:212
|
|
2069
2077
|
msgid "Output HTML for viewing saved images."
|
|
2070
2078
|
msgstr ""
|
|
2071
2079
|
|
|
2072
|
-
#: ../../bin/rabbit:
|
|
2080
|
+
#: ../../bin/rabbit:218
|
|
2073
2081
|
msgid "Output index HTML for navigating slides."
|
|
2074
2082
|
msgstr ""
|
|
2075
2083
|
|
|
2076
|
-
#: ../../bin/rabbit:
|
|
2084
|
+
#: ../../bin/rabbit:224
|
|
2077
2085
|
msgid "Specify base URI of RSS as [URI]."
|
|
2078
2086
|
msgstr ""
|
|
2079
2087
|
|
|
2080
|
-
#: ../../bin/rabbit:
|
|
2088
|
+
#: ../../bin/rabbit:225
|
|
2081
2089
|
msgid "RSS is generated only when HTML is output."
|
|
2082
2090
|
msgstr ""
|
|
2083
2091
|
|
|
2084
|
-
#: ../../bin/rabbit:
|
|
2092
|
+
#: ../../bin/rabbit:231
|
|
2085
2093
|
msgid "Specify source filenam as [FILENAME]."
|
|
2086
2094
|
msgstr ""
|
|
2087
2095
|
|
|
2088
|
-
#: ../../bin/rabbit:
|
|
2096
|
+
#: ../../bin/rabbit:239
|
|
2089
2097
|
msgid "Print and exit."
|
|
2090
2098
|
msgstr ""
|
|
2091
2099
|
|
|
2092
|
-
#: ../../bin/rabbit:
|
|
2100
|
+
#: ../../bin/rabbit:244
|
|
2093
2101
|
msgid "Specify printed out filename as [FILENAME]."
|
|
2094
2102
|
msgstr ""
|
|
2095
2103
|
|
|
2096
|
-
#: ../../bin/rabbit:
|
|
2104
|
+
#: ../../bin/rabbit:251
|
|
2097
2105
|
msgid "Set slides per page."
|
|
2098
2106
|
msgstr ""
|
|
2099
2107
|
|
|
2100
|
-
#: ../../bin/rabbit:
|
|
2108
|
+
#: ../../bin/rabbit:257
|
|
2101
2109
|
msgid "Draw scaled image."
|
|
2102
2110
|
msgstr ""
|
|
2103
2111
|
|
|
2104
|
-
#: ../../bin/rabbit:
|
|
2112
|
+
#: ../../bin/rabbit:258
|
|
2105
2113
|
msgid "Better look for displaying but lesser look for printing."
|
|
2106
2114
|
msgstr ""
|
|
2107
2115
|
|
|
2108
|
-
#: ../../bin/rabbit:
|
|
2116
|
+
#: ../../bin/rabbit:263
|
|
2109
2117
|
msgid "Paper"
|
|
2110
2118
|
msgstr ""
|
|
2111
2119
|
|
|
2112
|
-
#: ../../bin/rabbit:
|
|
2120
|
+
#: ../../bin/rabbit:267
|
|
2113
2121
|
msgid "Set paper width to [WIDTH] Pt."
|
|
2114
2122
|
msgstr ""
|
|
2115
2123
|
|
|
2116
|
-
#: ../../bin/rabbit:
|
|
2124
|
+
#: ../../bin/rabbit:268
|
|
2117
2125
|
msgid "(landscape A4 width)"
|
|
2118
2126
|
msgstr ""
|
|
2119
2127
|
|
|
2120
|
-
#: ../../bin/rabbit:
|
|
2128
|
+
#: ../../bin/rabbit:274
|
|
2121
2129
|
msgid "Set paper height to [HEIGHT] Pt."
|
|
2122
2130
|
msgstr ""
|
|
2123
2131
|
|
|
2124
|
-
#: ../../bin/rabbit:
|
|
2132
|
+
#: ../../bin/rabbit:275
|
|
2125
2133
|
msgid "(landscape A4 height)"
|
|
2126
2134
|
msgstr ""
|
|
2127
2135
|
|
|
2128
|
-
#: ../../bin/rabbit:
|
|
2136
|
+
#: ../../bin/rabbit:279
|
|
2129
2137
|
msgid ""
|
|
2130
2138
|
"Set paper width and height to\n"
|
|
2131
2139
|
"[WIDTH] Pt and [HEIGHT] Pt."
|
|
2132
2140
|
msgstr ""
|
|
2133
2141
|
|
|
2134
|
-
#: ../../bin/rabbit:
|
|
2142
|
+
#: ../../bin/rabbit:281
|
|
2135
2143
|
msgid "(landscape A4 size)"
|
|
2136
2144
|
msgstr ""
|
|
2137
2145
|
|
|
2138
|
-
#: ../../bin/rabbit:
|
|
2146
|
+
#: ../../bin/rabbit:291
|
|
2139
2147
|
msgid "Margin"
|
|
2140
2148
|
msgstr ""
|
|
2141
2149
|
|
|
2142
|
-
#: ../../bin/rabbit:
|
|
2150
|
+
#: ../../bin/rabbit:295
|
|
2143
2151
|
msgid "Set left margin for slides per page mode print."
|
|
2144
2152
|
msgstr ""
|
|
2145
2153
|
|
|
2146
|
-
#: ../../bin/rabbit:
|
|
2154
|
+
#: ../../bin/rabbit:302
|
|
2147
2155
|
msgid "Set right margin for slides per page mode print."
|
|
2148
2156
|
msgstr ""
|
|
2149
2157
|
|
|
2150
|
-
#: ../../bin/rabbit:
|
|
2158
|
+
#: ../../bin/rabbit:309
|
|
2151
2159
|
msgid "Set top margin for slides per page mode print."
|
|
2152
2160
|
msgstr ""
|
|
2153
2161
|
|
|
2154
|
-
#: ../../bin/rabbit:
|
|
2162
|
+
#: ../../bin/rabbit:316
|
|
2155
2163
|
msgid "Set bottom margin for slides per page mode print."
|
|
2156
2164
|
msgstr ""
|
|
2157
2165
|
|
|
2158
|
-
#: ../../bin/rabbit:
|
|
2166
|
+
#: ../../bin/rabbit:321
|
|
2159
2167
|
msgid "[ALL]"
|
|
2160
2168
|
msgstr ""
|
|
2161
2169
|
|
|
2162
|
-
#: ../../bin/rabbit:
|
|
2170
|
+
#: ../../bin/rabbit:322
|
|
2163
2171
|
msgid "[TOP_BOTTOM],[LEFT_RIGHT]"
|
|
2164
2172
|
msgstr ""
|
|
2165
2173
|
|
|
2166
|
-
#: ../../bin/rabbit:
|
|
2174
|
+
#: ../../bin/rabbit:323
|
|
2167
2175
|
msgid "[TOP],[LEFT_RIGHT],[BOTTOM]"
|
|
2168
2176
|
msgstr ""
|
|
2169
2177
|
|
|
2170
|
-
#: ../../bin/rabbit:
|
|
2178
|
+
#: ../../bin/rabbit:324
|
|
2171
2179
|
msgid "[TOP],[RIGHT],[BOTTOM],[LEFT]"
|
|
2172
2180
|
msgstr ""
|
|
2173
2181
|
|
|
2174
|
-
#: ../../bin/rabbit:
|
|
2182
|
+
#: ../../bin/rabbit:327
|
|
2175
2183
|
msgid "Set margin for slides per page mode print."
|
|
2176
2184
|
msgstr ""
|
|
2177
2185
|
|
|
2178
|
-
#: ../../bin/rabbit:
|
|
2186
|
+
#: ../../bin/rabbit:341
|
|
2179
2187
|
msgid "Set left page margin."
|
|
2180
2188
|
msgstr ""
|
|
2181
2189
|
|
|
2182
|
-
#: ../../bin/rabbit:
|
|
2190
|
+
#: ../../bin/rabbit:348
|
|
2183
2191
|
msgid "Set right page margin."
|
|
2184
2192
|
msgstr ""
|
|
2185
2193
|
|
|
2186
|
-
#: ../../bin/rabbit:
|
|
2194
|
+
#: ../../bin/rabbit:355
|
|
2187
2195
|
msgid "Set top page margin."
|
|
2188
2196
|
msgstr ""
|
|
2189
2197
|
|
|
2190
|
-
#: ../../bin/rabbit:
|
|
2198
|
+
#: ../../bin/rabbit:362
|
|
2191
2199
|
msgid "Set bottom page margin."
|
|
2192
2200
|
msgstr ""
|
|
2193
2201
|
|
|
2194
|
-
#: ../../bin/rabbit:
|
|
2202
|
+
#: ../../bin/rabbit:369
|
|
2195
2203
|
msgid "Set page margin."
|
|
2196
2204
|
msgstr ""
|
|
2197
2205
|
|
|
2198
|
-
#: ../../bin/rabbit:
|
|
2206
|
+
#: ../../bin/rabbit:381
|
|
2199
2207
|
msgid "dRuby"
|
|
2200
2208
|
msgstr ""
|
|
2201
2209
|
|
|
2202
|
-
#: ../../bin/rabbit:
|
|
2210
|
+
#: ../../bin/rabbit:384
|
|
2203
2211
|
msgid "Specify whether to use dRuby."
|
|
2204
2212
|
msgstr ""
|
|
2205
2213
|
|
|
2206
|
-
#: ../../bin/rabbit:
|
|
2214
|
+
#: ../../bin/rabbit:390
|
|
2207
2215
|
msgid "Specify dRuby URI."
|
|
2208
2216
|
msgstr ""
|
|
2209
2217
|
|
|
2210
|
-
#: ../../bin/rabbit:
|
|
2218
|
+
#: ../../bin/rabbit:396
|
|
2211
2219
|
msgid "Specify whether to output dRuby URI."
|
|
2212
2220
|
msgstr ""
|
|
2213
2221
|
|
|
2214
|
-
#: ../../bin/rabbit:
|
|
2222
|
+
#: ../../bin/rabbit:401
|
|
2215
2223
|
msgid "SOAP"
|
|
2216
2224
|
msgstr ""
|
|
2217
2225
|
|
|
2218
|
-
#: ../../bin/rabbit:
|
|
2226
|
+
#: ../../bin/rabbit:404
|
|
2219
2227
|
msgid "Specify whether to use SOAP."
|
|
2220
2228
|
msgstr ""
|
|
2221
2229
|
|
|
2222
|
-
#: ../../bin/rabbit:
|
|
2230
|
+
#: ../../bin/rabbit:410
|
|
2223
2231
|
msgid "Specify SOAP host as [HOST]."
|
|
2224
2232
|
msgstr ""
|
|
2225
2233
|
|
|
2226
|
-
#: ../../bin/rabbit:
|
|
2234
|
+
#: ../../bin/rabbit:418
|
|
2227
2235
|
msgid "Specify SOAP port as [PORT]."
|
|
2228
2236
|
msgstr ""
|
|
2229
2237
|
|
|
2230
|
-
#: ../../bin/rabbit:
|
|
2238
|
+
#: ../../bin/rabbit:427
|
|
2231
2239
|
msgid "XML-RPC"
|
|
2232
2240
|
msgstr ""
|
|
2233
2241
|
|
|
2234
|
-
#: ../../bin/rabbit:
|
|
2242
|
+
#: ../../bin/rabbit:430
|
|
2235
2243
|
msgid "Specify whether to use XML-RPC."
|
|
2236
2244
|
msgstr ""
|
|
2237
2245
|
|
|
2238
|
-
#: ../../bin/rabbit:
|
|
2246
|
+
#: ../../bin/rabbit:436
|
|
2239
2247
|
msgid "Specify XML-RPC host as [HOST]."
|
|
2240
2248
|
msgstr ""
|
|
2241
2249
|
|
|
2242
|
-
#: ../../bin/rabbit:
|
|
2250
|
+
#: ../../bin/rabbit:444
|
|
2243
2251
|
msgid "Specify XML-RPC port as [PORT]."
|
|
2244
2252
|
msgstr ""
|
|
2245
2253
|
|
|
2246
|
-
#: ../../bin/rabbit:
|
|
2254
|
+
#: ../../bin/rabbit:453
|
|
2247
2255
|
msgid "Server"
|
|
2248
2256
|
msgstr ""
|
|
2249
2257
|
|
|
2250
|
-
#: ../../bin/rabbit:
|
|
2258
|
+
#: ../../bin/rabbit:456
|
|
2251
2259
|
msgid "Specify whether to run as server."
|
|
2252
2260
|
msgstr ""
|
|
2253
2261
|
|
|
2254
|
-
#: ../../bin/rabbit:
|
|
2262
|
+
#: ../../bin/rabbit:461
|
|
2255
2263
|
msgid "Public level"
|
|
2256
2264
|
msgstr ""
|
|
2257
2265
|
|
|
2258
|
-
#: ../../bin/rabbit:
|
|
2266
|
+
#: ../../bin/rabbit:468
|
|
2259
2267
|
msgid "Specify public level."
|
|
2260
2268
|
msgstr ""
|
|
2261
2269
|
|
|
2262
|
-
#: ../../bin/rabbit:
|
|
2270
|
+
#: ../../bin/rabbit:469
|
|
2263
2271
|
msgid "Select from the following:"
|
|
2264
2272
|
msgstr ""
|
|
2265
2273
|
|
|
2266
|
-
#: ../../bin/rabbit:
|
|
2274
|
+
#: ../../bin/rabbit:486 ../../bin/rabbit:492
|
|
2267
2275
|
msgid "Deprecated. Just ignored."
|
|
2268
2276
|
msgstr ""
|
|
2269
2277
|
|
|
2270
|
-
#: ../../bin/rabbit:
|
|
2278
|
+
#: ../../bin/rabbit:487
|
|
2271
2279
|
msgid "Specify initial comment source."
|
|
2272
2280
|
msgstr ""
|
|
2273
2281
|
|
|
2274
|
-
#: ../../bin/rabbit:
|
|
2282
|
+
#: ../../bin/rabbit:488
|
|
2275
2283
|
msgid "(default source)"
|
|
2276
2284
|
msgstr ""
|
|
2277
2285
|
|
|
2278
|
-
#: ../../bin/rabbit:
|
|
2286
|
+
#: ../../bin/rabbit:493
|
|
2279
2287
|
msgid "Specify comment source encoding."
|
|
2280
2288
|
msgstr ""
|
|
2281
2289
|
|
|
2282
|
-
#: ../../bin/rabbit:
|
|
2290
|
+
#: ../../bin/rabbit:497
|
|
2283
2291
|
msgid "Migemo"
|
|
2284
2292
|
msgstr ""
|
|
2285
2293
|
|
|
2286
|
-
#: ../../bin/rabbit:
|
|
2294
|
+
#: ../../bin/rabbit:502
|
|
2287
2295
|
msgid "Specify search paths for Migemo static dictionary."
|
|
2288
2296
|
msgstr ""
|
|
2289
2297
|
|
|
2290
|
-
#: ../../bin/rabbit:
|
|
2298
|
+
#: ../../bin/rabbit:509
|
|
2291
2299
|
msgid "Specify static dictionary name for Migemo."
|
|
2292
2300
|
msgstr ""
|
|
2293
2301
|
|
|
2294
|
-
#: ../../bin/rabbit:
|
|
2302
|
+
#: ../../bin/rabbit:514
|
|
2295
2303
|
msgid "3D"
|
|
2296
2304
|
msgstr ""
|
|
2297
2305
|
|
|
2298
|
-
#: ../../bin/rabbit:
|
|
2306
|
+
#: ../../bin/rabbit:517
|
|
2299
2307
|
msgid "Specify whether to use OpenGL if available."
|
|
2300
2308
|
msgstr ""
|
|
2301
2309
|
|
|
2302
|
-
#: ../../bin/rabbit:
|
|
2310
|
+
#: ../../bin/rabbit:522
|
|
2303
2311
|
msgid "Display"
|
|
2304
2312
|
msgstr ""
|
|
2305
2313
|
|
|
2306
|
-
#: ../../bin/rabbit:
|
|
2314
|
+
#: ../../bin/rabbit:525
|
|
2307
2315
|
msgid "Specify whether to keep above window."
|
|
2308
2316
|
msgstr ""
|
|
2309
2317
|
|
|
2310
|
-
#: ../../bin/rabbit:
|
|
2318
|
+
#: ../../bin/rabbit:530
|
|
2311
2319
|
msgid "Others"
|
|
2312
2320
|
msgstr ""
|
|
2313
2321
|
|
|
2314
|
-
#: ../../bin/rabbit:
|
|
2322
|
+
#: ../../bin/rabbit:533
|
|
2315
2323
|
msgid "Show a native window ID of the Rabbit window if available."
|
|
2316
2324
|
msgstr ""
|
|
2317
2325
|
|
|
2318
|
-
#: ../../bin/rabbit:
|
|
2326
|
+
#: ../../bin/rabbit:534
|
|
2319
2327
|
msgid "e.g. The ID is the ID of X resource on X window system."
|
|
2320
2328
|
msgstr ""
|
|
2321
2329
|
|
|
2322
|
-
#: ../../bin/rabbit:
|
|
2330
|
+
#: ../../bin/rabbit:556
|
|
2323
2331
|
msgid "Choose a Rabbit source file"
|
|
2324
2332
|
msgstr ""
|
|
2325
2333
|
|
|
2326
|
-
#: ../../bin/rabbit:
|
|
2334
|
+
#: ../../bin/rabbit:675
|
|
2327
2335
|
msgid "dRuby URI <%s> is in use."
|
|
2328
2336
|
msgstr ""
|
|
2329
2337
|
|
|
2330
|
-
#: ../../bin/rabbit:
|
|
2338
|
+
#: ../../bin/rabbit:694
|
|
2331
2339
|
msgid "port <%s> for SOAP is in use."
|
|
2332
2340
|
msgstr ""
|
|
2333
2341
|
|
|
2334
|
-
#: ../../bin/rabbit:
|
|
2342
|
+
#: ../../bin/rabbit:715
|
|
2335
2343
|
msgid "port <%s> for XML-RPC is in use."
|
|
2336
2344
|
msgstr ""
|
|
2337
2345
|
|
|
2338
|
-
#: ../../bin/rabbit:
|
|
2346
|
+
#: ../../bin/rabbit:776
|
|
2339
2347
|
msgid "Window ID: %d"
|
|
2340
2348
|
msgstr ""
|
|
2341
2349
|
|
|
2342
|
-
#: ../../bin/rabbit:
|
|
2350
|
+
#: ../../bin/rabbit:822
|
|
2343
2351
|
msgid "going to shutdown..."
|
|
2344
2352
|
msgstr ""
|
|
2345
2353
|
|
|
2346
|
-
#: ../../bin/rabbit:
|
|
2354
|
+
#: ../../bin/rabbit:824
|
|
2347
2355
|
msgid "DRb.thread done."
|
|
2348
2356
|
msgstr ""
|
|
2349
2357
|
|