rabbit 1.0.8 → 1.0.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 (141) hide show
  1. data/Gemfile +1 -19
  2. data/Rakefile +7 -31
  3. data/doc/_layouts/en.html +1 -1
  4. data/doc/_layouts/ja.html +1 -1
  5. data/doc/en/news.rd +31 -0
  6. data/doc/index.html.en +1 -1
  7. data/doc/index.html.ja +1 -1
  8. data/doc/ja/news.rd +31 -0
  9. data/lib/rabbit/middleware/controller.rb +1 -5
  10. data/lib/rabbit/parser/rd/ext/character-reference.rb +59 -0
  11. data/lib/rabbit/parser/rd/ext/inline-verbatim.rb +2 -2
  12. data/lib/rabbit/parser/rd.rb +1 -1
  13. data/lib/rabbit/parser/wiki/output.rb +4 -0
  14. data/lib/rabbit/rabbit.rb +1 -1
  15. data/lib/rabbit/twitter.rb +43 -56
  16. data/misc/emacs/rabbit-mode.el +3 -4
  17. data/po/en/rabbit.po~ +2567 -0
  18. data/po/fr/rabbit.po~ +2674 -0
  19. data/po/ja/rabbit.po~ +2695 -0
  20. data/test/run-test.rb +2 -1
  21. metadata +737 -822
  22. data/TODO +0 -25
  23. data/doc/_site/css/jquery-ui/themes/ui-lightness.css +0 -573
  24. data/doc/_site/css/rabbit.css +0 -288
  25. data/doc/_site/en/development.html +0 -140
  26. data/doc/_site/en/faq.html +0 -117
  27. data/doc/_site/en/hiki.html +0 -420
  28. data/doc/_site/en/how-to-make/hiki.html +0 -113
  29. data/doc/_site/en/how-to-make/index.html +0 -136
  30. data/doc/_site/en/how-to-make/markdown.html +0 -156
  31. data/doc/_site/en/how-to-make/pdf.html +0 -111
  32. data/doc/_site/en/how-to-make/rd.html +0 -151
  33. data/doc/_site/en/how-to-make/theme.html +0 -249
  34. data/doc/_site/en/index.html +0 -357
  35. data/doc/_site/en/install/homebrew.html +0 -273
  36. data/doc/_site/en/install/index.html +0 -146
  37. data/doc/_site/en/install/macports.html +0 -158
  38. data/doc/_site/en/install/windows.html +0 -200
  39. data/doc/_site/en/news.html +0 -1253
  40. data/doc/_site/en/rd.html +0 -555
  41. data/doc/_site/en/sample/hiki/rabbit.html +0 -556
  42. data/doc/_site/en/sample/index.html +0 -121
  43. data/doc/_site/en/sample/markdown/rabbit.html +0 -490
  44. data/doc/_site/en/sample/rd/rabbit.html +0 -572
  45. data/doc/_site/en/slides.html +0 -113
  46. data/doc/_site/en/usage.html +0 -445
  47. data/doc/_site/en/users.html +0 -129
  48. data/doc/_site/favicon.ico +0 -0
  49. data/doc/_site/favicon.png +0 -0
  50. data/doc/_site/images/background-sample.svg +0 -290
  51. data/doc/_site/images/background.png +0 -0
  52. data/doc/_site/images/background.svg +0 -131
  53. data/doc/_site/images/hare-and-tortoise.png +0 -0
  54. data/doc/_site/images/hare-and-tortoise.svg +0 -541
  55. data/doc/_site/images/jp.png +0 -0
  56. data/doc/_site/images/lavie-icon.png +0 -0
  57. data/doc/_site/images/lavie.png +0 -0
  58. data/doc/_site/images/screenshots/en/blue-circle-raw.png +0 -0
  59. data/doc/_site/images/screenshots/en/blue-circle.png +0 -0
  60. data/doc/_site/images/screenshots/en/clear-blue-raw.png +0 -0
  61. data/doc/_site/images/screenshots/en/clear-blue.png +0 -0
  62. data/doc/_site/images/screenshots/en/cozmixng-raw.png +0 -0
  63. data/doc/_site/images/screenshots/en/cozmixng.png +0 -0
  64. data/doc/_site/images/screenshots/en/dark-gradation-raw.png +0 -0
  65. data/doc/_site/images/screenshots/en/dark-gradation.png +0 -0
  66. data/doc/_site/images/screenshots/en/day-white-raw.png +0 -0
  67. data/doc/_site/images/screenshots/en/day-white.png +0 -0
  68. data/doc/_site/images/screenshots/en/debian-raw.png +0 -0
  69. data/doc/_site/images/screenshots/en/debian.png +0 -0
  70. data/doc/_site/images/screenshots/en/green-circle-raw.png +0 -0
  71. data/doc/_site/images/screenshots/en/green-circle.png +0 -0
  72. data/doc/_site/images/screenshots/en/night-black-raw.png +0 -0
  73. data/doc/_site/images/screenshots/en/night-black.png +0 -0
  74. data/doc/_site/images/screenshots/en/rabbit-raw.png +0 -0
  75. data/doc/_site/images/screenshots/en/rabbit.png +0 -0
  76. data/doc/_site/images/screenshots/en/ranguba-raw.png +0 -0
  77. data/doc/_site/images/screenshots/en/ranguba.png +0 -0
  78. data/doc/_site/images/screenshots/en/red-frame-raw.png +0 -0
  79. data/doc/_site/images/screenshots/en/red-frame.png +0 -0
  80. data/doc/_site/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  81. data/doc/_site/images/screenshots/en/ruby-gnome2.png +0 -0
  82. data/doc/_site/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  83. data/doc/_site/images/screenshots/en/rubykaigi2011.png +0 -0
  84. data/doc/_site/images/screenshots/ja/blue-circle-raw.png +0 -0
  85. data/doc/_site/images/screenshots/ja/blue-circle.png +0 -0
  86. data/doc/_site/images/screenshots/ja/clear-blue-raw.png +0 -0
  87. data/doc/_site/images/screenshots/ja/clear-blue.png +0 -0
  88. data/doc/_site/images/screenshots/ja/cozmixng-raw.png +0 -0
  89. data/doc/_site/images/screenshots/ja/cozmixng.png +0 -0
  90. data/doc/_site/images/screenshots/ja/dark-gradation-raw.png +0 -0
  91. data/doc/_site/images/screenshots/ja/dark-gradation.png +0 -0
  92. data/doc/_site/images/screenshots/ja/day-white-raw.png +0 -0
  93. data/doc/_site/images/screenshots/ja/day-white.png +0 -0
  94. data/doc/_site/images/screenshots/ja/debian-raw.png +0 -0
  95. data/doc/_site/images/screenshots/ja/debian.png +0 -0
  96. data/doc/_site/images/screenshots/ja/green-circle-raw.png +0 -0
  97. data/doc/_site/images/screenshots/ja/green-circle.png +0 -0
  98. data/doc/_site/images/screenshots/ja/night-black-raw.png +0 -0
  99. data/doc/_site/images/screenshots/ja/night-black.png +0 -0
  100. data/doc/_site/images/screenshots/ja/rabbit-raw.png +0 -0
  101. data/doc/_site/images/screenshots/ja/rabbit.png +0 -0
  102. data/doc/_site/images/screenshots/ja/ranguba-raw.png +0 -0
  103. data/doc/_site/images/screenshots/ja/ranguba.png +0 -0
  104. data/doc/_site/images/screenshots/ja/red-frame-raw.png +0 -0
  105. data/doc/_site/images/screenshots/ja/red-frame.png +0 -0
  106. data/doc/_site/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  107. data/doc/_site/images/screenshots/ja/ruby-gnome2.png +0 -0
  108. data/doc/_site/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  109. data/doc/_site/images/screenshots/ja/rubykaigi2011.png +0 -0
  110. data/doc/_site/images/us.png +0 -0
  111. data/doc/_site/index.html.en +0 -132
  112. data/doc/_site/index.html.ja +0 -132
  113. data/doc/_site/ja/about.html +0 -120
  114. data/doc/_site/ja/development.html +0 -141
  115. data/doc/_site/ja/faq.html +0 -243
  116. data/doc/_site/ja/hiki.html +0 -416
  117. data/doc/_site/ja/how-to-make/hiki.html +0 -113
  118. data/doc/_site/ja/how-to-make/index.html +0 -136
  119. data/doc/_site/ja/how-to-make/markdown.html +0 -161
  120. data/doc/_site/ja/how-to-make/pdf.html +0 -112
  121. data/doc/_site/ja/how-to-make/rd.html +0 -161
  122. data/doc/_site/ja/how-to-make/theme.html +0 -254
  123. data/doc/_site/ja/index.html +0 -364
  124. data/doc/_site/ja/install/homebrew.html +0 -273
  125. data/doc/_site/ja/install/index.html +0 -148
  126. data/doc/_site/ja/install/macports.html +0 -174
  127. data/doc/_site/ja/install/windows.html +0 -200
  128. data/doc/_site/ja/news.html +0 -1243
  129. data/doc/_site/ja/rd.html +0 -565
  130. data/doc/_site/ja/sample/hiki/rabbit.html +0 -566
  131. data/doc/_site/ja/sample/index.html +0 -121
  132. data/doc/_site/ja/sample/markdown/rabbit.html +0 -485
  133. data/doc/_site/ja/sample/rd/rabbit.html +0 -580
  134. data/doc/_site/ja/slides.html +0 -142
  135. data/doc/_site/ja/usage.html +0 -449
  136. data/doc/_site/ja/users.html +0 -332
  137. data/doc/_site/javascripts/jquery-ui.js +0 -11544
  138. data/doc/_site/javascripts/jquery.js +0 -7179
  139. data/doc/_site/screenshot.en.rab +0 -10
  140. data/doc/_site/screenshot.ja.rab +0 -10
  141. data/lib/rabbit/parser/rd/ext/entity.rb +0 -38
@@ -1,156 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Rabbit - How to make a Makrdown format slide source</title>
6
- <link rel="shortcut icon" href="/favicon.ico"
7
- type="image/vnd.microsfot.icon">
8
- <link rel="icon" href="/favicon.png" type="image/png">
9
- <link rel="stylesheet" href="/css/jquery-ui/themes/ui-lightness.css"
10
- type="text/css">
11
- <link rel="stylesheet" href="/css/rabbit.css" type="text/css">
12
- <meta property="fb:page_id" content="rabbit.shockers">
13
- <meta property="fb:admins" content="kouhei.sutou">
14
- <meta property="og:type" content="product">
15
- <meta property="og:image"
16
- content="http://rabbit-shockers.org/images/lavie.png">
17
- <meta property="og:site_name" content="Rabbit">
18
- <script type="text/javascript" src="/javascripts/jquery.js"></script>
19
- <script type="text/javascript" src="/javascripts/jquery-ui.js"></script>
20
- <!--[if lt IE 9]>
21
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
- <![endif]-->
23
- </head>
24
- <body>
25
- <header id="header">
26
- <h1 class="title">
27
- <a href="/">
28
- <span class="project">Rabbit</span>
29
- <span class="separator">-</span>
30
- <span class="description">How to make a Makrdown format slide source</span>
31
- </a>
32
- </h1>
33
- <div class="facebook-buttons">
34
- <fb:like href="http://www.facebook.com/pages/Rabbit/202603309766491"
35
- layout="standard"></fb:like>
36
- </div>
37
- <pre id="install" class="command">gem install rabbit</pre>
38
- <div class="other-language-links">
39
- <ul>
40
-
41
-
42
-
43
- <li><a href="/ja/how-to-make/markdown.html" alt="日本語" title="日本語"><img src="/images/jp.png"></a></li>
44
-
45
- </ul>
46
- </div>
47
- </header>
48
-
49
- <nav class="menu">
50
- <ul>
51
- <li><a href="/en/">README</a></li>
52
- <li><a href="/en/install/">Install</a></li>
53
- <li><a href="/en/usage.html">Usage</a></li>
54
- <li><a href="/en/how-to-make/">How to make</a></li>
55
- <li><a href="/en/users.html">Shockers</a></li>
56
- <li><a href="/en/development.html">Development</a></li>
57
- </ul>
58
- </nav>
59
-
60
-
61
- <div id="body">
62
- <div id="main">
63
- <section class="contents">
64
- <h2>About Markdown format for Rabbit slide</h2>
65
-
66
- <p>Rabbit uses Markdown format but it uses different usage with
67
- normal document. See <a href="../sample/">sample slide</a> about sample slide.</p>
68
-
69
- <h3>Page</h3>
70
-
71
- <p>The largest headline (#) is title of page. The page follows
72
- next title.</p>
73
-
74
- <pre><code># Title
75
-
76
- SOMETHING
77
-
78
- ...
79
-
80
- # Next Page
81
-
82
- ...
83
- </code></pre>
84
-
85
- <p>This example has two pages.</p>
86
-
87
- <h3>Title page</h3>
88
-
89
- <p>The first page is the title page. You can specify meta
90
- information of the slide by using a labeled list (:) in the
91
- title page.</p>
92
-
93
- <pre><code># Title of slide
94
-
95
- author
96
- : Kouhei Sutou
97
- institution
98
- : COZMIXNG
99
- </code></pre>
100
-
101
- <p>This example shows the author is Kouhei Sutou and his
102
- institution is COZMIXNG.</p>
103
-
104
- <p>At the moment, you can specify subtitle, content_source and
105
- even the theme. "theme" is for the default theme of this slide.</p>
106
-
107
- <h3>...</h3>
108
-
109
- <p>TODO: Add other syntaxes...</p>
110
-
111
- </section>
112
- </div>
113
- <nav id="sidebar">
114
- <h3>The Latest Release</h3>
115
- <p><a href="en/news.html">1.0.7</a> is the latest release. It had been released at 2012-05-29.</p>
116
- <h3>Links</h3>
117
- <ul>
118
- <li><a href="/en/">README</a></li>
119
- <li><a href="/en/install/">Install</a></li>
120
- <li><a href="/en/usage.html">Usage</a></li>
121
- <li><a href="/en/how-to-make/">How to make</a></li>
122
- <li><a href="/en/users.html">Shockers</a></li>
123
- <li><a href="/en/development.html">Development</a></li>
124
- </ul>
125
- </nav>
126
- </div>
127
-
128
-
129
- <footer>
130
- <p class="copyright">&copy; 2004-2012 Kouhei Sutou.</p>
131
- </footer>
132
- <script src="http://connect.facebook.net/en_US/all.js"></script>
133
- <script>
134
- FB.init({
135
- appId : null,
136
- status : true, // check login status
137
- cookie : true, // enable cookies to allow the server to access the session
138
- xfbml : true // parse XFBML
139
- });
140
- </script>
141
- <script type="text/javascript">
142
- if (document.location.protocol != "file:" &&
143
- document.location.host != "localhost") {
144
- var _gaq = _gaq || [];
145
- _gaq.push(['_setAccount', 'UA-12143252-4']);
146
- _gaq.push(['_trackPageview']);
147
-
148
- (function() {
149
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
150
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
151
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
152
- })();
153
- }
154
- </script>
155
- </body>
156
- </html>
@@ -1,111 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Rabbit - How to make a PDF format slide</title>
6
- <link rel="shortcut icon" href="/favicon.ico"
7
- type="image/vnd.microsfot.icon">
8
- <link rel="icon" href="/favicon.png" type="image/png">
9
- <link rel="stylesheet" href="/css/jquery-ui/themes/ui-lightness.css"
10
- type="text/css">
11
- <link rel="stylesheet" href="/css/rabbit.css" type="text/css">
12
- <meta property="fb:page_id" content="rabbit.shockers">
13
- <meta property="fb:admins" content="kouhei.sutou">
14
- <meta property="og:type" content="product">
15
- <meta property="og:image"
16
- content="http://rabbit-shockers.org/images/lavie.png">
17
- <meta property="og:site_name" content="Rabbit">
18
- <script type="text/javascript" src="/javascripts/jquery.js"></script>
19
- <script type="text/javascript" src="/javascripts/jquery-ui.js"></script>
20
- <!--[if lt IE 9]>
21
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
- <![endif]-->
23
- </head>
24
- <body>
25
- <header id="header">
26
- <h1 class="title">
27
- <a href="/">
28
- <span class="project">Rabbit</span>
29
- <span class="separator">-</span>
30
- <span class="description">How to make a PDF format slide</span>
31
- </a>
32
- </h1>
33
- <div class="facebook-buttons">
34
- <fb:like href="http://www.facebook.com/pages/Rabbit/202603309766491"
35
- layout="standard"></fb:like>
36
- </div>
37
- <pre id="install" class="command">gem install rabbit</pre>
38
- <div class="other-language-links">
39
- <ul>
40
-
41
-
42
-
43
- <li><a href="/ja/how-to-make/pdf.html" alt="日本語" title="日本語"><img src="/images/jp.png"></a></li>
44
-
45
- </ul>
46
- </div>
47
- </header>
48
-
49
- <nav class="menu">
50
- <ul>
51
- <li><a href="/en/">README</a></li>
52
- <li><a href="/en/install/">Install</a></li>
53
- <li><a href="/en/usage.html">Usage</a></li>
54
- <li><a href="/en/how-to-make/">How to make</a></li>
55
- <li><a href="/en/users.html">Shockers</a></li>
56
- <li><a href="/en/development.html">Development</a></li>
57
- </ul>
58
- </nav>
59
-
60
-
61
- <div id="body">
62
- <div id="main">
63
- <section class="contents">
64
- <h2><a name="label-0" id="label-0">About PDF format and Rabbit</a></h2><!-- RDLabel: "About PDF format and Rabbit" -->
65
- <p>Rabbit can be a PDF viewer... TODO</p>
66
- </section>
67
- </div>
68
- <nav id="sidebar">
69
- <h3>The Latest Release</h3>
70
- <p><a href="en/news.html">1.0.7</a> is the latest release. It had been released at 2012-05-29.</p>
71
- <h3>Links</h3>
72
- <ul>
73
- <li><a href="/en/">README</a></li>
74
- <li><a href="/en/install/">Install</a></li>
75
- <li><a href="/en/usage.html">Usage</a></li>
76
- <li><a href="/en/how-to-make/">How to make</a></li>
77
- <li><a href="/en/users.html">Shockers</a></li>
78
- <li><a href="/en/development.html">Development</a></li>
79
- </ul>
80
- </nav>
81
- </div>
82
-
83
-
84
- <footer>
85
- <p class="copyright">&copy; 2004-2012 Kouhei Sutou.</p>
86
- </footer>
87
- <script src="http://connect.facebook.net/en_US/all.js"></script>
88
- <script>
89
- FB.init({
90
- appId : null,
91
- status : true, // check login status
92
- cookie : true, // enable cookies to allow the server to access the session
93
- xfbml : true // parse XFBML
94
- });
95
- </script>
96
- <script type="text/javascript">
97
- if (document.location.protocol != "file:" &&
98
- document.location.host != "localhost") {
99
- var _gaq = _gaq || [];
100
- _gaq.push(['_setAccount', 'UA-12143252-4']);
101
- _gaq.push(['_trackPageview']);
102
-
103
- (function() {
104
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
105
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
106
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
107
- })();
108
- }
109
- </script>
110
- </body>
111
- </html>
@@ -1,151 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Rabbit - How to make a RD format slide source</title>
6
- <link rel="shortcut icon" href="/favicon.ico"
7
- type="image/vnd.microsfot.icon">
8
- <link rel="icon" href="/favicon.png" type="image/png">
9
- <link rel="stylesheet" href="/css/jquery-ui/themes/ui-lightness.css"
10
- type="text/css">
11
- <link rel="stylesheet" href="/css/rabbit.css" type="text/css">
12
- <meta property="fb:page_id" content="rabbit.shockers">
13
- <meta property="fb:admins" content="kouhei.sutou">
14
- <meta property="og:type" content="product">
15
- <meta property="og:image"
16
- content="http://rabbit-shockers.org/images/lavie.png">
17
- <meta property="og:site_name" content="Rabbit">
18
- <script type="text/javascript" src="/javascripts/jquery.js"></script>
19
- <script type="text/javascript" src="/javascripts/jquery-ui.js"></script>
20
- <!--[if lt IE 9]>
21
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
- <![endif]-->
23
- </head>
24
- <body>
25
- <header id="header">
26
- <h1 class="title">
27
- <a href="/">
28
- <span class="project">Rabbit</span>
29
- <span class="separator">-</span>
30
- <span class="description">How to make a RD format slide source</span>
31
- </a>
32
- </h1>
33
- <div class="facebook-buttons">
34
- <fb:like href="http://www.facebook.com/pages/Rabbit/202603309766491"
35
- layout="standard"></fb:like>
36
- </div>
37
- <pre id="install" class="command">gem install rabbit</pre>
38
- <div class="other-language-links">
39
- <ul>
40
-
41
-
42
-
43
- <li><a href="/ja/how-to-make/rd.html" alt="日本語" title="日本語"><img src="/images/jp.png"></a></li>
44
-
45
- </ul>
46
- </div>
47
- </header>
48
-
49
- <nav class="menu">
50
- <ul>
51
- <li><a href="/en/">README</a></li>
52
- <li><a href="/en/install/">Install</a></li>
53
- <li><a href="/en/usage.html">Usage</a></li>
54
- <li><a href="/en/how-to-make/">How to make</a></li>
55
- <li><a href="/en/users.html">Shockers</a></li>
56
- <li><a href="/en/development.html">Development</a></li>
57
- </ul>
58
- </nav>
59
-
60
-
61
- <div id="body">
62
- <div id="main">
63
- <section class="contents">
64
- <h2><a name="label-0" id="label-0">About RD format for Rabbit slide</a></h2><!-- RDLabel: "About RD format for Rabbit slide" -->
65
- <p>Rabbit uses RD format but it uses different usage with
66
- normal document. See <a href="../rd.html">RD</a> about basic RD
67
- syntax, <a href="../sample/">sample slide</a> about sample slide.</p>
68
- <h2><a name="label-1" id="label-1">Page</a></h2><!-- RDLabel: "Page" -->
69
- <p>The largest headline (=) is title of page. The page follows
70
- next title.</p>
71
- <pre>= Title
72
-
73
- SOMETHING
74
-
75
- ...
76
-
77
- = Next Page
78
-
79
- ...</pre>
80
- <p>This example has two pages.</p>
81
- <h2><a name="label-2" id="label-2">Title page</a></h2><!-- RDLabel: "Title page" -->
82
- <p>The first page is the title page. You can specify meta
83
- information of the slide by using a labeled list (:) in the
84
- title page.</p>
85
- <pre>= Title of slide
86
-
87
- : author
88
- Kouhei Sutou
89
- : institution
90
- COZMIXNG</pre>
91
- <p>This example shows the author is Kouhei Sutou and his
92
- institution is COZMIXNG.</p>
93
- <p>At the moment, you can specify subtitle, content_source and
94
- even the theme. "theme" is for the default theme of this slide.</p>
95
- <h2><a name="label-3" id="label-3">Image</a></h2><!-- RDLabel: "Image" -->
96
- <p>Written as a verbatim block. See sample/rabbit-en.rd.</p>
97
- <h2><a name="label-4" id="label-4">Entity reference</a></h2><!-- RDLabel: "Entity reference" -->
98
- <p>Written as an inline verbatim. See sample/rabbit-en.rd.</p>
99
- <h2><a name="label-5" id="label-5">Sub/Superscript</a></h2><!-- RDLabel: "Sub/Superscript" -->
100
- <p>Written as an inline verbatim. See sample/rabbit-en.rd.</p>
101
- <h2><a name="label-6" id="label-6">Headline</a></h2><!-- RDLabel: "Headline" -->
102
- <p>You can only use headlines for the biggest headline. (The
103
- only headline you really need is the title, right?)</p>
104
- <h2><a name="label-7" id="label-7">Footnote</a></h2><!-- RDLabel: "Footnote" -->
105
- <p>You can footnotes but you shouldn't use it in a presentation.</p>
106
- </section>
107
- </div>
108
- <nav id="sidebar">
109
- <h3>The Latest Release</h3>
110
- <p><a href="en/news.html">1.0.7</a> is the latest release. It had been released at 2012-05-29.</p>
111
- <h3>Links</h3>
112
- <ul>
113
- <li><a href="/en/">README</a></li>
114
- <li><a href="/en/install/">Install</a></li>
115
- <li><a href="/en/usage.html">Usage</a></li>
116
- <li><a href="/en/how-to-make/">How to make</a></li>
117
- <li><a href="/en/users.html">Shockers</a></li>
118
- <li><a href="/en/development.html">Development</a></li>
119
- </ul>
120
- </nav>
121
- </div>
122
-
123
-
124
- <footer>
125
- <p class="copyright">&copy; 2004-2012 Kouhei Sutou.</p>
126
- </footer>
127
- <script src="http://connect.facebook.net/en_US/all.js"></script>
128
- <script>
129
- FB.init({
130
- appId : null,
131
- status : true, // check login status
132
- cookie : true, // enable cookies to allow the server to access the session
133
- xfbml : true // parse XFBML
134
- });
135
- </script>
136
- <script type="text/javascript">
137
- if (document.location.protocol != "file:" &&
138
- document.location.host != "localhost") {
139
- var _gaq = _gaq || [];
140
- _gaq.push(['_setAccount', 'UA-12143252-4']);
141
- _gaq.push(['_trackPageview']);
142
-
143
- (function() {
144
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
145
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
146
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
147
- })();
148
- }
149
- </script>
150
- </body>
151
- </html>
@@ -1,249 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Rabbit - How to make a theme</title>
6
- <link rel="shortcut icon" href="/favicon.ico"
7
- type="image/vnd.microsfot.icon">
8
- <link rel="icon" href="/favicon.png" type="image/png">
9
- <link rel="stylesheet" href="/css/jquery-ui/themes/ui-lightness.css"
10
- type="text/css">
11
- <link rel="stylesheet" href="/css/rabbit.css" type="text/css">
12
- <meta property="fb:page_id" content="rabbit.shockers">
13
- <meta property="fb:admins" content="kouhei.sutou">
14
- <meta property="og:type" content="product">
15
- <meta property="og:image"
16
- content="http://rabbit-shockers.org/images/lavie.png">
17
- <meta property="og:site_name" content="Rabbit">
18
- <script type="text/javascript" src="/javascripts/jquery.js"></script>
19
- <script type="text/javascript" src="/javascripts/jquery-ui.js"></script>
20
- <!--[if lt IE 9]>
21
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
- <![endif]-->
23
- </head>
24
- <body>
25
- <header id="header">
26
- <h1 class="title">
27
- <a href="/">
28
- <span class="project">Rabbit</span>
29
- <span class="separator">-</span>
30
- <span class="description">How to make a theme</span>
31
- </a>
32
- </h1>
33
- <div class="facebook-buttons">
34
- <fb:like href="http://www.facebook.com/pages/Rabbit/202603309766491"
35
- layout="standard"></fb:like>
36
- </div>
37
- <pre id="install" class="command">gem install rabbit</pre>
38
- <div class="other-language-links">
39
- <ul>
40
-
41
-
42
-
43
- <li><a href="/ja/how-to-make/theme.html" alt="日本語" title="日本語"><img src="/images/jp.png"></a></li>
44
-
45
- </ul>
46
- </div>
47
- </header>
48
-
49
- <nav class="menu">
50
- <ul>
51
- <li><a href="/en/">README</a></li>
52
- <li><a href="/en/install/">Install</a></li>
53
- <li><a href="/en/usage.html">Usage</a></li>
54
- <li><a href="/en/how-to-make/">How to make</a></li>
55
- <li><a href="/en/users.html">Shockers</a></li>
56
- <li><a href="/en/development.html">Development</a></li>
57
- </ul>
58
- </nav>
59
-
60
-
61
- <div id="body">
62
- <div id="main">
63
- <section class="contents">
64
- <h2><a name="label-0" id="label-0">About theme</a></h2><!-- RDLabel: "About theme" -->
65
- <p>Slide look and feel is independent of slide source
66
- format. It's theme.</p>
67
- <p>There is a slide for testing theme at
68
- sample/theme-bench-en.rab. It's useful to confirm theme.</p>
69
- <h2><a name="label-1" id="label-1">Where do I place the theme?</a></h2><!-- RDLabel: "Where do I place the theme?" -->
70
- <p>Rabbit searches for themes by using ruby's $LOAD_PATH. If you make
71
- a theme, place it into
72
- <var>PATH_OF_INCLUDED_IN_$LOAD_PATH/rabbit/theme/THEME_NAME/THEME_NAME.rb</var>
73
- or <var>DIRECTORY_OF_SOURCE_FILE/THEME_NAME.rb</var>.</p>
74
- <h2><a name="label-2" id="label-2">How do I write a theme?</a></h2><!-- RDLabel: "How do I write a theme?" -->
75
- <p>A theme is just a Ruby script.</p>
76
- <p>You may enumerate the following descriptions in your theme.</p>
77
- <ol>
78
- <li>Select some elements (paragraphs, titles and so on) of
79
- the slide as a target.</li>
80
- <li>Change properties of selected elements and add actions.</li>
81
- </ol>
82
- <p>For example, the following changes color of the title of each
83
- page except the title page.</p>
84
- <pre>match(Page, HeadLine) do |heads|
85
- heads.prop_set("foreground", "red")
86
- end</pre>
87
- <h2><a name="label-3" id="label-3">Property</a></h2><!-- RDLabel: "Property" -->
88
- <p>You can set some properties by using
89
- <code>prop_set</code>. <a href="http://developer.gnome.org/pango/stable/PangoMarkupFormat.html">Pango Text Attribute
90
- Markup</a>
91
- has more information.</p>
92
- <dl>
93
- <dt><a name="label-4" id="label-4">font_desc</a></dt><!-- RDLabel: "font_desc" -->
94
- <dd>
95
- Specifies font description.
96
- </dd>
97
- <dt><a name="label-5" id="label-5">font_family</a></dt><!-- RDLabel: "font_family" -->
98
- <dd>
99
- <p>Specifies font family.</p>
100
- <p>You can get a list of font families by using <code>font_families</code>.</p>
101
- </dd>
102
- <dt><a name="label-6" id="label-6">face</a></dt><!-- RDLabel: "face" -->
103
- <dd>
104
- Same as font_family.
105
- </dd>
106
- <dt><a name="label-7" id="label-7">size</a></dt><!-- RDLabel: "size" -->
107
- <dd>
108
- <p>Specifies size of font.</p>
109
- <p>If you specify size of font by numeric value, you should
110
- convert the value by <code>screen_size</code> and multiply it by
111
- <code>Pango::SCALE</code>. The following example shows how to
112
- specify size of font to 2 (in the Rabbit's theme world).</p>
113
- <pre>screen_size(2) * Pango::SCALE</pre>
114
- </dd>
115
- <dt><a name="label-8" id="label-8">style</a></dt><!-- RDLabel: "style" -->
116
- <dd>
117
- Specifies style of font.
118
- </dd>
119
- <dt><a name="label-9" id="label-9">weight</a></dt><!-- RDLabel: "weight" -->
120
- <dd>
121
- Specifies weight of font.
122
- </dd>
123
- <dt><a name="label-10" id="label-10">variant</a></dt><!-- RDLabel: "variant" -->
124
- <dd>
125
- Specifies variant of font.
126
- </dd>
127
- <dt><a name="label-11" id="label-11">stretch</a></dt><!-- RDLabel: "stretch" -->
128
- <dd>
129
- Specifies stretch of font.
130
- </dd>
131
- <dt><a name="label-12" id="label-12">foreground</a></dt><!-- RDLabel: "foreground" -->
132
- <dd>
133
- Specifies foreground.
134
- </dd>
135
- <dt><a name="label-13" id="label-13">background</a></dt><!-- RDLabel: "background" -->
136
- <dd>
137
- Specifies background.
138
- </dd>
139
- <dt><a name="label-14" id="label-14">underline</a></dt><!-- RDLabel: "underline" -->
140
- <dd>
141
- Specifies kind of underline.
142
- </dd>
143
- <dt><a name="label-15" id="label-15">rise</a></dt><!-- RDLabel: "rise" -->
144
- <dd>
145
- Specifies vertical position of character.
146
- </dd>
147
- <dt><a name="label-16" id="label-16">strike through</a></dt><!-- RDLabel: "strike through" -->
148
- <dd>
149
- Specifies whether use strike line or not.
150
- </dd>
151
- <dt><a name="label-17" id="label-17">fallback</a></dt><!-- RDLabel: "fallback" -->
152
- <dd>
153
- Specifies whether use alternative font or not when
154
- specified font is not found.
155
- </dd>
156
- <dt><a name="label-18" id="label-18">lang</a></dt><!-- RDLabel: "lang" -->
157
- <dd>
158
- Specifies the language.
159
- </dd>
160
- <dt><a name="label-19" id="label-19">b</a></dt><!-- RDLabel: "b" -->
161
- <dd>
162
- Changed to bold.
163
- </dd>
164
- <dt><a name="label-20" id="label-20">big</a></dt><!-- RDLabel: "big" -->
165
- <dd>
166
- Changed size of font to big.
167
- </dd>
168
- <dt><a name="label-21" id="label-21">i</a></dt><!-- RDLabel: "i" -->
169
- <dd>
170
- Changed to italic.
171
- </dd>
172
- <dt><a name="label-22" id="label-22">s</a></dt><!-- RDLabel: "s" -->
173
- <dd>
174
- Draws a strike line.
175
- </dd>
176
- <dt><a name="label-23" id="label-23">sub</a></dt><!-- RDLabel: "sub" -->
177
- <dd>
178
- Changed to subscript.
179
- </dd>
180
- <dt><a name="label-24" id="label-24">sup</a></dt><!-- RDLabel: "sup" -->
181
- <dd>
182
- Changed to superscript.
183
- </dd>
184
- <dt><a name="label-25" id="label-25">small</a></dt><!-- RDLabel: "small" -->
185
- <dd>
186
- Changed size of font to small.
187
- </dd>
188
- <dt><a name="label-26" id="label-26">tt</a></dt><!-- RDLabel: "tt" -->
189
- <dd>
190
- Changed font family to fixed width font.
191
- </dd>
192
- <dt><a name="label-27" id="label-27">u</a></dt><!-- RDLabel: "u" -->
193
- <dd>
194
- Draws a underline.
195
- </dd>
196
- </dl>
197
- <h2><a name="label-28" id="label-28">Hooks</a></h2><!-- RDLabel: "Hooks" -->
198
- <p>You can add procedures which are executed before/after
199
- element is drawn by
200
- <code>add_pre_draw_proc</code>/<code>add_post_draw_proc</code>. And you
201
- can remove them by
202
- <code>clear_pre_draw_procs</code>/<code>clear_post_draw_procs</code>.</p>
203
- <p>The `default' theme has more code. Please see it.</p>
204
- </section>
205
- </div>
206
- <nav id="sidebar">
207
- <h3>The Latest Release</h3>
208
- <p><a href="en/news.html">1.0.7</a> is the latest release. It had been released at 2012-05-29.</p>
209
- <h3>Links</h3>
210
- <ul>
211
- <li><a href="/en/">README</a></li>
212
- <li><a href="/en/install/">Install</a></li>
213
- <li><a href="/en/usage.html">Usage</a></li>
214
- <li><a href="/en/how-to-make/">How to make</a></li>
215
- <li><a href="/en/users.html">Shockers</a></li>
216
- <li><a href="/en/development.html">Development</a></li>
217
- </ul>
218
- </nav>
219
- </div>
220
-
221
-
222
- <footer>
223
- <p class="copyright">&copy; 2004-2012 Kouhei Sutou.</p>
224
- </footer>
225
- <script src="http://connect.facebook.net/en_US/all.js"></script>
226
- <script>
227
- FB.init({
228
- appId : null,
229
- status : true, // check login status
230
- cookie : true, // enable cookies to allow the server to access the session
231
- xfbml : true // parse XFBML
232
- });
233
- </script>
234
- <script type="text/javascript">
235
- if (document.location.protocol != "file:" &&
236
- document.location.host != "localhost") {
237
- var _gaq = _gaq || [];
238
- _gaq.push(['_setAccount', 'UA-12143252-4']);
239
- _gaq.push(['_trackPageview']);
240
-
241
- (function() {
242
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
243
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
244
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
245
- })();
246
- }
247
- </script>
248
- </body>
249
- </html>