rabbit 2.1.8 → 2.1.9

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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  4. data/doc/_config.yml +22 -2
  5. data/doc/_layouts/en.html +0 -2
  6. data/doc/_layouts/ja.html +0 -2
  7. data/doc/en/how-to-make/markdown.md +35 -2
  8. data/doc/en/index.rd +3 -2
  9. data/doc/en/install/homebrew.rd +1 -1
  10. data/doc/en/install/windows.rd +18 -34
  11. data/doc/en/news.rd +99 -0
  12. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  13. data/doc/images/screenshots/en/blue-circle.png +0 -0
  14. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  15. data/doc/images/screenshots/en/clear-blue.png +0 -0
  16. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  17. data/doc/images/screenshots/en/cozmixng.png +0 -0
  18. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  19. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  20. data/doc/images/screenshots/en/day-white-raw.png +0 -0
  21. data/doc/images/screenshots/en/day-white.png +0 -0
  22. data/doc/images/screenshots/en/debian-raw.png +0 -0
  23. data/doc/images/screenshots/en/debian.png +0 -0
  24. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  25. data/doc/images/screenshots/en/green-circle.png +0 -0
  26. data/doc/images/screenshots/en/night-black-raw.png +0 -0
  27. data/doc/images/screenshots/en/night-black.png +0 -0
  28. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  29. data/doc/images/screenshots/en/rabbit.png +0 -0
  30. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  31. data/doc/images/screenshots/en/ranguba.png +0 -0
  32. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  33. data/doc/images/screenshots/en/red-frame.png +0 -0
  34. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  35. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  36. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  37. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  38. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  39. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  40. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  41. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  42. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  43. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  44. data/doc/images/screenshots/ja/day-white.png +0 -0
  45. data/doc/images/screenshots/ja/debian.png +0 -0
  46. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  47. data/doc/images/screenshots/ja/green-circle.png +0 -0
  48. data/doc/images/screenshots/ja/night-black-raw.png +0 -0
  49. data/doc/images/screenshots/ja/night-black.png +0 -0
  50. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  51. data/doc/images/screenshots/ja/rabbit.png +0 -0
  52. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  53. data/doc/images/screenshots/ja/ranguba.png +0 -0
  54. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  55. data/doc/images/screenshots/ja/red-frame.png +0 -0
  56. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  57. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  58. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  59. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  60. data/doc/ja/how-to-make/markdown.md +36 -2
  61. data/doc/ja/index.rd +2 -1
  62. data/doc/ja/install/homebrew.rd +1 -1
  63. data/doc/ja/install/windows.rd +22 -38
  64. data/doc/ja/news.rd +99 -0
  65. data/entities/ent2rb.rb +30 -22
  66. data/lib/rabbit/command/rabbit.rb +9 -5
  67. data/lib/rabbit/parser/ext/entity.rb +3664 -3694
  68. data/lib/rabbit/parser/markdown.rb +29 -1
  69. data/lib/rabbit/parser/markdown/converter.rb +12 -0
  70. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +7 -0
  71. data/lib/rabbit/renderer/display/drawing-area-base.rb +5 -1
  72. data/lib/rabbit/renderer/display/key-handler.rb +0 -4
  73. data/lib/rabbit/renderer/display/search.rb +6 -1
  74. data/lib/rabbit/theme/applier.rb +8 -2
  75. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +8 -1
  76. data/lib/rabbit/theme/clear-blue/clear-blue.rb +2 -0
  77. data/lib/rabbit/theme/default-title-text/default-title-text.rb +5 -0
  78. data/lib/rabbit/theme/image-viewer/image-viewer.rb +2 -0
  79. data/lib/rabbit/theme/image/image.rb +13 -11
  80. data/lib/rabbit/theme/syntax-highlighting/syntax-highlighting.rb +14 -2
  81. data/lib/rabbit/version.rb +1 -1
  82. data/po/en/rabbit.edit.po +109 -101
  83. data/po/en/rabbit.po +6 -0
  84. data/po/fr/rabbit.edit.po +109 -101
  85. data/po/fr/rabbit.po +6 -0
  86. data/po/ja/rabbit.edit.po +110 -113
  87. data/po/ja/rabbit.po +7 -1
  88. data/sample/rabbit.md +1 -1
  89. data/test/parser/test-markdown.rb +47 -0
  90. metadata +60 -19
@@ -35,14 +35,42 @@ module Kramdown
35
35
 
36
36
  alias_method :configure_parser_raw, :configure_parser
37
37
  def configure_parser
38
+ @span_parsers.unshift(:strikethrough)
38
39
  position = @block_parsers.index(:codeblock_fenced)
39
40
  @block_parsers.insert(position, :codeblock_fenced_gfm)
40
41
 
41
42
  configure_parser_raw
42
43
  end
43
44
 
44
- parser(:codeblock_fenced_gfm).method = "parse_codeblock_fenced_gfm"
45
+ STRIKETHROUGH_DELIMITER = "~~"
46
+ STRIKETHROUGH_DELIMITER_PATTERN =
47
+ /#{Regexp.escape(STRIKETHROUGH_DELIMITER)}/
48
+ def parse_strikethrough
49
+ start_line_number = @src.current_line_number
50
+
51
+ delimiter = @src.scan(STRIKETHROUGH_DELIMITER_PATTERN)
52
+ saved_pos = @src.save_pos
53
+
54
+ text = @src.scan_until(STRIKETHROUGH_DELIMITER_PATTERN)
55
+ if text
56
+ text = text.sub(/#{STRIKETHROUGH_DELIMITER_PATTERN}\Z/, "")
57
+ @tree.children << Element.new(:strikethrough, text, nil,
58
+ :location => start_line_number)
59
+ else
60
+ @src.revert_pos(saved_pos)
61
+ add_text(delimiter)
62
+ end
63
+ end
64
+ define_parser(:strikethrough,
65
+ STRIKETHROUGH_DELIMITER_PATTERN,
66
+ STRIKETHROUGH_DELIMITER)
67
+
68
+ escaped_chars_start_re =
69
+ parser(:escaped_chars).start_re.to_s.sub(/(\]\)\))\z/, "~\\1")
70
+ parser(:escaped_chars).start_re = /#{escaped_chars_start_re}/
45
71
 
72
+
73
+ parser(:codeblock_fenced_gfm).method = "parse_codeblock_fenced_gfm"
46
74
  def parse_codeblock_fenced_gfm
47
75
  original_match = self.class::FENCED_CODEBLOCK_MATCH
48
76
  begin
@@ -261,6 +261,10 @@ module Rabbit
261
261
  end
262
262
  end
263
263
 
264
+ def convert_hr(element)
265
+ raise ParseError, _("horizontal rule isn't supported.")
266
+ end
267
+
264
268
  def convert_comment(element)
265
269
  :no_element
266
270
  end
@@ -372,6 +376,14 @@ module Rabbit
372
376
  # TODO: Should we validate element.options[:category] == "span"?
373
377
  Ext::Inline.note(convert_container(element))
374
378
  end
379
+
380
+ def convert_strikethrough(element)
381
+ DeletedText.new(text(element.value))
382
+ end
383
+
384
+ def convert_html_element(element)
385
+ raise ParseError, _("HTML isn't supported.")
386
+ end
375
387
  end
376
388
  end
377
389
  end
@@ -182,6 +182,13 @@ module Rabbit
182
182
  end
183
183
  wait_block
184
184
  end
185
+
186
+ def ext_block_verb_pango(label, source, content, visitor)
187
+ return nil unless /\Apango\z/i =~ label
188
+ src, prop = parse_source(source)
189
+ text = Text.new(src)
190
+ PreformattedBlock.new(PreformattedText.new(text))
191
+ end
185
192
  end
186
193
  end
187
194
  end
@@ -193,7 +193,11 @@ module Rabbit
193
193
  def reload_source(&callback)
194
194
  if @canvas.need_reload_source?
195
195
  callback ||= Utils.process_pending_events_proc
196
- super(callback)
196
+ begin
197
+ super(callback)
198
+ rescue
199
+ @canvas.logger.error($!)
200
+ end
197
201
  end
198
202
  end
199
203
 
@@ -148,10 +148,6 @@ module Rabbit
148
148
  set_keys(keys, mod) do |group, obj, val, modifier|
149
149
  @canvas.activate("SearchSlideForwardNext")
150
150
  end
151
- keys = Keys::STOP_SLIDE_SEARCH_KEYS
152
- set_keys(keys, mod) do |group, obj, val, modifier|
153
- @canvas.activate("StopSlideSearch")
154
- end
155
151
  end
156
152
 
157
153
  def init_shift_keys
@@ -56,7 +56,12 @@ module Rabbit
56
56
  direction = @search_window.direction
57
57
  entry.signal_connect("key_press_event") do |widget, key|
58
58
  if key.state == Gdk::ModifierType.new
59
- false
59
+ if Keys::STOP_SLIDE_SEARCH_KEYS.include?(key.keyval)
60
+ @canvas.activate("StopSlideSearch")
61
+ true
62
+ else
63
+ false
64
+ end
60
65
  else
61
66
  Gtk::AccelGroup.activate(@window, key.keyval, key.state)
62
67
  end
@@ -65,10 +65,16 @@ module Rabbit
65
65
 
66
66
  def draw_mark(indent_width, width_or_proc, height_or_proc, name=nil)
67
67
  indent(indent_width, name) do |item, canvas, x, y, w, h|
68
- first_text = item.elements.first
69
- if first_text
68
+ first_element = item.elements.first
69
+ case first_element
70
+ when Element::TextRenderer
71
+ first_text = first_element
70
72
  text_height = first_text.first_line_height
71
73
  text_height += first_text.padding_top + first_text.padding_bottom
74
+ when Element::EnumList, Element::ItemList
75
+ first_item = first_element.elements.first
76
+ text_height = first_item.height
77
+ text_height += first_item.padding_top + first_item.padding_bottom
72
78
  else
73
79
  text_height = item.height
74
80
  end
@@ -42,12 +42,19 @@ def apply_background_image_property(element, options={})
42
42
 
43
43
  old_geometry = [_x, _y, _w, _h]
44
44
  image.compile(canvas, _x, _y, _w, _h)
45
- if image.do_vertical_centering?
45
+
46
+ case vertical_align
47
+ when "center"
46
48
  adjust_height = ((_h - image.height - image.padding_bottom) / 2.0).ceil
47
49
  if _y + adjust_height > 0
48
50
  _y += adjust_height
49
51
  _h -= adjust_height
50
52
  end
53
+ when "bottom"
54
+ adjust_height =
55
+ image.height + image.padding_bottom + element.margin_bottom
56
+ _y = _h - adjust_height
57
+ _h -= adjust_height
51
58
  end
52
59
 
53
60
  case align
@@ -30,6 +30,8 @@ set_progress_background(base_background_color)
30
30
  @preformatted_frame_color = base_color
31
31
  @preformatted_fill_color = base_background_color
32
32
 
33
+ @syntax_highlighting_frame_color = base_color
34
+
33
35
  @block_quote_frame_color = base_color
34
36
  @block_quote_fill_color = base_background_color
35
37
 
@@ -1,6 +1,7 @@
1
1
  @title_slide_font_size ||= @large_font_size
2
2
  @title_slide_title_font_size ||= @x_large_font_size
3
3
  @title_slide_subtitle_font_size ||= @normal_font_size
4
+ @title_slide_author_font_size ||= @title_slide_font_size
4
5
  @title_slide_content_source_font_size ||= @small_font_size
5
6
  @title_slide_institution_font_size ||= @normal_font_size
6
7
  @title_slide_place_font_size ||= @normal_font_size
@@ -22,6 +23,10 @@ match(TitleSlide, Subtitle) do |titles|
22
23
  titles.prop_set("size", @title_slide_subtitle_font_size)
23
24
  end
24
25
 
26
+ match(TitleSlide, Author) do |authors|
27
+ authors.prop_set("size", @title_slide_author_font_size)
28
+ end
29
+
25
30
  match(TitleSlide, ContentSource) do |sources|
26
31
  sources.prop_set("size", @title_slide_content_source_font_size)
27
32
  sources.prop_set("style", "italic")
@@ -1,3 +1,5 @@
1
+ include_theme("default-comment")
2
+
1
3
  match("**", ImageTitleSlide) do |slides|
2
4
  slides.vertical_centering = true
3
5
  end
@@ -40,17 +40,19 @@ match("**", Image) do |images|
40
40
  draw_frame(images, params) if @image_with_frame
41
41
 
42
42
  images.each do |image|
43
- unless image.caption
44
- image.margin_bottom = @space
43
+ image.margin_bottom = @space
44
+
45
+ caption_text = image.caption
46
+ if caption_text.nil? or caption_text.empty?
45
47
  next
46
48
  end
47
-
49
+
48
50
  layout = nil
49
- th = 0
51
+ caption_height = 0
50
52
 
51
53
  image.add_post_draw_proc(proc_name) do |canvas, x, y, w, h, simulation|
52
54
  if simulation
53
- caption = Text.new(image.caption)
55
+ caption = Text.new(caption_text)
54
56
  caption.prop_set("size", @image_caption_font_size)
55
57
  set_font_family(caption)
56
58
  if image.horizontal_centering
@@ -58,18 +60,18 @@ match("**", Image) do |images|
58
60
  end
59
61
  caption.compile(canvas, image.ox || x, y, image.ow || w, h)
60
62
  layout = caption.layout
61
- th = caption.height
62
-
63
- margin_bottom = @space + th
64
- image.margin_bottom = margin_bottom
63
+ caption_height = caption.height
65
64
  end
66
65
  if !simulation and layout
67
66
  base_x = image.ox || x
68
67
  base_y = y
69
68
  caption_color = image["caption-color"] || @image_caption_color
70
- canvas.draw_layout(layout, base_x, base_y, caption_color)
69
+ canvas.draw_layout(layout,
70
+ base_x,
71
+ base_y + image.margin_bottom,
72
+ caption_color)
71
73
  end
72
- [x, y, w, h]
74
+ [x, y + caption_height, w, h - caption_height]
73
75
  end
74
76
  end
75
77
  end
@@ -51,10 +51,10 @@ theme_exit if @syntax_highlighting_uninstall
51
51
  :color => "#4e9a06",
52
52
  },
53
53
  :integer => {
54
- :color => "#c4a000",
54
+ # :color => "#c4a000",
55
55
  },
56
56
  :float => {
57
- :color => "#c4a000",
57
+ # :color => "#c4a000",
58
58
  },
59
59
  :variable => {
60
60
  :color => "#ce5c00",
@@ -89,6 +89,18 @@ theme_exit if @syntax_highlighting_uninstall
89
89
  :directive => {
90
90
  :color => "#5c35cc",
91
91
  },
92
+ :head => {
93
+ :color => "#204a87",
94
+ },
95
+ :change => {
96
+ :color => "#8f5902",
97
+ },
98
+ :delete => {
99
+ :color => "#a40000",
100
+ },
101
+ :insert => {
102
+ :color => "#4e9a06",
103
+ },
92
104
  }
93
105
 
94
106
  @syntax_highlighting_foreground ||= "#000000"
@@ -15,5 +15,5 @@
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
17
  module Rabbit
18
- VERSION = "2.1.8"
18
+ VERSION = "2.1.9"
19
19
  end
@@ -220,7 +220,7 @@ msgstr ""
220
220
  msgid "Save as image"
221
221
  msgstr ""
222
222
 
223
- #: ../lib/rabbit/action/basic.rb:83 ../lib/rabbit/command/rabbit.rb:312
223
+ #: ../lib/rabbit/action/basic.rb:83 ../lib/rabbit/command/rabbit.rb:315
224
224
  msgid "Print"
225
225
  msgstr ""
226
226
 
@@ -604,398 +604,398 @@ msgstr ""
604
604
  msgid "rabbit-theme-benchmark-en.gem"
605
605
  msgstr ""
606
606
 
607
- #: ../lib/rabbit/command/rabbit.rb:141 ../lib/rabbit/theme/blue-bar/property.rb:1 ../lib/rabbit/theme/blue-circle/property.rb:1 ../lib/rabbit/theme/centering-rabbit/property.rb:1 ../lib/rabbit/theme/clear-blue/property.rb:1 ../lib/rabbit/theme/cozmixng/property.rb:1 ../lib/rabbit/theme/dark-gradation/property.rb:1 ../lib/rabbit/theme/day-white/property.rb:1 ../lib/rabbit/theme/debian/property.rb:1 ../lib/rabbit/theme/default/property.rb:1 ../lib/rabbit/theme/enishi-green/property.rb:1 ../lib/rabbit/theme/green-circle/property.rb:1 ../lib/rabbit/theme/image-viewer/property.rb:1 ../lib/rabbit/theme/lightning-clear-blue/property.rb:1 ../lib/rabbit/theme/lightning-monochrome/property.rb:1 ../lib/rabbit/theme/lightning-rabbit/property.rb:1 ../lib/rabbit/theme/lightning-simple/property.rb:1 ../lib/rabbit/theme/lightning-talk/property.rb:1 ../lib/rabbit/theme/nari/property.rb:1 ../lib/rabbit/theme/night-black/property.rb:1 ../lib/rabbit/theme/pdf/property.rb:1 ../lib/rabbit/theme/rabbit/property.rb:1 ../lib/rabbit/theme/ranguba/property.rb:1 ../lib/rabbit/theme/red-frame/property.rb:1 ../lib/rabbit/theme/ruby-gnome2/property.rb:1 ../lib/rabbit/theme/rubykaigi2011/property.rb:1
607
+ #: ../lib/rabbit/command/rabbit.rb:144 ../lib/rabbit/theme/blue-bar/property.rb:1 ../lib/rabbit/theme/blue-circle/property.rb:1 ../lib/rabbit/theme/centering-rabbit/property.rb:1 ../lib/rabbit/theme/clear-blue/property.rb:1 ../lib/rabbit/theme/cozmixng/property.rb:1 ../lib/rabbit/theme/dark-gradation/property.rb:1 ../lib/rabbit/theme/day-white/property.rb:1 ../lib/rabbit/theme/debian/property.rb:1 ../lib/rabbit/theme/default/property.rb:1 ../lib/rabbit/theme/enishi-green/property.rb:1 ../lib/rabbit/theme/green-circle/property.rb:1 ../lib/rabbit/theme/image-viewer/property.rb:1 ../lib/rabbit/theme/lightning-clear-blue/property.rb:1 ../lib/rabbit/theme/lightning-monochrome/property.rb:1 ../lib/rabbit/theme/lightning-rabbit/property.rb:1 ../lib/rabbit/theme/lightning-simple/property.rb:1 ../lib/rabbit/theme/lightning-talk/property.rb:1 ../lib/rabbit/theme/nari/property.rb:1 ../lib/rabbit/theme/night-black/property.rb:1 ../lib/rabbit/theme/pdf/property.rb:1 ../lib/rabbit/theme/rabbit/property.rb:1 ../lib/rabbit/theme/ranguba/property.rb:1 ../lib/rabbit/theme/red-frame/property.rb:1 ../lib/rabbit/theme/ruby-gnome2/property.rb:1 ../lib/rabbit/theme/rubykaigi2011/property.rb:1
608
608
  msgid "Theme"
609
609
  msgstr ""
610
610
 
611
- #: ../lib/rabbit/command/rabbit.rb:144
611
+ #: ../lib/rabbit/command/rabbit.rb:147
612
612
  msgid "Add [PATH] to load path."
613
613
  msgstr ""
614
614
 
615
- #: ../lib/rabbit/command/rabbit.rb:149
615
+ #: ../lib/rabbit/command/rabbit.rb:152
616
616
  msgid "Use [THEME] as theme."
617
617
  msgstr ""
618
618
 
619
- #: ../lib/rabbit/command/rabbit.rb:156
619
+ #: ../lib/rabbit/command/rabbit.rb:159
620
620
  msgid "Use [THEME] for comment."
621
621
  msgstr ""
622
622
 
623
- #: ../lib/rabbit/command/rabbit.rb:162
623
+ #: ../lib/rabbit/command/rabbit.rb:165
624
624
  msgid "Use [TIME] as allotted time."
625
625
  msgstr ""
626
626
 
627
- #: ../lib/rabbit/command/rabbit.rb:168 ../lib/rabbit/html/generator.rb:404
627
+ #: ../lib/rabbit/command/rabbit.rb:171 ../lib/rabbit/html/generator.rb:404
628
628
  msgid "Source"
629
629
  msgstr ""
630
630
 
631
- #: ../lib/rabbit/command/rabbit.rb:175
631
+ #: ../lib/rabbit/command/rabbit.rb:178
632
632
  msgid ""
633
633
  "When select %s\n"
634
634
  "specify %s\n"
635
635
  "as [SOURCE_INFOS]."
636
636
  msgstr ""
637
637
 
638
- #: ../lib/rabbit/command/rabbit.rb:182
638
+ #: ../lib/rabbit/command/rabbit.rb:185
639
639
  msgid "Specify source type as [TYPE]."
640
640
  msgstr ""
641
641
 
642
- #: ../lib/rabbit/command/rabbit.rb:183 ../lib/rabbit/console.rb:165 ../lib/rabbit/console.rb:182
642
+ #: ../lib/rabbit/command/rabbit.rb:186 ../lib/rabbit/console.rb:165 ../lib/rabbit/console.rb:182
643
643
  msgid "Select from [%s]."
644
644
  msgstr ""
645
645
 
646
- #: ../lib/rabbit/command/rabbit.rb:184
646
+ #: ../lib/rabbit/command/rabbit.rb:187
647
647
  msgid "Note: case insensitive."
648
648
  msgstr ""
649
649
 
650
- #: ../lib/rabbit/command/rabbit.rb:198
650
+ #: ../lib/rabbit/command/rabbit.rb:201
651
651
  msgid "Specify source encoding as [ENCODING]."
652
652
  msgstr ""
653
653
 
654
- #: ../lib/rabbit/command/rabbit.rb:199 ../lib/rabbit/command/rabbit.rb:205 ../lib/rabbit/command/rabbit.rb:372 ../lib/rabbit/command/rabbit.rb:379 ../lib/rabbit/command/rabbit.rb:386 ../lib/rabbit/command/rabbit.rb:393 ../lib/rabbit/command/rabbit.rb:418 ../lib/rabbit/command/rabbit.rb:425 ../lib/rabbit/command/rabbit.rb:432 ../lib/rabbit/command/rabbit.rb:439 ../lib/rabbit/command/rabbit.rb:552 ../lib/rabbit/console.rb:150
654
+ #: ../lib/rabbit/command/rabbit.rb:202 ../lib/rabbit/command/rabbit.rb:208 ../lib/rabbit/command/rabbit.rb:375 ../lib/rabbit/command/rabbit.rb:382 ../lib/rabbit/command/rabbit.rb:389 ../lib/rabbit/command/rabbit.rb:396 ../lib/rabbit/command/rabbit.rb:421 ../lib/rabbit/command/rabbit.rb:428 ../lib/rabbit/command/rabbit.rb:435 ../lib/rabbit/command/rabbit.rb:442 ../lib/rabbit/command/rabbit.rb:555 ../lib/rabbit/console.rb:150
655
655
  msgid "(auto)"
656
656
  msgstr ""
657
657
 
658
- #: ../lib/rabbit/command/rabbit.rb:204
658
+ #: ../lib/rabbit/command/rabbit.rb:207
659
659
  msgid "Specify base URI or path of source as [BASE]."
660
660
  msgstr ""
661
661
 
662
- #: ../lib/rabbit/command/rabbit.rb:210
662
+ #: ../lib/rabbit/command/rabbit.rb:213
663
663
  msgid "Initial state"
664
664
  msgstr ""
665
665
 
666
- #: ../lib/rabbit/command/rabbit.rb:213
666
+ #: ../lib/rabbit/command/rabbit.rb:216
667
667
  msgid "Toggle full screen mode."
668
668
  msgstr ""
669
669
 
670
- #: ../lib/rabbit/command/rabbit.rb:219
670
+ #: ../lib/rabbit/command/rabbit.rb:222
671
671
  msgid "Toggle index mode."
672
672
  msgstr ""
673
673
 
674
- #: ../lib/rabbit/command/rabbit.rb:225
674
+ #: ../lib/rabbit/command/rabbit.rb:228
675
675
  msgid "Show the Nth slide. (zero-based)"
676
676
  msgstr ""
677
677
 
678
- #: ../lib/rabbit/command/rabbit.rb:231
678
+ #: ../lib/rabbit/command/rabbit.rb:234
679
679
  msgid "Size"
680
680
  msgstr ""
681
681
 
682
- #: ../lib/rabbit/command/rabbit.rb:234
682
+ #: ../lib/rabbit/command/rabbit.rb:237
683
683
  msgid "Set window geometry [GEOMETRY]."
684
684
  msgstr ""
685
685
 
686
- #: ../lib/rabbit/command/rabbit.rb:235
686
+ #: ../lib/rabbit/command/rabbit.rb:238
687
687
  msgid "Format: WIDTHxHEIGHT+X+Y"
688
688
  msgstr ""
689
689
 
690
- #: ../lib/rabbit/command/rabbit.rb:242
690
+ #: ../lib/rabbit/command/rabbit.rb:245
691
691
  msgid "Set window width to [WIDTH]."
692
692
  msgstr ""
693
693
 
694
- #: ../lib/rabbit/command/rabbit.rb:249
694
+ #: ../lib/rabbit/command/rabbit.rb:252
695
695
  msgid "Set window height to [HEIGHT]."
696
696
  msgstr ""
697
697
 
698
- #: ../lib/rabbit/command/rabbit.rb:254
698
+ #: ../lib/rabbit/command/rabbit.rb:257
699
699
  msgid ""
700
700
  "Set window width and height to\n"
701
701
  "[WIDTH] and [HEIGHT]."
702
702
  msgstr ""
703
703
 
704
- #: ../lib/rabbit/command/rabbit.rb:267
704
+ #: ../lib/rabbit/command/rabbit.rb:270
705
705
  msgid "Save"
706
706
  msgstr ""
707
707
 
708
- #: ../lib/rabbit/command/rabbit.rb:270
708
+ #: ../lib/rabbit/command/rabbit.rb:273
709
709
  msgid "Save as image and exit."
710
710
  msgstr ""
711
711
 
712
- #: ../lib/rabbit/command/rabbit.rb:275
712
+ #: ../lib/rabbit/command/rabbit.rb:278
713
713
  msgid "Specify saved image type as [TYPE]."
714
714
  msgstr ""
715
715
 
716
- #: ../lib/rabbit/command/rabbit.rb:282
716
+ #: ../lib/rabbit/command/rabbit.rb:285
717
717
  msgid "Specify saved image base name as [BASE_NAME]."
718
718
  msgstr ""
719
719
 
720
- #: ../lib/rabbit/command/rabbit.rb:283 ../lib/rabbit/command/rabbit.rb:321
720
+ #: ../lib/rabbit/command/rabbit.rb:286 ../lib/rabbit/command/rabbit.rb:324
721
721
  msgid "Title of slide"
722
722
  msgstr ""
723
723
 
724
- #: ../lib/rabbit/command/rabbit.rb:288
724
+ #: ../lib/rabbit/command/rabbit.rb:291
725
725
  msgid "Output HTML for viewing saved images."
726
726
  msgstr ""
727
727
 
728
- #: ../lib/rabbit/command/rabbit.rb:294
728
+ #: ../lib/rabbit/command/rabbit.rb:297
729
729
  msgid "Output index HTML for navigating slides."
730
730
  msgstr ""
731
731
 
732
- #: ../lib/rabbit/command/rabbit.rb:300
732
+ #: ../lib/rabbit/command/rabbit.rb:303
733
733
  msgid "Specify base URI of RSS as [URI]."
734
734
  msgstr ""
735
735
 
736
- #: ../lib/rabbit/command/rabbit.rb:301
736
+ #: ../lib/rabbit/command/rabbit.rb:304
737
737
  msgid "RSS is generated only when HTML is output."
738
738
  msgstr ""
739
739
 
740
- #: ../lib/rabbit/command/rabbit.rb:307
740
+ #: ../lib/rabbit/command/rabbit.rb:310
741
741
  msgid "Specify source filenam as [FILENAME]."
742
742
  msgstr ""
743
743
 
744
- #: ../lib/rabbit/command/rabbit.rb:315
744
+ #: ../lib/rabbit/command/rabbit.rb:318
745
745
  msgid "Print and exit."
746
746
  msgstr ""
747
747
 
748
- #: ../lib/rabbit/command/rabbit.rb:320
748
+ #: ../lib/rabbit/command/rabbit.rb:323
749
749
  msgid "Specify printed out filename as [FILENAME]."
750
750
  msgstr ""
751
751
 
752
- #: ../lib/rabbit/command/rabbit.rb:327
752
+ #: ../lib/rabbit/command/rabbit.rb:330
753
753
  msgid "Set slides per page."
754
754
  msgstr ""
755
755
 
756
- #: ../lib/rabbit/command/rabbit.rb:333
756
+ #: ../lib/rabbit/command/rabbit.rb:336
757
757
  msgid "Draw scaled image."
758
758
  msgstr ""
759
759
 
760
- #: ../lib/rabbit/command/rabbit.rb:334
760
+ #: ../lib/rabbit/command/rabbit.rb:337
761
761
  msgid "Better look for displaying but lesser look for printing."
762
762
  msgstr ""
763
763
 
764
- #: ../lib/rabbit/command/rabbit.rb:339
764
+ #: ../lib/rabbit/command/rabbit.rb:342
765
765
  msgid "Paper"
766
766
  msgstr ""
767
767
 
768
- #: ../lib/rabbit/command/rabbit.rb:343
768
+ #: ../lib/rabbit/command/rabbit.rb:346
769
769
  msgid "Set paper width to [WIDTH] Pt."
770
770
  msgstr ""
771
771
 
772
- #: ../lib/rabbit/command/rabbit.rb:344
772
+ #: ../lib/rabbit/command/rabbit.rb:347
773
773
  msgid "(landscape A4 width)"
774
774
  msgstr ""
775
775
 
776
- #: ../lib/rabbit/command/rabbit.rb:350
776
+ #: ../lib/rabbit/command/rabbit.rb:353
777
777
  msgid "Set paper height to [HEIGHT] Pt."
778
778
  msgstr ""
779
779
 
780
- #: ../lib/rabbit/command/rabbit.rb:351
780
+ #: ../lib/rabbit/command/rabbit.rb:354
781
781
  msgid "(landscape A4 height)"
782
782
  msgstr ""
783
783
 
784
- #: ../lib/rabbit/command/rabbit.rb:355
784
+ #: ../lib/rabbit/command/rabbit.rb:358
785
785
  msgid ""
786
786
  "Set paper width and height to\n"
787
787
  "[WIDTH] Pt and [HEIGHT] Pt."
788
788
  msgstr ""
789
789
 
790
- #: ../lib/rabbit/command/rabbit.rb:357
790
+ #: ../lib/rabbit/command/rabbit.rb:360
791
791
  msgid "(landscape A4 size)"
792
792
  msgstr ""
793
793
 
794
- #: ../lib/rabbit/command/rabbit.rb:367
794
+ #: ../lib/rabbit/command/rabbit.rb:370
795
795
  msgid "Margin"
796
796
  msgstr ""
797
797
 
798
- #: ../lib/rabbit/command/rabbit.rb:371
798
+ #: ../lib/rabbit/command/rabbit.rb:374
799
799
  msgid "Set left margin for slides per page mode print."
800
800
  msgstr ""
801
801
 
802
- #: ../lib/rabbit/command/rabbit.rb:378
802
+ #: ../lib/rabbit/command/rabbit.rb:381
803
803
  msgid "Set right margin for slides per page mode print."
804
804
  msgstr ""
805
805
 
806
- #: ../lib/rabbit/command/rabbit.rb:385
806
+ #: ../lib/rabbit/command/rabbit.rb:388
807
807
  msgid "Set top margin for slides per page mode print."
808
808
  msgstr ""
809
809
 
810
- #: ../lib/rabbit/command/rabbit.rb:392
810
+ #: ../lib/rabbit/command/rabbit.rb:395
811
811
  msgid "Set bottom margin for slides per page mode print."
812
812
  msgstr ""
813
813
 
814
- #: ../lib/rabbit/command/rabbit.rb:397
814
+ #: ../lib/rabbit/command/rabbit.rb:400
815
815
  msgid "[ALL]"
816
816
  msgstr ""
817
817
 
818
- #: ../lib/rabbit/command/rabbit.rb:398
818
+ #: ../lib/rabbit/command/rabbit.rb:401
819
819
  msgid "[TOP_BOTTOM],[LEFT_RIGHT]"
820
820
  msgstr ""
821
821
 
822
- #: ../lib/rabbit/command/rabbit.rb:399
822
+ #: ../lib/rabbit/command/rabbit.rb:402
823
823
  msgid "[TOP],[LEFT_RIGHT],[BOTTOM]"
824
824
  msgstr ""
825
825
 
826
- #: ../lib/rabbit/command/rabbit.rb:400
826
+ #: ../lib/rabbit/command/rabbit.rb:403
827
827
  msgid "[TOP],[RIGHT],[BOTTOM],[LEFT]"
828
828
  msgstr ""
829
829
 
830
- #: ../lib/rabbit/command/rabbit.rb:403
830
+ #: ../lib/rabbit/command/rabbit.rb:406
831
831
  msgid "Set margin for slides per page mode print."
832
832
  msgstr ""
833
833
 
834
- #: ../lib/rabbit/command/rabbit.rb:417
834
+ #: ../lib/rabbit/command/rabbit.rb:420
835
835
  msgid "Set left page margin."
836
836
  msgstr ""
837
837
 
838
- #: ../lib/rabbit/command/rabbit.rb:424
838
+ #: ../lib/rabbit/command/rabbit.rb:427
839
839
  msgid "Set right page margin."
840
840
  msgstr ""
841
841
 
842
- #: ../lib/rabbit/command/rabbit.rb:431
842
+ #: ../lib/rabbit/command/rabbit.rb:434
843
843
  msgid "Set top page margin."
844
844
  msgstr ""
845
845
 
846
- #: ../lib/rabbit/command/rabbit.rb:438
846
+ #: ../lib/rabbit/command/rabbit.rb:441
847
847
  msgid "Set bottom page margin."
848
848
  msgstr ""
849
849
 
850
- #: ../lib/rabbit/command/rabbit.rb:445
850
+ #: ../lib/rabbit/command/rabbit.rb:448
851
851
  msgid "Set page margin."
852
852
  msgstr ""
853
853
 
854
- #: ../lib/rabbit/command/rabbit.rb:457
854
+ #: ../lib/rabbit/command/rabbit.rb:460
855
855
  msgid "dRuby"
856
856
  msgstr ""
857
857
 
858
- #: ../lib/rabbit/command/rabbit.rb:460
858
+ #: ../lib/rabbit/command/rabbit.rb:463
859
859
  msgid "Specify whether to use dRuby."
860
860
  msgstr ""
861
861
 
862
- #: ../lib/rabbit/command/rabbit.rb:466
862
+ #: ../lib/rabbit/command/rabbit.rb:469
863
863
  msgid "Specify dRuby URI."
864
864
  msgstr ""
865
865
 
866
- #: ../lib/rabbit/command/rabbit.rb:472
866
+ #: ../lib/rabbit/command/rabbit.rb:475
867
867
  msgid "Specify whether to output dRuby URI."
868
868
  msgstr ""
869
869
 
870
- #: ../lib/rabbit/command/rabbit.rb:477
870
+ #: ../lib/rabbit/command/rabbit.rb:480
871
871
  msgid "SOAP"
872
872
  msgstr ""
873
873
 
874
- #: ../lib/rabbit/command/rabbit.rb:480
874
+ #: ../lib/rabbit/command/rabbit.rb:483
875
875
  msgid "Specify whether to use SOAP."
876
876
  msgstr ""
877
877
 
878
- #: ../lib/rabbit/command/rabbit.rb:486
878
+ #: ../lib/rabbit/command/rabbit.rb:489
879
879
  msgid "Specify SOAP host as [HOST]."
880
880
  msgstr ""
881
881
 
882
- #: ../lib/rabbit/command/rabbit.rb:493
882
+ #: ../lib/rabbit/command/rabbit.rb:496
883
883
  msgid "Specify SOAP port as [PORT]."
884
884
  msgstr ""
885
885
 
886
- #: ../lib/rabbit/command/rabbit.rb:498
886
+ #: ../lib/rabbit/command/rabbit.rb:501
887
887
  msgid "XML-RPC"
888
888
  msgstr ""
889
889
 
890
- #: ../lib/rabbit/command/rabbit.rb:501
890
+ #: ../lib/rabbit/command/rabbit.rb:504
891
891
  msgid "Specify whether to use XML-RPC."
892
892
  msgstr ""
893
893
 
894
- #: ../lib/rabbit/command/rabbit.rb:507
894
+ #: ../lib/rabbit/command/rabbit.rb:510
895
895
  msgid "Specify XML-RPC host as [HOST]."
896
896
  msgstr ""
897
897
 
898
- #: ../lib/rabbit/command/rabbit.rb:514
898
+ #: ../lib/rabbit/command/rabbit.rb:517
899
899
  msgid "Specify XML-RPC port as [PORT]."
900
900
  msgstr ""
901
901
 
902
- #: ../lib/rabbit/command/rabbit.rb:519
902
+ #: ../lib/rabbit/command/rabbit.rb:522
903
903
  msgid "Public level"
904
904
  msgstr ""
905
905
 
906
- #: ../lib/rabbit/command/rabbit.rb:526
906
+ #: ../lib/rabbit/command/rabbit.rb:529
907
907
  msgid "Specify public level."
908
908
  msgstr ""
909
909
 
910
- #: ../lib/rabbit/command/rabbit.rb:527
910
+ #: ../lib/rabbit/command/rabbit.rb:530
911
911
  msgid "Select from the following:"
912
912
  msgstr ""
913
913
 
914
- #: ../lib/rabbit/command/rabbit.rb:536 ../lib/rabbit/command/rabbit.rb:561 ../lib/rabbit/command/rabbit.rb:568
914
+ #: ../lib/rabbit/command/rabbit.rb:539 ../lib/rabbit/command/rabbit.rb:564 ../lib/rabbit/command/rabbit.rb:571
915
915
  msgid "(%s)"
916
916
  msgstr ""
917
917
 
918
- #: ../lib/rabbit/command/rabbit.rb:541 ../lib/rabbit/theme/clutter-comment/property.rb:1 ../lib/rabbit/theme/footer-comment/property.rb:1 ../lib/rabbit/theme/stream-comment/property.rb:1
918
+ #: ../lib/rabbit/command/rabbit.rb:544 ../lib/rabbit/theme/clutter-comment/property.rb:1 ../lib/rabbit/theme/footer-comment/property.rb:1 ../lib/rabbit/theme/stream-comment/property.rb:1
919
919
  msgid "Comment"
920
920
  msgstr ""
921
921
 
922
- #: ../lib/rabbit/command/rabbit.rb:544 ../lib/rabbit/command/rabbit.rb:550
922
+ #: ../lib/rabbit/command/rabbit.rb:547 ../lib/rabbit/command/rabbit.rb:553
923
923
  msgid "Deprecated. Just ignored."
924
924
  msgstr ""
925
925
 
926
- #: ../lib/rabbit/command/rabbit.rb:545
926
+ #: ../lib/rabbit/command/rabbit.rb:548
927
927
  msgid "Specify initial comment source."
928
928
  msgstr ""
929
929
 
930
- #: ../lib/rabbit/command/rabbit.rb:546
930
+ #: ../lib/rabbit/command/rabbit.rb:549
931
931
  msgid "(default source)"
932
932
  msgstr ""
933
933
 
934
- #: ../lib/rabbit/command/rabbit.rb:551
934
+ #: ../lib/rabbit/command/rabbit.rb:554
935
935
  msgid "Specify comment source encoding."
936
936
  msgstr ""
937
937
 
938
- #: ../lib/rabbit/command/rabbit.rb:555
938
+ #: ../lib/rabbit/command/rabbit.rb:558
939
939
  msgid "Migemo"
940
940
  msgstr ""
941
941
 
942
- #: ../lib/rabbit/command/rabbit.rb:560
942
+ #: ../lib/rabbit/command/rabbit.rb:563
943
943
  msgid "Specify search paths for Migemo static dictionary."
944
944
  msgstr ""
945
945
 
946
- #: ../lib/rabbit/command/rabbit.rb:567
946
+ #: ../lib/rabbit/command/rabbit.rb:570
947
947
  msgid "Specify static dictionary name for Migemo."
948
948
  msgstr ""
949
949
 
950
- #: ../lib/rabbit/command/rabbit.rb:572
950
+ #: ../lib/rabbit/command/rabbit.rb:575
951
951
  msgid "3D"
952
952
  msgstr ""
953
953
 
954
- #: ../lib/rabbit/command/rabbit.rb:575
954
+ #: ../lib/rabbit/command/rabbit.rb:578
955
955
  msgid "Specify whether to use OpenGL if available."
956
956
  msgstr ""
957
957
 
958
- #: ../lib/rabbit/command/rabbit.rb:580
958
+ #: ../lib/rabbit/command/rabbit.rb:583
959
959
  msgid "Display"
960
960
  msgstr ""
961
961
 
962
- #: ../lib/rabbit/command/rabbit.rb:583
962
+ #: ../lib/rabbit/command/rabbit.rb:586
963
963
  msgid "Specify whether to keep above window."
964
964
  msgstr ""
965
965
 
966
- #: ../lib/rabbit/command/rabbit.rb:588
966
+ #: ../lib/rabbit/command/rabbit.rb:591
967
967
  msgid "Others"
968
968
  msgstr ""
969
969
 
970
- #: ../lib/rabbit/command/rabbit.rb:591
970
+ #: ../lib/rabbit/command/rabbit.rb:594
971
971
  msgid "Check slide source syntax and exit."
972
972
  msgstr ""
973
973
 
974
- #: ../lib/rabbit/command/rabbit.rb:596
974
+ #: ../lib/rabbit/command/rabbit.rb:599
975
975
  msgid "Show a native window ID of the Rabbit window if available."
976
976
  msgstr ""
977
977
 
978
- #: ../lib/rabbit/command/rabbit.rb:597
978
+ #: ../lib/rabbit/command/rabbit.rb:600
979
979
  msgid "e.g. The ID is the ID of X resource on X window system."
980
980
  msgstr ""
981
981
 
982
- #: ../lib/rabbit/command/rabbit.rb:638
982
+ #: ../lib/rabbit/command/rabbit.rb:641
983
983
  msgid "Choose a Rabbit source file"
984
984
  msgstr ""
985
985
 
986
- #: ../lib/rabbit/command/rabbit.rb:755
986
+ #: ../lib/rabbit/command/rabbit.rb:759
987
987
  msgid "dRuby URI <%s> is in use."
988
988
  msgstr ""
989
989
 
990
- #: ../lib/rabbit/command/rabbit.rb:774
990
+ #: ../lib/rabbit/command/rabbit.rb:778
991
991
  msgid "port <%s> for SOAP is in use."
992
992
  msgstr ""
993
993
 
994
- #: ../lib/rabbit/command/rabbit.rb:795
994
+ #: ../lib/rabbit/command/rabbit.rb:799
995
995
  msgid "port <%s> for XML-RPC is in use."
996
996
  msgstr ""
997
997
 
998
- #: ../lib/rabbit/command/rabbit.rb:856
998
+ #: ../lib/rabbit/command/rabbit.rb:860
999
999
  msgid "Window ID: %d"
1000
1000
  msgstr ""
1001
1001
 
@@ -1219,14 +1219,22 @@ msgstr ""
1219
1219
  msgid "tried mimeTeX commands: %s"
1220
1220
  msgstr ""
1221
1221
 
1222
- #: ../lib/rabbit/parser/markdown/converter.rb:154 ../test/parser/test-markdown.rb:306
1222
+ #: ../lib/rabbit/parser/markdown/converter.rb:154 ../test/parser/test-markdown.rb:340
1223
1223
  msgid "multiple ![alt]{image} in a paragraph isn't supported."
1224
1224
  msgstr ""
1225
1225
 
1226
- #: ../lib/rabbit/parser/markdown/converter.rb:323
1226
+ #: ../lib/rabbit/parser/markdown/converter.rb:265 ../test/parser/test-markdown.rb:354
1227
+ msgid "horizontal rule isn't supported."
1228
+ msgstr ""
1229
+
1230
+ #: ../lib/rabbit/parser/markdown/converter.rb:327
1227
1231
  msgid "multiple ![]('XXX.png'){:align='right'} isn't supported."
1228
1232
  msgstr ""
1229
1233
 
1234
+ #: ../lib/rabbit/parser/markdown/converter.rb:385
1235
+ msgid "HTML isn't supported."
1236
+ msgstr ""
1237
+
1230
1238
  #: ../lib/rabbit/parser/rd/ext/block-verbatim.rb:61
1231
1239
  msgid "multiple 'align = right' isn't supported."
1232
1240
  msgstr ""
@@ -1379,7 +1387,7 @@ msgstr ""
1379
1387
  msgid "Publish the theme to %s"
1380
1388
  msgstr ""
1381
1389
 
1382
- #: ../lib/rabbit/theme/applier.rb:610 ../lib/rabbit/theme/auto-slide/auto-slide.rb:1 ../lib/rabbit/theme/slide-background/slide-background.rb:1
1390
+ #: ../lib/rabbit/theme/applier.rb:616 ../lib/rabbit/theme/auto-slide/auto-slide.rb:1 ../lib/rabbit/theme/slide-background/slide-background.rb:1
1383
1391
  msgid "%s is deprecated. Use %s instead."
1384
1392
  msgstr ""
1385
1393