rabbit 1.0.9 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/GPL +19 -20
  2. data/Rakefile +25 -10
  3. data/bin/rabbit +20 -844
  4. data/bin/rabbit-command +25 -36
  5. data/bin/rabbit-slide +22 -0
  6. data/bin/rabbit-theme +22 -0
  7. data/bin/rabbit-theme-manager +30 -30
  8. data/data/account.kou.gpg +0 -0
  9. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  10. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  11. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  12. data/doc/_config.yml +8 -0
  13. data/doc/_includes/en.menu.html +8 -0
  14. data/doc/_includes/ja.menu.html +8 -0
  15. data/doc/_layouts/en.html +19 -16
  16. data/doc/_layouts/ja.html +19 -16
  17. data/doc/_plugins/converters/rd.rb +1 -1
  18. data/doc/_plugins/support_symlink.rb +11 -0
  19. data/doc/en/development.rd +2 -2
  20. data/doc/en/how-to-make/index.rd +5 -5
  21. data/doc/en/how-to-make/rd.rd +1 -1
  22. data/doc/en/index.rd +6 -12
  23. data/doc/en/sample/index.rd +3 -3
  24. data/doc/en/slides.rd +2 -0
  25. data/doc/en/usage.rd +14 -356
  26. data/doc/en/usage/rabbit.rd +360 -0
  27. data/doc/en/users.rd +3 -1
  28. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  29. data/doc/images/screenshots/en/blue-circle.png +0 -0
  30. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  31. data/doc/images/screenshots/en/clear-blue.png +0 -0
  32. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  33. data/doc/images/screenshots/en/cozmixng.png +0 -0
  34. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  35. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  36. data/doc/images/screenshots/en/day-white.png +0 -0
  37. data/doc/images/screenshots/en/debian-raw.png +0 -0
  38. data/doc/images/screenshots/en/debian.png +0 -0
  39. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  40. data/doc/images/screenshots/en/green-circle.png +0 -0
  41. data/doc/images/screenshots/en/night-black.png +0 -0
  42. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  43. data/doc/images/screenshots/en/rabbit.png +0 -0
  44. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  45. data/doc/images/screenshots/en/ranguba.png +0 -0
  46. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  47. data/doc/images/screenshots/en/red-frame.png +0 -0
  48. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  49. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  50. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  51. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  52. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  53. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  54. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  55. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  56. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  57. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  58. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  59. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  60. data/doc/images/screenshots/ja/day-white.png +0 -0
  61. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  62. data/doc/images/screenshots/ja/debian.png +0 -0
  63. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  64. data/doc/images/screenshots/ja/green-circle.png +0 -0
  65. data/doc/images/screenshots/ja/night-black.png +0 -0
  66. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  67. data/doc/images/screenshots/ja/rabbit.png +0 -0
  68. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  69. data/doc/images/screenshots/ja/ranguba.png +0 -0
  70. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  71. data/doc/images/screenshots/ja/red-frame.png +0 -0
  72. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  73. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  74. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  75. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  76. data/doc/index.html.en +1 -1
  77. data/doc/index.html.ja +1 -1
  78. data/doc/ja/about.rd +3 -3
  79. data/doc/ja/development.rd +2 -2
  80. data/doc/ja/how-to-make/index.rd +5 -5
  81. data/doc/ja/index.rd +10 -16
  82. data/doc/ja/install/macports.rd +1 -1
  83. data/doc/ja/news.rd +4 -4
  84. data/doc/ja/sample/index.rd +3 -3
  85. data/doc/ja/usage.rd +13 -358
  86. data/doc/ja/usage/rabbit.rd +362 -0
  87. data/doc/ja/users.rd +1 -1
  88. data/lib/rabbit/action.rb +2 -2
  89. data/lib/rabbit/author-configuration.rb +73 -0
  90. data/lib/rabbit/canvas.rb +0 -14
  91. data/lib/rabbit/command/rabbit-slide.rb +571 -0
  92. data/lib/rabbit/command/rabbit-theme.rb +381 -0
  93. data/lib/rabbit/command/rabbit.rb +898 -0
  94. data/lib/rabbit/config.rb +40 -0
  95. data/lib/rabbit/console.rb +124 -55
  96. data/lib/rabbit/gem-finder.rb +61 -0
  97. data/lib/rabbit/gettext.rb +6 -79
  98. data/lib/rabbit/html/generator.rb +1 -0
  99. data/lib/rabbit/image.rb +1 -1
  100. data/lib/rabbit/logger.rb +12 -2
  101. data/lib/rabbit/logger/base.rb +33 -32
  102. data/lib/rabbit/logger/stderr.rb +1 -1
  103. data/lib/rabbit/menu.rb +1 -1
  104. data/lib/rabbit/parser.rb +2 -0
  105. data/lib/rabbit/parser/ext/image.rb +14 -20
  106. data/lib/rabbit/path-manipulatable.rb +40 -0
  107. data/lib/rabbit/rabbit.rb +18 -8
  108. data/lib/rabbit/renderer/base.rb +3 -4
  109. data/lib/rabbit/renderer/color.rb +0 -1
  110. data/lib/rabbit/slideshare.rb +116 -0
  111. data/lib/rabbit/source/base.rb +1 -1
  112. data/lib/rabbit/stock.rb +1 -1
  113. data/lib/rabbit/task.rb +18 -0
  114. data/lib/rabbit/task/slide.rb +162 -0
  115. data/lib/rabbit/task/theme.rb +122 -0
  116. data/lib/rabbit/theme-browser/tree.rb +1 -1
  117. data/lib/rabbit/theme/applier.rb +9 -0
  118. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +1 -2
  119. data/lib/rabbit/theme/blue-bar/blue-bar.rb +0 -11
  120. data/lib/rabbit/theme/clear-blue/clear-blue.rb +0 -11
  121. data/lib/rabbit/theme/cozmixng/cozmixng.rb +0 -11
  122. data/lib/rabbit/theme/day-white/day-white.rb +0 -6
  123. data/lib/rabbit/theme/default/default.rb +7 -1
  124. data/lib/rabbit/theme/enishi-green/property.rb +2 -2
  125. data/lib/rabbit/theme/entry.rb +85 -27
  126. data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +4 -1
  127. data/lib/rabbit/theme/lightning-monochrome/lightning-monochrome.rb +0 -1
  128. data/lib/rabbit/theme/lightning-simple/lightning-simple.rb +0 -1
  129. data/lib/rabbit/theme/nari/nari.rb +6 -16
  130. data/lib/rabbit/theme/nari/property.rb +3 -0
  131. data/lib/rabbit/theme/night-black/night-black.rb +0 -6
  132. data/lib/rabbit/theme/pdf/pdf.rb +0 -4
  133. data/lib/rabbit/theme/rabbit/rabbit.rb +0 -6
  134. data/lib/rabbit/theme/ranguba/ranguba.rb +0 -12
  135. data/lib/rabbit/theme/ruby-gnome2/ruby-gnome2.rb +7 -4
  136. data/lib/rabbit/theme/rubykaigi2011/rubykaigi2011.rb +2 -9
  137. data/lib/rabbit/theme/searcher.rb +38 -16
  138. data/lib/rabbit/theme/syntax-highlighting/property.rb +2 -2
  139. data/lib/rabbit/version.rb +19 -0
  140. data/po/en/rabbit.po +1605 -1425
  141. data/po/fr/rabbit.po +1756 -1684
  142. data/po/ja/rabbit.po +2198 -2097
  143. data/po/rabbit.pot +1556 -1419
  144. metadata +34 -100
  145. data/bin/rabbirack +0 -99
  146. data/bin/rabbiter +0 -108
  147. data/bin/rabrick +0 -95
  148. data/bin/rabwii +0 -77
  149. data/lib/rabbit/default-config.rb +0 -24
  150. data/lib/rabbit/div/comment-i.erb +0 -7
  151. data/lib/rabbit/div/comment.erb +0 -45
  152. data/lib/rabbit/div/css.erb +0 -1
  153. data/lib/rabbit/div/js.erb +0 -1
  154. data/lib/rabbit/div/log.erb +0 -5
  155. data/lib/rabbit/div/main-i.erb +0 -24
  156. data/lib/rabbit/div/main.css +0 -40
  157. data/lib/rabbit/div/main.erb +0 -33
  158. data/lib/rabbit/div/navi-i.erb +0 -6
  159. data/lib/rabbit/div/navi.erb +0 -6
  160. data/lib/rabbit/div/prototype.js +0 -4320
  161. data/lib/rabbit/div/slide-i.erb +0 -2
  162. data/lib/rabbit/div/slide.erb +0 -5
  163. data/lib/rabbit/div/tofu.rb +0 -309
  164. data/lib/rabbit/middleware/config.ru +0 -42
  165. data/lib/rabbit/middleware/controller.rb +0 -63
  166. data/lib/rabbit/middleware/public/stylesheets/rabbirack.css +0 -12
  167. data/lib/rabbit/middleware/views/index.haml +0 -13
  168. data/lib/rabbit/middleware/views/layout.haml +0 -8
  169. data/lib/rabbit/post-setup.rb +0 -8
  170. data/lib/rabbit/pre-clean.rb +0 -2
  171. data/lib/rabbit/pre-distclean.rb +0 -2
  172. data/lib/rabbit/theme/twitter-comment/property.rb +0 -4
  173. data/lib/rabbit/theme/twitter-comment/twitter-comment.rb +0 -15
  174. data/lib/rabbit/twitter.rb +0 -239
  175. data/sample/theme-bench-en.hiki +0 -100
  176. data/sample/theme-bench-en.rab +0 -127
  177. data/sample/theme-bench.hiki +0 -101
  178. data/sample/theme-bench.rab +0 -128
  179. data/setup.rb +0 -1585
  180. data/update-mo.rb +0 -20
  181. data/update-po.rb +0 -57
@@ -0,0 +1,360 @@
1
+ ---
2
+ layout: en
3
+ title: rabbit command usage
4
+ ---
5
+ == Run methods
6
+
7
+ Rabbit can be ran via command line or command launcher, double click
8
+ on Windows. Both of them use ((%rabbit%)) command.
9
+
10
+ == Command line
11
+
12
+ You need to specify a file that has slide source when you
13
+ run Rabbit via command line.
14
+
15
+ % rabbit XXX.rd
16
+
17
+ or
18
+
19
+ % rabbit --type file XXX.rd
20
+
21
+ or ...
22
+
23
+ Type the following if you want to run sample/rabbit_en.rd.
24
+
25
+ % rabbit --type file sample/rabbit_en.rd
26
+
27
+ However, some samples use themes in sample/rabbit/theme and
28
+ are not displayed correctly when run from the top directory.
29
+ It's better to run the samples from the sample directory.
30
+
31
+ If you are a Windows user, you can drag and drop an RD file
32
+ onto bin/rabbit.bat.
33
+
34
+ Otherwise you can invoke Rabbit by double clicking an RD file if
35
+ you associate *.rd (or *.rab (an abbreviation of Rabbit))
36
+ with the following.
37
+
38
+ <ruby install folder>\bin\rubyw -S rabbit
39
+
40
+ === Options
41
+
42
+ : -t, --theme=THEME
43
+ Specifies the theme.
44
+
45
+ : -I, --include=PATH
46
+ Adds PATH to the load path. Load paths are used to find themes.
47
+
48
+ : --comment-theme=THEME
49
+ Specifies the comment theme. Available themes are
50
+ footer-comment (default) that shows comments in the
51
+ footer and stream-comment that streams comments on
52
+ slides.
53
+
54
+ : --allotted-time=TIME
55
+ Specifies allotted time for presentation. It overrides
56
+ allotted time specified in title slide.
57
+
58
+ : -B, --base=BASE
59
+ Specifies the URI or path to resolve relative paths in the
60
+ input. (For example, the path of image). If you don't
61
+ specify it, it'll automatically decide based on the input
62
+ source type.
63
+
64
+ : -T, --type=TYPE
65
+ Specifies the input source type.
66
+
67
+ Available types are file (default), argf and uri .
68
+
69
+ : argf
70
+
71
+ Uses ARGF as input source. This means, you can
72
+ input via standard input.
73
+
74
+ Note: argf doesn't support the auto source reload feature.
75
+
76
+ Example:
77
+ % rabbit --type argf file1.rd file2.rd ...
78
+ or
79
+ % cat file1.rd file2.rd ... | rabbit --type argf
80
+ or
81
+ % rabbit --type argf
82
+ = title
83
+ ...
84
+ ^D
85
+ or...
86
+
87
+ : file
88
+
89
+ Default. This means, `--type argf' is optional.
90
+
91
+ Gets source from specified file.
92
+
93
+ Supports the auto source reload feature.
94
+
95
+ Example:
96
+ % rabbit --type file file.rd
97
+
98
+ : uri
99
+
100
+ Gets source from the specified URI.
101
+
102
+ You can use the auto source reload feature. But
103
+ Rabbit will only reload once every 60 seconds for
104
+ performance reasons.
105
+
106
+ Example:
107
+ % rabbit --type uri http://www.cozmixng.org/repos/rabbit/trunk/sample/rabbit-implementation.rd
108
+ or
109
+ % rabbit --type uri ftp://.../XXX.rd
110
+ or ...
111
+
112
+ Incidentally,
113
+ % rabbit --type uri file:///.../XXX.rd
114
+ and
115
+ % rabbit --type uri /.../XXX.rd
116
+ are same as
117
+ % rabbit --type file /.../XXX.rd
118
+
119
+
120
+ : memory
121
+
122
+ Manage the source in memory. In this type, the source
123
+ can be modified by the dRuby/SOAP/etc. interfaces.
124
+
125
+ You can set initial source by specifying a file name.
126
+
127
+ Example (without initial source):
128
+ % rabbit --type memory
129
+
130
+ Example (with initial source):
131
+ % rabbit --type memory file.rd
132
+
133
+ : -e, --encoding=ENCODING
134
+ Specifies encoding of the input source.
135
+
136
+ Default is auto-detect.
137
+
138
+ : -f, --full-screen, --no-f, --no-full-screen
139
+ Specifies whether Rabbit is invoked in full screen mode.
140
+
141
+ Default is no.
142
+
143
+ : --index-mode, --no-index-mode
144
+ Specifies whether Rabbit is invoked in index mode.
145
+
146
+ Default is no.
147
+
148
+ : -w, --width=WIDTH
149
+ Specifies the width of the window.
150
+
151
+ Default is 800.
152
+
153
+ : -h, --height=HEIGHT
154
+ Specifies the height of the window.
155
+
156
+ Default is 600.
157
+
158
+ : -S, --size=WIDTH,HEIGHT
159
+ Specifies the width and height of the window.
160
+
161
+ : -s, --save-as-image
162
+ Saves each slide as image and exit.
163
+
164
+ : -i, --saved-image-type=TYPE
165
+ Specifies image type to save as.
166
+
167
+ For example, png (default), jpeg etc.
168
+
169
+ : -b, --saved-image-base-name=BASE_NAME
170
+ Specifies base name of the saved image. Saved image's
171
+ file name is "#{base name}#{page number}.#{extension}".
172
+
173
+ Default is the title of the slide.
174
+
175
+ If the encoding of your file system isn't UTF-8 and the
176
+ saved filename is UTF-8, you may need to setup an
177
+ environment variable such as LANG and
178
+ G_FILENAME_ENCODING.
179
+
180
+ : --output-html, --no-output-html
181
+ Specifies whether Rabbit generates HTML or not for
182
+ viewing saved slides.
183
+
184
+ Default is off.
185
+
186
+ : --output-index-html, --no-output-index-html
187
+ Specifies whether Rabbit generates an index HTML file
188
+ with thumbnailed slides or not.
189
+
190
+ Default is off.
191
+
192
+ : -p, --print
193
+ Prints slide and exit. You can print to file or directory
194
+ send printer by using --output-filename.
195
+
196
+ But the quality is not good.
197
+
198
+ : -o, --output-filename=FILENAME
199
+ Specifies printed file name. Printed format is decided by
200
+ the extension. The printed format is PostScript when the
201
+ extension is .ps, PDF when extension is .pdf and
202
+ PostScript otherwise.
203
+
204
+ You can send the output formatted by PostScript to a
205
+ program by specifying "|program-name".
206
+
207
+ Default is "#{title of slide}.ps".
208
+
209
+ : --paper-width=WIDTH
210
+ Specifies the width (in inches) of the paper when printing.
211
+
212
+ Default is the width of landscape A4.
213
+
214
+ : --paper-height=HEIGHT
215
+ Specifies the height (in inches) of the paper when printing.
216
+
217
+ Default is the height of landscape A4.
218
+
219
+ : --paper-size=WIDTH,HEIGHT
220
+ Specifies the width and height of the paper when printing.
221
+ The width and height is in inches.
222
+
223
+ Default is the size of landscape A4.
224
+
225
+ : --slides-per-page=SLIDES
226
+ Specifies slides per page.
227
+
228
+ Default is 1.
229
+
230
+ : --margin=={ALL|TOP_BOTTOM,LEFT_RIGHT|TOP,LEFT_RIGHT,BOTTOM|TOP,RIGHT,BOTTOM,LEFT}, --margin-*=MARGIN
231
+ Specifies margin of slide when slides per margin is
232
+ greater than 1.
233
+
234
+ Default is automatically computed by using slides per
235
+ page. But the algorithm doesn't work very well when
236
+ the slides per page is anything other than 2 or 8.
237
+
238
+ : --page-margin=={ALL|TOP_BOTTOM,LEFT_RIGHT|TOP,LEFT_RIGHT,BOTTOM|TOP,RIGHT,BOTTOM,LEFT}, --page-margin-*=MARGIN
239
+ Specifies page margin when printing.
240
+
241
+ Default is 0.
242
+
243
+ : --locale-dir=DIR
244
+ Specifies the directory which has the locale data (*.mo).
245
+ If you want to use Rabbit without installing to system,
246
+ you can type the following in the top directory.
247
+
248
+ % ruby -I./lib bin/rabbit --locale-dir data/locale sample/rabbit-en.rd
249
+
250
+ Default is /usr/local/share/locale/,
251
+ /usr/share/locale/ and so on.
252
+
253
+ : --logger-type=TYPE
254
+ Specifies how display the error log. If you specify `gui',
255
+ the error log is displayed. You should specify --logger-type
256
+ option because errors may occur when parsing rabbit's options.
257
+
258
+ % rabbit --logger-type gui ...
259
+
260
+ Default is stderr which outputs the log to standard error
261
+ output.
262
+
263
+ : --use-druby, --no-use-druby
264
+ Specifies whether to use dRuby interface.
265
+
266
+ Default is use.
267
+
268
+ : --druby-uri=URI
269
+ Specifies dRuby interface URI.
270
+
271
+ Default is druby://:10101.
272
+
273
+ : --output-druby-uri, --no-output-druby-uri
274
+ Specifies whether to output dRuby interface URI.
275
+
276
+ Default is not output.
277
+
278
+ : --use-soap, --no-use-soap
279
+ Specifies whether to use SOAP interface.
280
+
281
+ Default is not use.
282
+
283
+ : --soap-host=HOST
284
+ Specifies SOAP interface host.
285
+
286
+ Default is 0.0.0.0.
287
+
288
+ : --soap-port=PORT
289
+ Specifies SOAP interface port.
290
+
291
+ Default is 10103.
292
+
293
+ : --use-xmlrpc, --no-use-xmlrpc
294
+ Specifies whether to use XML-RPC interface.
295
+
296
+ Default is not use.
297
+
298
+ : --xmlrpc-host=HOST
299
+ Specifies XML-RPC interface host.
300
+
301
+ Default is 0.0.0.0.
302
+
303
+ : --xmlrpc-port=PORT
304
+ Specifies XML-RPC interface port.
305
+
306
+ Default is 10104.
307
+
308
+ : --server, --no-server
309
+ Specifies whether to run as server.
310
+
311
+ Default is not server.
312
+
313
+ : --public-level=LEVEL
314
+ Specifies what Rabbit functions are public to external
315
+ interfaces (dRuby/XML-RPC/SOAP). Select public level from
316
+ strict, move, read-size, change-size, size, read-source,
317
+ change-source, source and all. The later the public level
318
+ indicates that Rabbit publishes more functions.
319
+
320
+ Default is strict.
321
+
322
+ : --comment-source=FILE
323
+ Specifies initial comment source file name.
324
+
325
+ Default is simple comment source provided by system.
326
+
327
+ : --comment-encoding=ENCODING
328
+ Specifies comment source encoding.
329
+
330
+ Default is auto-detect.
331
+
332
+ : --migemo-dictionary-search-path=PATH1,PATH2,...
333
+ Specifies search paths for Migemo's static
334
+ dictionary. Search paths are specified as a directory
335
+ that has a static dictionary whose name is specified by
336
+ --migemo-dictionary-name or as a path of a static
337
+ dictionary. Two or more search paths can be specified by
338
+ separating them with commas.
339
+
340
+ Default is /usr/local/share and /usr/share.
341
+
342
+ : --migemo-dictionary-name=NAME
343
+ Specifies Migemo's static dictionary name.
344
+
345
+ Default is migemo-dict.
346
+
347
+ : --use-gl, --no-use-gl
348
+ Specifies whether to use OpenGL if available.
349
+
350
+ Default is not use.
351
+
352
+ : --show-native-window-id, --no-show-native-window-id
353
+ Specifies whether show window ID if available.
354
+
355
+ Default is not show.
356
+
357
+ == Launcher mode
358
+
359
+ Rabbit shows file chose dialog on no console
360
+ environment. Rabbit shows a slide what you chose.
data/doc/en/users.rd CHANGED
@@ -28,6 +28,8 @@ mail:
28
28
 
29
29
  == Members
30
30
 
31
- Please link your public slides at ((<slides.html/Slides>)) page.
31
+ Please link your public slides at ((<slides.rd/Slides>)) page.
32
32
 
33
+ * Ary Borenszweig
34
+ * ((<Review Semestral|URL:https://bitbucket.org/asterite/review_2012_h1>))
33
35
  * (Please add your name!)
Binary file
Binary file
Binary file
Binary file
Binary file