rabbit 3.0.3 → 3.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.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +32 -0
  3. data/Rakefile +104 -80
  4. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  5. data/doc/_config.yml +2 -2
  6. data/doc/en/how-to-make/markdown.md +28 -2
  7. data/doc/en/how-to-make/rd.rd +28 -2
  8. data/doc/en/install/homebrew.rd +0 -15
  9. data/doc/en/news.rd +81 -0
  10. data/doc/en/sample/hiki/rabbit.hiki +1 -1
  11. data/doc/en/sample/markdown/rabbit.md +1 -1
  12. data/doc/en/sample/rd/rabbit.rd +1 -1
  13. data/doc/en/usage/rabbit-slide.rd +1 -1
  14. data/doc/en/usage/rabbit.rd +1 -1
  15. data/doc/ja/how-to-make/markdown.md +25 -5
  16. data/doc/ja/how-to-make/rd.rd +25 -5
  17. data/doc/ja/install/homebrew.rd +0 -15
  18. data/doc/ja/news.rd +81 -0
  19. data/doc/ja/usage/rabbit.rd +1 -1
  20. data/lib/rabbit/action.rb +1 -23
  21. data/lib/rabbit/canvas.rb +2 -10
  22. data/lib/rabbit/command/rabbit-slide.rb +1 -1
  23. data/lib/rabbit/command/rabbit.rb +6 -4
  24. data/lib/rabbit/cursor-manager.rb +5 -5
  25. data/lib/rabbit/element/text.rb +66 -0
  26. data/lib/rabbit/error.rb +9 -1
  27. data/lib/rabbit/frame.rb +22 -2
  28. data/lib/rabbit/front.rb +1 -1
  29. data/lib/rabbit/gesture/handler.rb +5 -8
  30. data/lib/rabbit/gtk.rb +44 -2
  31. data/lib/rabbit/info-window.rb +16 -2
  32. data/lib/rabbit/menu.rb +1 -3
  33. data/lib/rabbit/parser/ext/charty.rb +9 -0
  34. data/lib/rabbit/parser/markdown/converter.rb +3 -3
  35. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +0 -12
  36. data/lib/rabbit/parser/rd/ext/inline-verbatim.rb +23 -0
  37. data/lib/rabbit/parser/wiki/output.rb +0 -6
  38. data/lib/rabbit/parser.rb +3 -1
  39. data/lib/rabbit/renderer/base.rb +1 -9
  40. data/lib/rabbit/renderer/display/base.rb +7 -5
  41. data/lib/rabbit/renderer/display/button-handler.rb +25 -10
  42. data/lib/rabbit/renderer/display/cursor.rb +18 -2
  43. data/lib/rabbit/renderer/display/drawing-area-base.rb +23 -7
  44. data/lib/rabbit/renderer/display/drawing-area-primitive.rb +35 -20
  45. data/lib/rabbit/renderer/display/gesture.rb +17 -1
  46. data/lib/rabbit/renderer/engine/cairo.rb +27 -13
  47. data/lib/rabbit/renderer/gl.rb +0 -81
  48. data/lib/rabbit/renderer/kernel.rb +0 -50
  49. data/lib/rabbit/renderer/offscreen.rb +1 -6
  50. data/lib/rabbit/renderer/printer.rb +2 -8
  51. data/lib/rabbit/renderer/screen.rb +6 -7
  52. data/lib/rabbit/source/argf.rb +17 -1
  53. data/lib/rabbit/source/base.rb +35 -10
  54. data/lib/rabbit/source/file.rb +17 -1
  55. data/lib/rabbit/source/uri.rb +17 -1
  56. data/lib/rabbit/theme/dark-gradation/dark-gradation.rb +2 -2
  57. data/lib/rabbit/theme/default-comment/default-comment.rb +1 -5
  58. data/lib/rabbit/theme/image-slide-number/property.rb +1 -1
  59. data/lib/rabbit/theme/title-background-image/title-background-image.rb +2 -2
  60. data/lib/rabbit/trackball.rb +21 -21
  61. data/lib/rabbit/utils.rb +5 -45
  62. data/lib/rabbit/version.rb +2 -2
  63. data/lib/rabbit/video-window.rb +6 -2
  64. data/po/en/rabbit.edit.po +25 -39
  65. data/po/en/rabbit.po +9 -21
  66. data/po/fr/rabbit.edit.po +25 -39
  67. data/po/fr/rabbit.po +9 -21
  68. data/po/ja/rabbit.edit.po +57 -59
  69. data/po/ja/rabbit.po +12 -21
  70. data/rabbit.gemspec +11 -14
  71. data/sample/gl-sample.rd +2 -4
  72. data/sample/rabbit/theme/gl-sample/gl-sample.rb +1 -1
  73. data/sample/rabbit-en.hiki +1 -1
  74. data/sample/rabbit-en.md +1 -1
  75. data/sample/rabbit-en.rd +1 -13
  76. data/sample/rabbit.rd +1 -13
  77. data/test/helper.rb +1 -2
  78. data/test/parser/test-markdown.rb +4 -3
  79. data/test/parser/test-rd.rb +3 -3
  80. data/test/parser/test-wiki.rb +2 -2
  81. data/test/test-readme-parser.rb +15 -12
  82. data/test/test-source.rb +2 -2
  83. metadata +35 -122
  84. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  85. data/doc/images/screenshots/en/blue-circle.png +0 -0
  86. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  87. data/doc/images/screenshots/en/clear-blue.png +0 -0
  88. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  89. data/doc/images/screenshots/en/cozmixng.png +0 -0
  90. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  91. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  92. data/doc/images/screenshots/en/day-white-raw.png +0 -0
  93. data/doc/images/screenshots/en/day-white.png +0 -0
  94. data/doc/images/screenshots/en/debian-raw.png +0 -0
  95. data/doc/images/screenshots/en/debian.png +0 -0
  96. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  97. data/doc/images/screenshots/en/green-circle.png +0 -0
  98. data/doc/images/screenshots/en/night-black-raw.png +0 -0
  99. data/doc/images/screenshots/en/night-black.png +0 -0
  100. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  101. data/doc/images/screenshots/en/rabbit.png +0 -0
  102. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  103. data/doc/images/screenshots/en/ranguba.png +0 -0
  104. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  105. data/doc/images/screenshots/en/red-frame.png +0 -0
  106. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  107. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  108. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  109. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  110. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  111. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  112. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  113. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  114. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  115. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  116. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  117. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  118. data/doc/images/screenshots/ja/day-white-raw.png +0 -0
  119. data/doc/images/screenshots/ja/day-white.png +0 -0
  120. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  121. data/doc/images/screenshots/ja/debian.png +0 -0
  122. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  123. data/doc/images/screenshots/ja/green-circle.png +0 -0
  124. data/doc/images/screenshots/ja/night-black-raw.png +0 -0
  125. data/doc/images/screenshots/ja/night-black.png +0 -0
  126. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  127. data/doc/images/screenshots/ja/rabbit.png +0 -0
  128. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  129. data/doc/images/screenshots/ja/ranguba.png +0 -0
  130. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  131. data/doc/images/screenshots/ja/red-frame.png +0 -0
  132. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  133. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  134. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  135. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  136. data/lib/rabbit/parser/ext/emacs.rb +0 -121
  137. data/lib/rabbit/renderer/display/clutter-embed.rb +0 -606
  138. data/lib/rabbit/theme/clutter-comment/clutter-comment.rb +0 -76
  139. data/lib/rabbit/theme/clutter-comment/property.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb9e983ee9412207b14cef6be805b3052ea475cb773b60663585cbc721749114
4
- data.tar.gz: 6b40876e29a4ca2e7034bac14cc7452baa52114d98a774732b39a7a4f278e447
3
+ metadata.gz: 7f3fbfefe40c2abbea3572d6d22aec3ac5d5e3de069f61120cff0d82db031527
4
+ data.tar.gz: 6435432f528d3af5caeae8a8cd112be3f979c03fa2d431249344c08b7afd9810
5
5
  SHA512:
6
- metadata.gz: ccf377086608db9d30d520fe83e6c235a7000435ea72bc8d9c6c1f70f429dd2f2076f5a2c78f5c61d36d2c7caf1144abca7a9d72163bf58ee302ac55c73ad98d
7
- data.tar.gz: fabda81a44c7c844289dd4b8e78c9ef34cf21d1eb3f0c09b9540c30e6d7961b65361fabb97a1058fc3aeb2954547c9b389e28726703666eb743da9a67130492f
6
+ metadata.gz: 59f6d1c1f91e68727a981b1170d6d344c55118b140557282c8166cae84c5118364d73da505e9555dc6a44fed9600451c64dda5b3230811722dd6f8de93ddc464
7
+ data.tar.gz: f4f59780a8370a527da3aa6615fdb96003b3a1e1b5925f36269a3af6f174cde58058640900ff11153a49411894f796fc6c2b9ef09d827f574ead743ad56998cf
data/Gemfile CHANGED
@@ -1,5 +1,37 @@
1
1
  # -*- ruby -*-
2
+ #
3
+ # Copyright (C) 2011-2025 Sutou Kouhei <kou@cozmixng.org>
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License along
16
+ # with this program; if not, write to the Free Software Foundation, Inc.,
17
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2
18
 
3
19
  source "https://rubygems.org"
4
20
 
21
+ plugin "rubygems-requirements-system"
22
+
5
23
  gemspec
24
+
25
+ group :development, :docs, :test do
26
+ gem "bundler"
27
+ gem "rake"
28
+ gem "open-uri"
29
+ end
30
+
31
+ group :docs do
32
+ gem "jekyll"
33
+ end
34
+
35
+ group :test do
36
+ gem "test-unit"
37
+ end
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2008-2023 Kouhei Sutou <kou@cozmixng.org>
3
+ # Copyright (C) 2008-2025 Kouhei Sutou <kou@cozmixng.org>
4
4
  #
5
5
  # This program is free software; you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
@@ -17,17 +17,17 @@
17
17
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
18
 
19
19
  require "find"
20
- require "rubygems"
21
- require "rubygems/package_task"
20
+ require "open-uri"
21
+ require "tmpdir"
22
+
22
23
  require "bundler/gem_helper"
23
24
  require "gettext/tools/task"
24
25
 
25
26
  task :default => :test
26
27
 
27
28
  base_dir = File.expand_path(File.dirname(__FILE__))
28
- $LOAD_PATH.unshift(File.join(base_dir, 'lib'))
29
29
 
30
- rsync_local_path = "~/public_html/"
30
+ rsync_local_path = ENV["LOCAL_DESTINATION_PATH"] || "~/public_html/"
31
31
  rsync_base_path = "rabbit@rabbit-shocker.org:#{rsync_local_path}"
32
32
 
33
33
  helper = Bundler::GemHelper.new(base_dir)
@@ -36,24 +36,19 @@ def helper.version_tag
36
36
  end
37
37
 
38
38
  helper.install
39
- spec = helper.gemspec
40
- version = spec.version.to_s
41
-
42
- def force_array(enumerable)
43
- array = []
44
- enumerable.each do |element|
45
- array << element
46
- end
47
- array
48
- end
49
39
 
50
- def spec.files
51
- @files = force_array(super)
40
+ release_task = Rake.application["release"]
41
+ # We use Trusted Publishing.
42
+ release_task.prerequisites.delete("build")
43
+ release_task.prerequisites.delete("release:rubygem_push")
44
+ release_task_comment = release_task.comment
45
+ if release_task_comment
46
+ release_task.clear_comments
47
+ release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
52
48
  end
53
49
 
54
- def spec.extra_rdoc_files
55
- @extra_rdoc_files = force_array(super)
56
- end
50
+ spec = helper.gemspec
51
+ version = spec.version.to_s
57
52
 
58
53
  GetText::Tools::Task.define do |task|
59
54
  task.spec = spec
@@ -62,10 +57,6 @@ GetText::Tools::Task.define do |task|
62
57
  task.mo_base_directory = "data/locale"
63
58
  end
64
59
 
65
- Gem::PackageTask.new(spec) do |package|
66
- package.need_tar_gz = true
67
- end
68
-
69
60
  rule '.png' => ['.svg'] do |t|
70
61
  sh("inkscape", "--export-png", t.name, t.source)
71
62
  end
@@ -87,10 +78,46 @@ namespace :entity do
87
78
  end
88
79
  end
89
80
 
81
+ languages = ["ja", "en"]
82
+ related_products = [
83
+ "rabwii",
84
+ "rabbirack",
85
+ ]
86
+ related_product_paths = []
87
+ related_products.each do |related_product|
88
+ related_product_directory = "../#{related_product}"
89
+ related_product_paths << related_product_directory
90
+ directory related_product_directory do
91
+ sh("git",
92
+ "clone",
93
+ "https://github.com/rabbit-shocker/#{related_product}.git",
94
+ related_product_directory)
95
+ end
96
+
97
+ languages.each do |language|
98
+ related_product_link = "doc/#{language}/#{related_product}"
99
+ related_product_paths << related_product_link
100
+ file related_product_link do
101
+ sh("ln",
102
+ "-s",
103
+ "../../../#{related_product}/doc/#{language}",
104
+ related_product_link)
105
+ end
106
+ end
107
+ end
108
+
109
+ namespace :doc do
110
+ desc "Run documentation server"
111
+ task :server => related_product_paths do
112
+ Dir.chdir("doc") do
113
+ sh("jekyll", "server", "--watch")
114
+ end
115
+ end
116
+ end
117
+
90
118
  namespace :html do
91
119
  screenshots = []
92
120
 
93
- languages = ["ja", "en"]
94
121
  languages.each do |lang|
95
122
  screenshots_dir = "doc/images/screenshots/#{lang}"
96
123
  directory screenshots_dir
@@ -153,7 +180,7 @@ EOC
153
180
  end
154
181
 
155
182
  desc "generate HTML and needed files."
156
- task :generate => screenshots do
183
+ task :generate => related_product_paths + screenshots do
157
184
  Dir.chdir("doc") do
158
185
  rm_rf("_site")
159
186
  ruby("-S", "jekyll", "build")
@@ -162,24 +189,67 @@ EOC
162
189
 
163
190
  namespace :publish do
164
191
  dependencies = ["html:generate"]
165
- rsync_command_line = [
166
- "rsync", "-avz", "--delete",
167
- "--exclude", "*.svn",
192
+ exclude_paths = [
168
193
  "--exclude", "*-raw.png",
169
194
  "--exclude", "*.svg",
170
195
  "--exclude", "*.rab",
171
196
  "--exclude", "/download/",
172
197
  "--exclude", "/samples/",
173
- "doc/_site/",
174
198
  ]
175
199
  desc "publish HTML to remote."
176
- task :remote => dependencies do
177
- sh(*(rsync_command_line + [rsync_base_path]))
200
+ task :remote do
201
+ Dir.mktmpdir do |dir|
202
+ chdir(dir) do
203
+ if (ENV["USE_RELEASE"] || "yes") == "yes"
204
+ url = "https://github.com/rabbit-shocker/rabbit/releases/download/" +
205
+ "#{version}/docs.tar.gz"
206
+ URI.open(url) do |response|
207
+ File.open("docs.tar.gz", "wb") do |output|
208
+ IO.copy_stream(response, output)
209
+ end
210
+ end
211
+ else
212
+ workflow_id = IO.pipe do |input, output|
213
+ sh("gh",
214
+ "run",
215
+ "list",
216
+ "--jq", ".[].databaseId",
217
+ "--json", "databaseId",
218
+ "--limit", "1",
219
+ "--repo", "rabbit-shocker/rabbit",
220
+ "--status", "success",
221
+ "--workflow", "release.yaml",
222
+ out: output)
223
+ output.close
224
+ input.read.chomp
225
+ end
226
+ sh("gh",
227
+ "run",
228
+ "download",
229
+ "--repo", "rabbit-shocker/rabbit",
230
+ workflow_id)
231
+ mv("docs/docs.tar.gz", "./")
232
+ end
233
+ sh("tar", "xf", "docs.tar.gz")
234
+ sh("rsync",
235
+ "-avz",
236
+ # "--delete",
237
+ # "--dry-run",
238
+ *exclude_paths,
239
+ "docs/",
240
+ rsync_base_path)
241
+ end
242
+ end
178
243
  end
179
244
 
180
245
  desc "publish HTML to local."
181
246
  task :local => dependencies do
182
- sh(*(rsync_command_line + [File.expand_path(rsync_local_path)]))
247
+ sh("rsync",
248
+ "-avz",
249
+ "--delete",
250
+ *exclude_paths,
251
+ "doc/_site/",
252
+ File.expand_path(rsync_local_path))
183
253
  end
184
254
  end
185
255
  end
@@ -187,7 +257,7 @@ end
187
257
  task :update do
188
258
  update_command = ["git", "pull", "--quiet", "--rebase"]
189
259
  sh(*update_command)
190
- related_projects = ["rabbirack", "rabbiter", "rabwii"]
260
+ related_projects = ["rabbirack", "rabwii"]
191
261
  related_projects.each do |project|
192
262
  project_dir = "../#{project}"
193
263
  next unless File.exist?(project_dir)
@@ -200,26 +270,6 @@ end
200
270
  task :build => "gettext"
201
271
  task :package => "gettext"
202
272
 
203
- namespace :package do
204
- desc "Upload tar.gz."
205
- task :upload => :package do
206
- htaccess = ".htaccess"
207
- rabbit_tar_gz = "rabbit.tar.gz"
208
- current_rabbit_tar_gz = "rabbit-#{version}.tar.gz"
209
- File.open(htaccess, "w") do |file|
210
- file.puts("Options +Indexes +FollowSymlinks")
211
- end
212
- ln_s(current_rabbit_tar_gz, rabbit_tar_gz)
213
- sh("rsync", "-avz",
214
- htaccess,
215
- rabbit_tar_gz,
216
- "pkg/#{current_rabbit_tar_gz}",
217
- "#{rsync_base_path}download/")
218
- rm(rabbit_tar_gz)
219
- rm(htaccess)
220
- end
221
- end
222
-
223
273
  namespace :github do
224
274
  namespace :post_receiver do
225
275
  desc "Restart GitHub POST receiver"
@@ -233,29 +283,3 @@ desc "Run test"
233
283
  task :test do
234
284
  ruby("test/run-test.rb")
235
285
  end
236
-
237
- namespace :doc do
238
- related_products = [
239
- "rabwii",
240
- "rabbirack",
241
- "rabbiter",
242
- ]
243
- related_product_directories = []
244
- related_products.each do |related_product|
245
- related_product_directory = "../#{related_product}"
246
- related_product_directories << related_product_directory
247
- directory related_product_directory do
248
- sh("git",
249
- "clone",
250
- "https://github.com/rabbit-shocker/#{related_product}.git",
251
- related_product_directory)
252
- end
253
- end
254
-
255
- desc "Run documentation server"
256
- task :server => related_product_directories do
257
- Dir.chdir("doc") do
258
- sh("jekyll", "server", "--watch")
259
- end
260
- end
261
- end
Binary file
data/doc/_config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  markdown: kramdown
2
- version: 3.0.3
3
- release_date: 2023-07-02
2
+ version: 3.0.5
3
+ release_date: 2025-03-30
4
4
  rabbiter_version: 2.0.3
5
5
  rabbiter_release_date: 2016-08-21
6
6
  rabbirack_version: 2.0.0
@@ -40,8 +40,34 @@ title page.
40
40
  This example shows the author is Kouhei Sutou and his
41
41
  institution is COZMIXNG.
42
42
 
43
- At the moment, you can specify subtitle, content_source and
44
- even the theme. "theme" is for the default theme of this slide.
43
+ Available attributes are:
44
+
45
+ * author
46
+
47
+ * institution
48
+
49
+ * subtitle
50
+
51
+ * content_source
52
+
53
+ * date
54
+
55
+ * start_time
56
+
57
+ * end_time
58
+
59
+ * allotted_time
60
+
61
+ The default allotted time in presentation. Used if not
62
+ specified when starting Rabbit. If both `start_time`
63
+ and `end_time` are specified, no need to specify
64
+ `allotted_time` as it will be calculated from those
65
+ attributes.
66
+
67
+ * theme
68
+
69
+ The default theme of this slide. Used if not specified
70
+ when starting Rabbit.
45
71
 
46
72
  ### Emphasis
47
73
 
@@ -41,8 +41,34 @@ title page.
41
41
  This example shows the author is Kouhei Sutou and his
42
42
  institution is COZMIXNG.
43
43
 
44
- At the moment, you can specify subtitle, content_source and
45
- even the theme. "theme" is for the default theme of this slide.
44
+ Available attributes are:
45
+
46
+ * author
47
+
48
+ * institution
49
+
50
+ * subtitle
51
+
52
+ * content_source
53
+
54
+ * date
55
+
56
+ * start_time
57
+
58
+ * end_time
59
+
60
+ * allotted_time
61
+
62
+ The default allotted time in presentation. Used if not
63
+ specified when starting Rabbit. If both (({start_time}))
64
+ and (({end_time})) are specified, no need to specify
65
+ (({allotted_time})) as it will be calculated from those
66
+ attributes.
67
+
68
+ * theme
69
+
70
+ The default theme of this slide. Used if not specified
71
+ when starting Rabbit.
46
72
 
47
73
  == Image
48
74
 
@@ -15,23 +15,8 @@ This document describes how to install Rabbit with Homebrew and RubyGems on macO
15
15
 
16
16
  Follow the instruction on ((<URL:https://brew.sh>)).
17
17
 
18
- === Install softwares Rabbit needs
19
-
20
- $ brew install cairo
21
- $ brew install pango
22
- $ brew install gtk+
23
- $ brew install gobject-introspection
24
- $ brew install poppler
25
-
26
18
  === Install Rabbit
27
19
 
28
20
  Exec gem install.
29
21
 
30
22
  $ gem install rabbit
31
- $ gem install rabbiter # If you want to use Twitter related features
32
-
33
- === Set environment variable
34
-
35
- Add the following to your ~/.bach_login or ~/.zshenv:
36
-
37
- export DYLD_LIBRARY_PATH=/usr/local/opt/cairo/lib
data/doc/en/news.rd CHANGED
@@ -4,6 +4,87 @@ title: News
4
4
  ---
5
5
  {% raw %}
6
6
 
7
+ == 3.0.5: 2025-03-30
8
+
9
+ === Improvements
10
+
11
+ ==== rabbit
12
+
13
+ * Improved source content detection.
14
+ * ((<GH-172|URL:https://github.com/rabbit-shocker/rabbit/issues/172>))
15
+ * Reported by NAITOH Jun
16
+
17
+ === Thanks
18
+
19
+ * NAITOH Jun
20
+
21
+ == 3.0.4: 2025-03-23
22
+
23
+ === Improvements
24
+
25
+ ==== Documentation
26
+
27
+ * Added metadata for title slide.
28
+ * ((<GH-165|URL:https://github.com/rabbit-shocker/rabbit/issues/165>))
29
+ * Patch by makicamel
30
+
31
+ ==== rabbit
32
+
33
+ * Draw: Added support for dash.
34
+
35
+ * Highlight: Dropped support for highlighting by Emacs.
36
+
37
+ * RD: Added support for Font Awesome.
38
+
39
+ * Chart: Added support for
40
+ ((<Charty|URL:https://github.com/red-data-tools/charty>))
41
+
42
+ * Info window: Changed to set color explicitly.
43
+
44
+ * Removed NKF dependency.
45
+
46
+ * Added support for Ruby 3.4.
47
+ * ((<GH-170|URL:https://github.com/rabbit-shocker/rabbit/issues/170>))
48
+ * Patch by HASUMI Hitoshi
49
+
50
+ * Dropped support for Clutter.
51
+
52
+ * GL: Removed methods that render build-in 3D objects.
53
+
54
+ === Fixes
55
+
56
+ ==== All
57
+
58
+ * Fixed typos.
59
+ * ((<GH-159|URL:https://github.com/rabbit-shocker/rabbit/issues/159>))
60
+ * Patch by kojix2
61
+
62
+ ==== Docs
63
+
64
+ * Fixed the default public level.
65
+ * ((<GH-162|URL:https://github.com/rabbit-shocker/rabbit/issues/162>))
66
+ * Patch by makicamel
67
+
68
+ ==== rabbit
69
+
70
+ * Fixed a bug that timer isn't reset by ((%Alt+t%)).
71
+ * ((<GH-158|URL:https://github.com/rabbit-shocker/rabbit/issues/158>))
72
+ * Reported by Kingdon Barrett
73
+
74
+ * dRuby: Fixed a crash bug with slide move operations on macOS.
75
+ * ((<GH-161|URL:https://github.com/rabbit-shocker/rabbit/issues/161>))
76
+ * Reported by makicamel
77
+
78
+ === Thanks
79
+
80
+ * Kingdon Barrett
81
+
82
+ * kojix2
83
+
84
+ * makicamel
85
+
86
+ * HASUMI Hitoshi
87
+
7
88
  == 3.0.3: 2023-07-02
8
89
 
9
90
  Minor bug fix release.
@@ -163,7 +163,7 @@ A presentation tool
163
163
  :relative_margin_right => -5,
164
164
  })}}
165
165
 
166
- * Right justified backgorund image
166
+ * Right justified background image
167
167
  * Specify in slide
168
168
  ** :align => "right"
169
169
 
@@ -148,7 +148,7 @@ background-image-relative-margin-right
148
148
 
149
149
  ![](lavie.png){:relative_width="30" align="right" relative_margin_right="-5"}
150
150
 
151
- * Right justified backgorund image
151
+ * Right justified background image
152
152
  * Specify in slide
153
153
  * \{:align="right"\}
154
154
 
@@ -171,7 +171,7 @@ title: "Sample slide: Rabbit"
171
171
  # # vertical-align = top
172
172
  # relative-margin-right = -5
173
173
 
174
- * Right justified backgorund image
174
+ * Right justified background image
175
175
  * Specify in slide
176
176
  * align = right
177
177
 
@@ -95,7 +95,7 @@ You can confirm all patermeters by ((%--help%)):
95
95
  --tags=TAG,TAG,... Tags of the new slide
96
96
  (e.g.: --tags=rabbit,presentation,ruby)
97
97
  (optional)
98
- --allotted-time=TIME Allotted time in presentaion
98
+ --allotted-time=TIME Allotted time in presentation
99
99
  (e.g.: --allotted-time=5m)
100
100
  (optional)
101
101
  --presentation-date=DATE Presentation date with the new slide
@@ -333,7 +333,7 @@ with the following.
333
333
  change-source, source and all. The later the public level
334
334
  indicates that Rabbit publishes more functions.
335
335
 
336
- Default is strict.
336
+ Default is all.
337
337
 
338
338
  : --comment-source=FILE
339
339
  Specifies initial comment source file name.
@@ -43,12 +43,32 @@ title: Markdown記法でのスライドの作り方
43
43
  この例では、作者が須藤功平で、所属がCOZMIXNGであるということ
44
44
  を示しています。
45
45
 
46
- 現在のところ、authorとinstitution以外にsubtitle、
47
- content_source、themeというメタ情報が指定できます。themeは、
48
- Rabbitを起動するときにテーマが指定されなかった場合に使用され
49
- るテーマになります。
46
+ 以下の属性が指定可能です:
50
47
 
51
- TODO: 他にもメタデータが増えているはず。
48
+ * author
49
+
50
+ * institution
51
+
52
+ * subtitle
53
+
54
+ * content_source
55
+
56
+ * date
57
+
58
+ * start_time
59
+
60
+ * end_time
61
+
62
+ * allotted_time
63
+
64
+ プレゼンの持ち時間です。Rabbitを起動するときに指定しなかった場合に
65
+ 使用されます。`start_time`と`end_time`を両方指定している
66
+ 場合はそれらの属性から計算されるため、`allotted_time`を指定する
67
+ 必要はありません。
68
+
69
+ * theme
70
+
71
+ テーマです。Rabbitを起動するときに指定しなかった場合に使用されます。
52
72
 
53
73
  ### 強調
54
74
 
@@ -41,12 +41,32 @@ RDではマークアップの使い方が通常の文書の場合と異なりま
41
41
  この例では、作者が須藤功平で、所属がCOZMIXNGであるということ
42
42
  を示しています。
43
43
 
44
- 現在のところ、authorとinstitution以外にsubtitle、
45
- content_source、themeというメタ情報が指定できます。themeは、
46
- Rabbitを起動するときにテーマが指定されなかった場合に使用され
47
- るテーマになります。
44
+ 以下の属性が指定可能です:
48
45
 
49
- TODO: 他にもメタデータが増えているはず。
46
+ * author
47
+
48
+ * institution
49
+
50
+ * subtitle
51
+
52
+ * content_source
53
+
54
+ * date
55
+
56
+ * start_time
57
+
58
+ * end_time
59
+
60
+ * allotted_time
61
+
62
+ プレゼンの持ち時間です。Rabbitを起動するときに指定しなかった場合に
63
+ 使用されます。(({start_time}))と(({end_time}))を両方指定している
64
+ 場合はそれらの属性から計算されるため、(({allotted_time}))を指定する
65
+ 必要はありません。
66
+
67
+ * theme
68
+
69
+ テーマです。Rabbitを起動するときに指定しなかった場合に使用されます。
50
70
 
51
71
  === 画像
52
72
 
@@ -16,23 +16,8 @@ Rabbit をインストール、利用する手順について説明します。
16
16
 
17
17
  ((<URL:https://brew.sh/>)) に記載の方法に従ってインストールしてください。
18
18
 
19
- ==== brew install の実行
20
-
21
- $ brew install cairo
22
- $ brew install pango
23
- $ brew install gtk+
24
- $ brew install gobject-introspection
25
- $ brew install poppler
26
-
27
19
  === Rabbit のインストール
28
20
 
29
21
  gem install を実行します。
30
22
 
31
23
  $ sudo gem install rabbit
32
- $ sudo gem install rabbiter # Twitter連携機能を使う場合
33
-
34
- === 環境変数の設定
35
-
36
- ~/.bash_loginあるいは~/.zshenvで以下のようにDYLD_LIBRARY_PATH環境変数を設定します。
37
-
38
- export DYLD_LIBRARY_PATH=/usr/local/opt/cairo/lib