rabbit 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -1
  3. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  4. data/doc/_config.yml +2 -2
  5. data/doc/_layouts/skeleton.html +0 -7
  6. data/doc/en/install/homebrew.rd +8 -13
  7. data/doc/en/news.rd +67 -0
  8. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  9. data/doc/images/screenshots/en/blue-circle.png +0 -0
  10. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  11. data/doc/images/screenshots/en/clear-blue.png +0 -0
  12. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  13. data/doc/images/screenshots/en/cozmixng.png +0 -0
  14. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  15. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  16. data/doc/images/screenshots/en/day-white-raw.png +0 -0
  17. data/doc/images/screenshots/en/day-white.png +0 -0
  18. data/doc/images/screenshots/en/debian-raw.png +0 -0
  19. data/doc/images/screenshots/en/debian.png +0 -0
  20. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  21. data/doc/images/screenshots/en/green-circle.png +0 -0
  22. data/doc/images/screenshots/en/night-black-raw.png +0 -0
  23. data/doc/images/screenshots/en/night-black.png +0 -0
  24. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  25. data/doc/images/screenshots/en/rabbit.png +0 -0
  26. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  27. data/doc/images/screenshots/en/ranguba.png +0 -0
  28. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  29. data/doc/images/screenshots/en/red-frame.png +0 -0
  30. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  31. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  32. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  33. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  34. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  35. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  36. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  37. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  38. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  39. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  40. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  41. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  42. data/doc/images/screenshots/ja/day-white-raw.png +0 -0
  43. data/doc/images/screenshots/ja/day-white.png +0 -0
  44. data/doc/images/screenshots/ja/debian-raw.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/install/homebrew.rd +8 -12
  61. data/doc/ja/news.rd +67 -0
  62. data/lib/rabbit/canvas.rb +7 -5
  63. data/lib/rabbit/element/base.rb +1 -5
  64. data/lib/rabbit/element/image.rb +70 -4
  65. data/lib/rabbit/error.rb +7 -1
  66. data/lib/rabbit/formatter.rb +1 -1
  67. data/lib/rabbit/gem-pusher.rb +2 -1
  68. data/lib/rabbit/image/base.rb +67 -3
  69. data/lib/rabbit/image/dia.rb +7 -15
  70. data/lib/rabbit/image/mermaid.rb +73 -0
  71. data/lib/rabbit/image/pdf.rb +21 -5
  72. data/lib/rabbit/image.rb +3 -2
  73. data/lib/rabbit/parser/base.rb +2 -1
  74. data/lib/rabbit/parser/ext/blockdiag.rb +16 -14
  75. data/lib/rabbit/parser/ext/image.rb +36 -9
  76. data/lib/rabbit/parser/markdown/converter.rb +36 -30
  77. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +23 -33
  78. data/lib/rabbit/parser/rd/ext/image.rb +23 -4
  79. data/lib/rabbit/parser/rd/rd2rabbit-lib.rb +3 -1
  80. data/lib/rabbit/parser/rd.rb +1 -1
  81. data/lib/rabbit/parser/wiki/output.rb +9 -9
  82. data/lib/rabbit/parser.rb +2 -2
  83. data/lib/rabbit/properties.rb +14 -1
  84. data/lib/rabbit/renderer/display/drawing-area-base.rb +1 -1
  85. data/lib/rabbit/slide-configuration.rb +4 -0
  86. data/lib/rabbit/task/slide.rb +4 -31
  87. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +38 -0
  88. data/lib/rabbit/theme/clear-blue/clear-blue.rb +1 -1
  89. data/lib/rabbit/theme/image/image.rb +3 -0
  90. data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +7 -2
  91. data/lib/rabbit/theme/image-timer/image-timer.rb +8 -3
  92. data/lib/rabbit/theme/pdf/pdf.rb +1 -1
  93. data/lib/rabbit/utils.rb +25 -2
  94. data/lib/rabbit/version.rb +2 -2
  95. data/po/en/rabbit.edit.po +50 -66
  96. data/po/en/rabbit.po +12 -24
  97. data/po/fr/rabbit.edit.po +50 -66
  98. data/po/fr/rabbit.po +12 -24
  99. data/po/ja/rabbit.edit.po +82 -94
  100. data/po/ja/rabbit.po +18 -30
  101. data/rabbit.gemspec +0 -1
  102. data/sample/rabbit-en.md +13 -0
  103. data/sample/rabbit-en.rd +10 -0
  104. data/sample/rabbit.md +21 -0
  105. data/sample/rabbit.rd +20 -0
  106. data/test/command/test-rabbit.rb +1 -0
  107. data/test/parser/test-markdown.rb +2 -2
  108. data/test/test-slide-configuration.rb +2 -1
  109. metadata +7 -26
  110. data/doc/css/jquery-ui/themes/ui-lightness.css +0 -573
  111. data/doc/javascripts/jquery-ui.js +0 -11544
  112. data/doc/javascripts/jquery.js +0 -7179
  113. data/lib/rabbit/slideshare.rb +0 -192
  114. data/test/test-slideshare.rb +0 -34
data/po/ja/rabbit.edit.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Rabbit 0.5.4\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2021-09-25 10:51+0900\n"
9
+ "PO-Revision-Date: 2023-06-25 15:49+0900\n"
10
10
  "Last-Translator: Kouhei Sutou <kou@cozmixng.org>\n"
11
11
  "Language-Team: Kouhei Sutou <kou@cozmixng.org> and Kobayashi Noritada <nori1@d"
12
12
  "olphin.c.u-tokyo.ac.jp>\n"
@@ -392,11 +392,11 @@ msgstr "作者設定の読み込みに失敗しました: %s: %s"
392
392
  msgid "Failed to write author configuration: %s: %s"
393
393
  msgstr "作者設定の書き込みに失敗しました: %s: %s"
394
394
 
395
- #: ../lib/rabbit/canvas.rb:644
395
+ #: ../lib/rabbit/canvas.rb:646
396
396
  msgid "Unknown action: %s"
397
397
  msgstr "未知のアクション: %s"
398
398
 
399
- #: ../lib/rabbit/canvas.rb:739
399
+ #: ../lib/rabbit/canvas.rb:741
400
400
  msgid "Processing..."
401
401
  msgstr "処理中です..."
402
402
 
@@ -514,19 +514,19 @@ msgstr "新しいスライドでプレゼンする日"
514
514
 
515
515
  #: ../lib/rabbit/command/rabbit-slide.rb:208
516
516
  msgid "Presentation start time"
517
- msgstr ""
517
+ msgstr "プレゼン開始時間"
518
518
 
519
519
  #: ../lib/rabbit/command/rabbit-slide.rb:217
520
520
  msgid "Presentation end time"
521
- msgstr ""
521
+ msgstr "プレゼン終了時間"
522
522
 
523
523
  #: ../lib/rabbit/command/rabbit-slide.rb:225
524
524
  msgid "The default slide width"
525
- msgstr ""
525
+ msgstr "デフォルトのスライドの幅"
526
526
 
527
527
  #: ../lib/rabbit/command/rabbit-slide.rb:233
528
528
  msgid "The default slide height"
529
- msgstr ""
529
+ msgstr "デフォルトのスライドの高さ"
530
530
 
531
531
  #: ../lib/rabbit/command/rabbit-slide.rb:239 ../lib/rabbit/command/rabbit-theme.rb:88
532
532
  msgid "Your information"
@@ -1110,55 +1110,55 @@ msgstr "実行したdiaコマンド名: %s"
1110
1110
  msgid "tried gimp commands: %s"
1111
1111
  msgstr "実行したgimpコマンド名: %s"
1112
1112
 
1113
- #: ../lib/rabbit/error.rb:94
1113
+ #: ../lib/rabbit/error.rb:100
1114
1114
  msgid "Unknown property: %s"
1115
1115
  msgstr "未知のプロパティ: %s"
1116
1116
 
1117
- #: ../lib/rabbit/error.rb:102
1117
+ #: ../lib/rabbit/error.rb:108
1118
1118
  msgid "can't allocate color: %s"
1119
1119
  msgstr "色を割り当てることができません: %s"
1120
1120
 
1121
- #: ../lib/rabbit/error.rb:113
1121
+ #: ../lib/rabbit/error.rb:119
1122
1122
  msgid "not exist: %s"
1123
1123
  msgstr "存在しません: %s"
1124
1124
 
1125
- #: ../lib/rabbit/error.rb:121
1125
+ #: ../lib/rabbit/error.rb:127
1126
1126
  msgid "not a file: %s"
1127
1127
  msgstr "ファイルではありません: %s"
1128
1128
 
1129
- #: ../lib/rabbit/error.rb:129
1129
+ #: ../lib/rabbit/error.rb:135
1130
1130
  msgid "can not be read: %s"
1131
1131
  msgstr "読み込むことができません: %s"
1132
1132
 
1133
- #: ../lib/rabbit/error.rb:137
1133
+ #: ../lib/rabbit/error.rb:143
1134
1134
  msgid "immutable source type: %s"
1135
1135
  msgstr "変更不能なソースタイプです: %s"
1136
1136
 
1137
- #: ../lib/rabbit/error.rb:156
1137
+ #: ../lib/rabbit/error.rb:162
1138
1138
  msgid "not available interface: %s"
1139
1139
  msgstr "利用可能なインターフェイスではありません: %s"
1140
1140
 
1141
- #: ../lib/rabbit/error.rb:164
1141
+ #: ../lib/rabbit/error.rb:170
1142
1142
  msgid "can't find HTML template: %s"
1143
1143
  msgstr "HTML のテンプレートが見つかりません: %s"
1144
1144
 
1145
- #: ../lib/rabbit/error.rb:172
1145
+ #: ../lib/rabbit/error.rb:178
1146
1146
  msgid "can't find theme RD template: %s"
1147
1147
  msgstr "テーマ RD のテンプレートが見つかりません: %s"
1148
1148
 
1149
- #: ../lib/rabbit/error.rb:180
1149
+ #: ../lib/rabbit/error.rb:186
1150
1150
  msgid "invalid motion: %s"
1151
1151
  msgstr "不正な動きです: %s"
1152
1152
 
1153
- #: ../lib/rabbit/error.rb:195
1153
+ #: ../lib/rabbit/error.rb:201
1154
1154
  msgid "invalid value of size property \"%{prop_name}\" of \"%{filename}\": %{value}"
1155
1155
  msgstr "「%{filename}」のサイズプロパティ「%{prop_name}」の値が不正です: %{value}"
1156
1156
 
1157
- #: ../lib/rabbit/error.rb:216
1157
+ #: ../lib/rabbit/error.rb:222
1158
1158
  msgid "unknown cursor type: %s"
1159
1159
  msgstr "未知のカーソルタイプ: %s"
1160
1160
 
1161
- #: ../lib/rabbit/error.rb:222
1161
+ #: ../lib/rabbit/error.rb:228
1162
1162
  msgid "print isn't supported"
1163
1163
  msgstr "印刷をサポートしていません"
1164
1164
 
@@ -1170,11 +1170,11 @@ msgstr "gemをインストール中: %s"
1170
1170
  msgid "Installing gem in user install mode: %s"
1171
1171
  msgstr "gemをユーザーインストールモードでインストール中: %s"
1172
1172
 
1173
- #: ../lib/rabbit/gem-pusher.rb:57
1173
+ #: ../lib/rabbit/gem-pusher.rb:58
1174
1174
  msgid "Enter password on RubyGems.org [%{user}]: "
1175
1175
  msgstr "RubyGems.orgのパスワードを入力してください [%{user}]: "
1176
1176
 
1177
- #: ../lib/rabbit/gem-pusher.rb:67
1177
+ #: ../lib/rabbit/gem-pusher.rb:68
1178
1178
  msgid "Enter OTP on RubyGems.org [%{user}]: "
1179
1179
  msgstr "RubyGems.orgのワンタイムパスワードを入力してください [%{user}]: "
1180
1180
 
@@ -1198,11 +1198,15 @@ msgstr "スライド"
1198
1198
  msgid "PDF"
1199
1199
  msgstr "PDF"
1200
1200
 
1201
- #: ../lib/rabbit/image/pdf.rb:45
1201
+ #: ../lib/rabbit/image/mermaid.rb:57
1202
+ msgid "tried mermaid command: %s"
1203
+ msgstr "実行したmermaidコマンド名: %s"
1204
+
1205
+ #: ../lib/rabbit/image/pdf.rb:66
1202
1206
  msgid "invalid PDF page number: <%s>"
1203
1207
  msgstr "不正なPDFのページ番号です: <%s>"
1204
1208
 
1205
- #: ../lib/rabbit/image/pdf.rb:50
1209
+ #: ../lib/rabbit/image/pdf.rb:71
1206
1210
  msgid "%s page doesn't exist in PDF"
1207
1211
  msgstr "PDFの中に%sページはありません"
1208
1212
 
@@ -1258,7 +1262,7 @@ msgstr "サポートしていない形式です。(サポートしている形
1258
1262
  msgid "tried aafigure command: %s"
1259
1263
  msgstr "実行したaafigureコマンド名: %s"
1260
1264
 
1261
- #: ../lib/rabbit/parser/ext/blockdiag.rb:30
1265
+ #: ../lib/rabbit/parser/ext/blockdiag.rb:33
1262
1266
  msgid "tried blockdiag command: %s"
1263
1267
  msgstr "実行したblockdiagコマンド名: %s"
1264
1268
 
@@ -1274,35 +1278,35 @@ msgstr "enscript: サポートしていない言語です: %s"
1274
1278
  msgid "enscript: unsupported element name: %s"
1275
1279
  msgstr "enscript: サポートしていない要素名です: %s"
1276
1280
 
1281
+ #: ../lib/rabbit/parser/ext/image.rb:41
1282
+ msgid "multiple right aligns aren't supported."
1283
+ msgstr "複数のright整列はサポートしていません。"
1284
+
1277
1285
  #: ../lib/rabbit/parser/ext/tex.rb:53
1278
1286
  msgid "tried mimeTeX commands: %s"
1279
1287
  msgstr "実行したmimeTeXコマンド名: %s"
1280
1288
 
1281
- #: ../lib/rabbit/parser/markdown/converter.rb:170 ../test/parser/test-markdown.rb:290
1282
- msgid "multiple ![alt]{image} in a paragraph isn't supported."
1289
+ #: ../lib/rabbit/parser/markdown/converter.rb:170
1290
+ msgid "multiple ![alt]{image}s in a paragraph isn't supported."
1283
1291
  msgstr "ひとつの段落中で複数の「![alt]{image}」を使うことはできません。"
1284
1292
 
1285
- #: ../lib/rabbit/parser/markdown/converter.rb:294 ../test/parser/test-markdown.rb:304
1293
+ #: ../lib/rabbit/parser/markdown/converter.rb:174
1294
+ msgid "![alt]{image} and other contents in a paragraph isn't supported: %{types}"
1295
+ msgstr "ひとつの段落中で「![alt]{image}」と他の内容を一緒に使うことはできません:%{types}"
1296
+
1297
+ #: ../lib/rabbit/parser/markdown/converter.rb:300 ../test/parser/test-markdown.rb:304
1286
1298
  msgid "horizontal rule isn't supported."
1287
1299
  msgstr "水平線はサポートしていません"
1288
1300
 
1289
- #: ../lib/rabbit/parser/markdown/converter.rb:356
1290
- msgid "multiple ![]('XXX.png'){:align='right'} isn't supported."
1291
- msgstr "複数の「![]('XXX.png'){:align='right'}」はサポートしていません。"
1292
-
1293
- #: ../lib/rabbit/parser/markdown/converter.rb:412 ../test/parser/test-markdown.rb:317
1301
+ #: ../lib/rabbit/parser/markdown/converter.rb:418 ../test/parser/test-markdown.rb:317
1294
1302
  msgid "tag name is missing."
1295
1303
  msgstr "タグ名がありません。"
1296
1304
 
1297
- #: ../lib/rabbit/parser/markdown/converter.rb:426
1305
+ #: ../lib/rabbit/parser/markdown/converter.rb:432
1298
1306
  msgid "HTML isn't supported."
1299
1307
  msgstr "HTMLはサポートしていません"
1300
1308
 
1301
- #: ../lib/rabbit/parser/rd/ext/block-verbatim.rb:63
1302
- msgid "multiple 'align = right' isn't supported."
1303
- msgstr "複数の'align = right'はサポートしていません。"
1304
-
1305
- #: ../lib/rabbit/parser/rd/ext/block-verbatim.rb:156
1309
+ #: ../lib/rabbit/parser/rd/ext/block-verbatim.rb:137
1306
1310
  msgid "RTtool isn't available"
1307
1311
  msgstr "RTtoolが利用できません"
1308
1312
 
@@ -1346,30 +1350,14 @@ msgstr "%sはサポートしていません: %s"
1346
1350
  msgid "can't find printer for %s"
1347
1351
  msgstr "%sのためのプリンタが見付かりません."
1348
1352
 
1349
- #: ../lib/rabbit/slide-configuration.rb:72 ../lib/rabbit/theme-configuration.rb:47
1353
+ #: ../lib/rabbit/slide-configuration.rb:73 ../lib/rabbit/theme-configuration.rb:47
1350
1354
  msgid "Failed to read slide configuration: %s: %s"
1351
1355
  msgstr "スライド設定の読み込みに失敗しました: %s: %s"
1352
1356
 
1353
- #: ../lib/rabbit/slide-configuration.rb:82 ../lib/rabbit/theme-configuration.rb:57
1357
+ #: ../lib/rabbit/slide-configuration.rb:83 ../lib/rabbit/theme-configuration.rb:57
1354
1358
  msgid "Failed to write slide configuration: %s: %s"
1355
1359
  msgstr "スライド設定の書き込みに失敗しました: %s: %s"
1356
1360
 
1357
- #: ../lib/rabbit/slideshare.rb:62
1358
- msgid "Feailed to upload: %s"
1359
- msgstr "アップロードに失敗しました: %s"
1360
-
1361
- #: ../lib/rabbit/slideshare.rb:69
1362
- msgid "Feailed to edit title: %s"
1363
- msgstr "タイトルの編集に失敗しました: %s"
1364
-
1365
- #: ../lib/rabbit/slideshare.rb:77
1366
- msgid "Feailed to get slide URL: %s"
1367
- msgstr "スライドURLの取得に失敗しました: %s"
1368
-
1369
- #: ../lib/rabbit/slideshare.rb:146
1370
- msgid "Enter password on SlideShare [%{user}]: "
1371
- msgstr "SlideShareのパスワードを入力してください [%{user}]: "
1372
-
1373
1361
  #: ../lib/rabbit/source/argf.rb:10
1374
1362
  msgid "none (get from STDIN) or [FILE_NAMES]"
1375
1363
  msgstr ""
@@ -1392,42 +1380,34 @@ msgstr "URI"
1392
1380
  msgid "Rabbit"
1393
1381
  msgstr "Rabbit"
1394
1382
 
1395
- #: ../lib/rabbit/task/slide.rb:94
1383
+ #: ../lib/rabbit/task/slide.rb:97
1396
1384
  msgid "To run rabbit, create '%{options_path}'!"
1397
1385
  msgstr "rabbitを実行するために'%{options_path}'を作ってください!"
1398
1386
 
1399
- #: ../lib/rabbit/task/slide.rb:98
1387
+ #: ../lib/rabbit/task/slide.rb:101
1400
1388
  msgid "Show slide"
1401
1389
  msgstr "スライドを表示"
1402
1390
 
1403
- #: ../lib/rabbit/task/slide.rb:110 ../lib/rabbit/task/theme.rb:106
1391
+ #: ../lib/rabbit/task/slide.rb:113 ../lib/rabbit/task/theme.rb:106
1404
1392
  msgid "Create gem: %{gem_path}"
1405
1393
  msgstr "gemを作成: %{gem_path}"
1406
1394
 
1407
- #: ../lib/rabbit/task/slide.rb:122 ../lib/rabbit/task/theme.rb:118
1395
+ #: ../lib/rabbit/task/slide.rb:125 ../lib/rabbit/task/theme.rb:118
1408
1396
  msgid "Write %{item} in %{where}: %{content}"
1409
1397
  msgstr "%{where}の%{item}を書いてください: %{content}"
1410
1398
 
1411
- #: ../lib/rabbit/task/slide.rb:148 ../lib/rabbit/task/theme.rb:158
1399
+ #: ../lib/rabbit/task/slide.rb:151 ../lib/rabbit/task/theme.rb:158
1412
1400
  msgid "Generate PDF: %{pdf_path}"
1413
1401
  msgstr "PDFを生成: %{pdf_path}"
1414
1402
 
1415
- #: ../lib/rabbit/task/slide.rb:153
1403
+ #: ../lib/rabbit/task/slide.rb:156
1416
1404
  msgid "Publish the slide to all available targets"
1417
1405
  msgstr "すべての公開可能な公開場所にこのスライドを公開"
1418
1406
 
1419
- #: ../lib/rabbit/task/slide.rb:177 ../lib/rabbit/task/slide.rb:186 ../lib/rabbit/task/slide.rb:210
1407
+ #: ../lib/rabbit/task/slide.rb:175 ../lib/rabbit/task/slide.rb:183
1420
1408
  msgid "Publish the slide to %s"
1421
1409
  msgstr "このスライドを%sに公開"
1422
1410
 
1423
- #: ../lib/rabbit/task/slide.rb:198
1424
- msgid "Uploaded successfully!"
1425
- msgstr "無事にアップロードできました!"
1426
-
1427
- #: ../lib/rabbit/task/slide.rb:199
1428
- msgid "See %s"
1429
- msgstr "%sを見てください"
1430
-
1431
1411
  #: ../lib/rabbit/task/theme.rb:94
1432
1412
  msgid "Show theme benchmark slide with this theme"
1433
1413
  msgstr "このテーマでテーマベンチマーク用のスライドを表示"
@@ -2764,25 +2744,33 @@ msgstr "影の色。"
2764
2744
  msgid "TitleSlideBackgroundImage"
2765
2745
  msgstr "タイトルスライド背景画像"
2766
2746
 
2767
- #~ msgid ""
2768
- #~ "Usage: %s COMMAND [OPTIONS]\n"
2769
- #~ " e.g.: %s new \\\n"
2770
- #~ " --id rubykaigi2012 \\\n"
2771
- #~ " --base-name rabbit-introduction \\\n"
2772
- #~ " --markup-language rd \\\n"
2773
- #~ " --name \"Kouhei Sutou\" \\\n"
2774
- #~ " --email kou@cozmixng.org \\\n"
2775
- #~ " --rubygems-user kou \\\n"
2776
- #~ " --slideshare-user kou \\\n"
2777
- #~ " --speaker-deck-user kou"
2778
- #~ msgstr ""
2779
- #~ "使い方: %s COMMAND [オプション]\n"
2780
- #~ " 例: %s new \\\n"
2781
- #~ " --id rubykaigi2012 \\\n"
2782
- #~ " --base-name rabbit-introduction \\\n"
2783
- #~ " --markup-language rd \\\n"
2784
- #~ " --name \"Kouhei Sutou\" \\\n"
2785
- #~ " --email kou@cozmixng.org \\\n"
2786
- #~ " --rubygems-user kou \\\n"
2787
- #~ " --slideshare-user kou \\\n"
2788
- #~ " --speaker-deck-user kou"
2747
+ #: ../test/parser/test-markdown.rb:290
2748
+ msgid "![alt]{image} and other contents in a paragraph isn't supported: [:text, :img]"
2749
+ msgstr "ひとつの段落中で「![alt]{image}」と他の内容を一緒に使うことはできません: [:text, :img]"
2750
+
2751
+ #~ msgid "multiple ![]('XXX.png'){:align='right'} isn't supported."
2752
+ #~ msgstr "複数の「![]('XXX.png'){:align='right'}」はサポートしていません。"
2753
+
2754
+ #~ msgid "multiple 'align = right' isn't supported."
2755
+ #~ msgstr "複数の'align = right'はサポートしていません。"
2756
+
2757
+ #~ msgid "Feailed to upload: %s"
2758
+ #~ msgstr "アップロードに失敗しました: %s"
2759
+
2760
+ #~ msgid "Feailed to edit title: %s"
2761
+ #~ msgstr "タイトルの編集に失敗しました: %s"
2762
+
2763
+ #~ msgid "Feailed to get slide URL: %s"
2764
+ #~ msgstr "スライドURLの取得に失敗しました: %s"
2765
+
2766
+ #~ msgid "Enter password on SlideShare [%{user}]: "
2767
+ #~ msgstr "SlideShareのパスワードを入力してください [%{user}]: "
2768
+
2769
+ #~ msgid "Uploaded successfully!"
2770
+ #~ msgstr "無事にアップロードできました!"
2771
+
2772
+ #~ msgid "See %s"
2773
+ #~ msgstr "%sを見てください"
2774
+
2775
+ #~ msgid "multiple ![alt]{image} in a paragraph isn't supported."
2776
+ #~ msgstr "ひとつの段落中で複数の「![alt]{image}」を使うことはできません。"
data/po/ja/rabbit.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Rabbit 0.5.4\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2021-09-25 10:51+0900\n"
9
+ "PO-Revision-Date: 2023-06-25 15:49+0900\n"
10
10
  "Last-Translator: Kouhei Sutou <kou@cozmixng.org>\n"
11
11
  "Language-Team: Kouhei Sutou <kou@cozmixng.org> and Kobayashi Noritada <nori1@d"
12
12
  "olphin.c.u-tokyo.ac.jp>\n"
@@ -395,16 +395,16 @@ msgid "Presentation date with the new slide"
395
395
  msgstr "新しいスライドでプレゼンする日"
396
396
 
397
397
  msgid "Presentation start time"
398
- msgstr ""
398
+ msgstr "プレゼン開始時間"
399
399
 
400
400
  msgid "Presentation end time"
401
- msgstr ""
401
+ msgstr "プレゼン終了時間"
402
402
 
403
403
  msgid "The default slide width"
404
- msgstr ""
404
+ msgstr "デフォルトのスライドの幅"
405
405
 
406
406
  msgid "The default slide height"
407
- msgstr ""
407
+ msgstr "デフォルトのスライドの高さ"
408
408
 
409
409
  msgid "Your information"
410
410
  msgstr "あなたの情報"
@@ -915,6 +915,9 @@ msgstr "スライド"
915
915
  msgid "PDF"
916
916
  msgstr "PDF"
917
917
 
918
+ msgid "tried mermaid command: %s"
919
+ msgstr "実行したmermaidコマンド名: %s"
920
+
918
921
  msgid "invalid PDF page number: <%s>"
919
922
  msgstr "不正なPDFのページ番号です: <%s>"
920
923
 
@@ -972,27 +975,27 @@ msgstr "enscript: サポートしていない言語です: %s"
972
975
  msgid "enscript: unsupported element name: %s"
973
976
  msgstr "enscript: サポートしていない要素名です: %s"
974
977
 
978
+ msgid "multiple right aligns aren't supported."
979
+ msgstr "複数のright整列はサポートしていません。"
980
+
975
981
  msgid "tried mimeTeX commands: %s"
976
982
  msgstr "実行したmimeTeXコマンド名: %s"
977
983
 
978
- msgid "multiple ![alt]{image} in a paragraph isn't supported."
984
+ msgid "multiple ![alt]{image}s in a paragraph isn't supported."
979
985
  msgstr "ひとつの段落中で複数の「![alt]{image}」を使うことはできません。"
980
986
 
987
+ msgid "![alt]{image} and other contents in a paragraph isn't supported: %{types}"
988
+ msgstr "ひとつの段落中で「![alt]{image}」と他の内容を一緒に使うことはできません:%{types}"
989
+
981
990
  msgid "horizontal rule isn't supported."
982
991
  msgstr "水平線はサポートしていません"
983
992
 
984
- msgid "multiple ![]('XXX.png'){:align='right'} isn't supported."
985
- msgstr "複数の「![]('XXX.png'){:align='right'}」はサポートしていません。"
986
-
987
993
  msgid "tag name is missing."
988
994
  msgstr "タグ名がありません。"
989
995
 
990
996
  msgid "HTML isn't supported."
991
997
  msgstr "HTMLはサポートしていません"
992
998
 
993
- msgid "multiple 'align = right' isn't supported."
994
- msgstr "複数の'align = right'はサポートしていません。"
995
-
996
999
  msgid "RTtool isn't available"
997
1000
  msgstr "RTtoolが利用できません"
998
1001
 
@@ -1032,18 +1035,6 @@ msgstr "スライド設定の読み込みに失敗しました: %s: %s"
1032
1035
  msgid "Failed to write slide configuration: %s: %s"
1033
1036
  msgstr "スライド設定の書き込みに失敗しました: %s: %s"
1034
1037
 
1035
- msgid "Feailed to upload: %s"
1036
- msgstr "アップロードに失敗しました: %s"
1037
-
1038
- msgid "Feailed to edit title: %s"
1039
- msgstr "タイトルの編集に失敗しました: %s"
1040
-
1041
- msgid "Feailed to get slide URL: %s"
1042
- msgstr "スライドURLの取得に失敗しました: %s"
1043
-
1044
- msgid "Enter password on SlideShare [%{user}]: "
1045
- msgstr "SlideShareのパスワードを入力してください [%{user}]: "
1046
-
1047
1038
  msgid "none (get from STDIN) or [FILE_NAMES]"
1048
1039
  msgstr ""
1049
1040
  "[何も指定しない(標準入力から読込)]か\n"
@@ -1082,12 +1073,6 @@ msgstr "すべての公開可能な公開場所にこのスライドを公開"
1082
1073
  msgid "Publish the slide to %s"
1083
1074
  msgstr "このスライドを%sに公開"
1084
1075
 
1085
- msgid "Uploaded successfully!"
1086
- msgstr "無事にアップロードできました!"
1087
-
1088
- msgid "See %s"
1089
- msgstr "%sを見てください"
1090
-
1091
1076
  msgid "Show theme benchmark slide with this theme"
1092
1077
  msgstr "このテーマでテーマベンチマーク用のスライドを表示"
1093
1078
 
@@ -2192,3 +2177,6 @@ msgstr "影の色。"
2192
2177
 
2193
2178
  msgid "TitleSlideBackgroundImage"
2194
2179
  msgstr "タイトルスライド背景画像"
2180
+
2181
+ msgid "![alt]{image} and other contents in a paragraph isn't supported: [:text, :img]"
2182
+ msgstr "ひとつの段落中で「![alt]{image}」と他の内容を一緒に使うことはできません: [:text, :img]"
data/rabbit.gemspec CHANGED
@@ -77,7 +77,6 @@ can see your slide at https://slide.rabbit-shocker.org/ .
77
77
  spec.add_runtime_dependency("coderay", ">= 1.0.0")
78
78
  spec.add_runtime_dependency("kramdown-parser-gfm")
79
79
  spec.add_runtime_dependency("gettext", ">= 3.0.1")
80
- spec.add_runtime_dependency("faraday")
81
80
  # spec.add_runtime_dependency("gstreamer")
82
81
  spec.add_runtime_dependency("rouge")
83
82
 
data/sample/rabbit-en.md CHANGED
@@ -209,6 +209,19 @@ Create EPS ahead of time
209
209
  fonts="/usr/share/fonts/opentype/ipafont/ipag.ttf, /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf"
210
210
  }
211
211
 
212
+ # Mermaid
213
+
214
+ ```mermaid
215
+ graph TD;
216
+ A-->B;
217
+ A-->C;
218
+ B-->D;
219
+ C-->D;
220
+ ```
221
+ {:
222
+ relative_height="90"
223
+ }
224
+
212
225
  # Word Wrapping
213
226
 
214
227
  looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
data/sample/rabbit-en.rd CHANGED
@@ -279,6 +279,16 @@ Create EPS ahead of time((-needs gs-))
279
279
  }
280
280
  }
281
281
 
282
+ = Mermaid
283
+
284
+ # mermaid
285
+ # relative_height = 90
286
+ graph TD;
287
+ A-->B;
288
+ A-->C;
289
+ B-->D;
290
+ C-->D;
291
+
282
292
  = Word Wrapping
283
293
 
284
294
  looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
data/sample/rabbit.md CHANGED
@@ -158,6 +158,14 @@ background-image-relative-margin-right
158
158
  * スライド内で指定
159
159
  * \{:align="right"\}
160
160
 
161
+ # 画像: 落書き
162
+
163
+ ![](lavie.png){:relative_height="80"
164
+ draw0="[rectangle, false, 0.05, 0.1, 0.1, 0.2, {color: red, line_width: 3\}]"
165
+ draw1="[line, 0.2, 0.1, 0.3, 0.2, {color: blue, line_width: 5\}]"
166
+ draw2="[text, Cute!, 0.05, 0.4, {color: Green, size: 25\}]"
167
+ draw10="[line, 0.0, 0.0, 0.5, 0.5, 0.25, 0.5, {line_width: 10, line_cap: butt, line_join: miter\}]"}
168
+
161
169
  # 画像サイズ
162
170
 
163
171
  スライドサイズに応じて変更可能
@@ -220,6 +228,19 @@ $$
220
228
  fonts="/usr/share/fonts/opentype/ipafont/ipag.ttf, /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf"
221
229
  }
222
230
 
231
+ # Mermaid
232
+
233
+ ```mermaid
234
+ graph TD;
235
+ A-->B;
236
+ A-->C;
237
+ B-->D;
238
+ C-->D;
239
+ ```
240
+ {:
241
+ relative_height="90"
242
+ }
243
+
223
244
  # 折り返し
224
245
 
225
246
  なーーーーーーーーーーーーーーーーーーーーーーーーーーーーーがーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーい行は?
data/sample/rabbit.rd CHANGED
@@ -174,6 +174,16 @@
174
174
  * スライド内で指定
175
175
  * align = right
176
176
 
177
+ = 画像: 落書き
178
+
179
+ # image
180
+ # src = lavie.png
181
+ # relative_height = 80
182
+ # draw0 = [rectangle, false, 0.05, 0.1, 0.1, 0.2, {color: red, line_width: 3}]
183
+ # draw1 = [line, 0.2, 0.1, 0.3, 0.2, {color: blue, line_width: 5}]
184
+ # draw2 = [text, Cute!, 0.05, 0.4, {color: Green, size: 25}]
185
+ # draw10 = [line, 0.0, 0.0, 0.5, 0.5, 0.25, 0.5, {line_width: 10, line_cap: butt, line_join: miter}]
186
+
177
187
  = 画像サイズ
178
188
 
179
189
  スライドサイズに応じて変更可能
@@ -278,6 +288,16 @@ URL先の画像をダウンロード
278
288
  }
279
289
  }
280
290
 
291
+ = Mermaid
292
+
293
+ # mermaid
294
+ # relative_height = 90
295
+ graph TD;
296
+ A-->B;
297
+ A-->C;
298
+ B-->D;
299
+ C-->D;
300
+
281
301
  = 折り返し
282
302
 
283
303
  なーーーーーーーーーーーーーーーーーーーーーーーーーーーーーがーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーい行
@@ -43,6 +43,7 @@ class RabbitCommandRabbitTest < Test::Unit::TestCase
43
43
  end
44
44
 
45
45
  test("--save-as-image") do
46
+ omit("log isn't outputted on GitHub Actions...") if ENV["CI"]
46
47
  File.open(File.join(@dir, "slide.rab"), "w") do |slide|
47
48
  slide.puts(<<-'SLIDE')
48
49
  = ス\nラ/イ\ド:タイトル
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2019 Kouhei Sutou <kou@cozmixng.org>
1
+ # Copyright (C) 2014-2022 Sutou Kouhei <kou@cozmixng.org>
2
2
  #
3
3
  # This program is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -287,7 +287,7 @@ class RabbitParserMarkdownTest < Test::Unit::TestCase
287
287
 
288
288
  def test_unsupported
289
289
  image_path = fixture_path("image/png/lavie.png")
290
- message = _("multiple ![alt]{image} in a paragraph isn't supported.")
290
+ message = _("![alt]{image} and other contents in a paragraph isn't supported: [:text, :img]")
291
291
  assert_raise(Rabbit::ParseError.new(message)) do
292
292
  parse(<<-MARKDOWN)
293
293
  a ![](#{image_path})
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2021 Sutou Kouhei <kou@cozmixng.org>
1
+ # Copyright (C) 2012-2022 Sutou Kouhei <kou@cozmixng.org>
2
2
  #
3
3
  # This program is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@ class TestSlideConfiguration < Test::Unit::TestCase
40
40
  "version" => "2012.09.16.0",
41
41
  "licenses" => ["GPLv3+", "GFDL", "CC BY-SA 3.0"],
42
42
  "slideshare_id" => "rabbit-14073776",
43
+ "source_code_uri" => "https://example.com/source",
43
44
  "speaker_deck_id" => "rabbit-debian",
44
45
  "vimeo_id" => "00000000",
45
46
  "youtube_id" => "XXXXX-xxxxx",