docgenerator 1.2.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. data/build_test_and_doc.rb +505 -0
  2. data/examples/creole_example.rb +82 -0
  3. data/examples/creole_example_footnote.rb +67 -0
  4. data/examples/creole_example_placeholder.rb +77 -0
  5. data/examples/creole_example_rail.rb +154 -0
  6. data/examples/creole_example_rubycode.rb +144 -0
  7. data/examples/creole_example_struktex.rb +169 -0
  8. data/examples/docgenerator_example.rb +1 -1
  9. data/examples/docgenerator_example_footnote.rb +1 -0
  10. data/examples/docgenerator_example_list.rb +3 -0
  11. data/examples/docgenerator_example_restrictions.rb +1 -1
  12. data/examples/docgenerator_example_tabular.rb +1 -1
  13. data/examples/docgenerator_example_tripfalls.rb +2 -2
  14. data/examples/results/readme +2 -1
  15. data/examples/wiki2docgenerator_example.rb +61 -32
  16. data/lib/creole/creole2doc.rb +57 -58
  17. data/lib/creole/creole_characters.rb +56 -0
  18. data/lib/creole/creole_inclusion_and_plugins.rb +59 -284
  19. data/lib/creole/creole_inclusions.rb +142 -0
  20. data/lib/creole/creole_placeholder.rb +57 -23
  21. data/lib/creole/creole_plugins.rb +198 -0
  22. data/lib/creole/creole_tabular.rb +16 -8
  23. data/lib/creole/plugins/rail.rb +182 -0
  24. data/lib/creole/plugins/rubycode4creole.rb +136 -0
  25. data/lib/creole/plugins/struktex.rb +59 -0
  26. data/lib/creole/plugins/todonotes.rb +70 -0
  27. data/lib/docgenerator.rb +161 -71
  28. data/lib/docgenerator/attribute.rb +189 -156
  29. data/lib/docgenerator/characters.rb +824 -267
  30. data/lib/docgenerator/compatibility_v1.rb +249 -0
  31. data/lib/docgenerator/css.rb +53 -32
  32. data/lib/docgenerator/document.rb +119 -56
  33. data/lib/docgenerator/element.rb +304 -351
  34. data/lib/docgenerator/element_meta.rb +303 -0
  35. data/lib/docgenerator/elements.rb +1112 -481
  36. data/lib/docgenerator/environments.rb +153 -62
  37. data/lib/docgenerator/footnote.rb +30 -9
  38. data/lib/docgenerator/lists.rb +71 -47
  39. data/lib/docgenerator/packages/attachfile.rb +136 -0
  40. data/lib/{packages/docgenerator_caption.rb → docgenerator/packages/caption.rb} +28 -19
  41. data/lib/docgenerator/packages/hyperref.rb +194 -0
  42. data/lib/docgenerator/packages/listings.rb +179 -0
  43. data/lib/docgenerator/packages/pdfpages.rb +43 -0
  44. data/lib/docgenerator/packages/rubycode4doc.rb +227 -0
  45. data/lib/{packages/docgenerator_scrlettr2.rb → docgenerator/packages/scrlettr2.rb} +25 -16
  46. data/lib/docgenerator/packages/scrpage2.rb +410 -0
  47. data/lib/docgenerator/packages/struktex.rb +447 -0
  48. data/lib/docgenerator/packages/todonotes.rb +85 -0
  49. data/lib/{packages/docgenerator_url.rb → docgenerator/packages/url.rb} +7 -6
  50. data/lib/docgenerator/sections.rb +257 -83
  51. data/lib/docgenerator/standard.rb +19 -11
  52. data/lib/docgenerator/tabular.rb +234 -118
  53. data/lib/{templates → docgenerator/templates}/docgenerator_template.rb +52 -44
  54. data/lib/{templates → docgenerator/templates}/docgenerator_template.yaml +0 -0
  55. data/lib/{templates → docgenerator/templates}/docgenerator_template_css.rb +22 -16
  56. data/lib/wiki2doc/plugins/rubycode4wiki.rb +53 -0
  57. data/lib/wiki2doc/plugins/struktex.rb +12 -0
  58. data/lib/wiki2doc/wiki2docgenerator.rb +39 -38
  59. data/lib/wiki2doc/wikimedia_document.rb +24 -0
  60. data/manpage_elements.rb +10411 -0
  61. data/readme.rd +34 -24
  62. data/unittest/creole_testtext.creole +11 -0
  63. data/unittest/expected/test_document_usepackage_undefined.log +2 -2
  64. data/unittest/expected/test_runtex.stdout +0 -1
  65. data/unittest/expected/test_runtex_2.stdout +0 -1
  66. data/unittest/expected/toc_css.css +3 -2
  67. data/unittest/expected_creole/test_creole_characters_all.creole +28 -0
  68. data/unittest/expected_creole/test_creole_characters_all.html +15 -15
  69. data/unittest/expected_creole/test_creole_characters_all.latex +15 -15
  70. data/unittest/expected_creole/test_creole_footnotes_groupid.html +15 -0
  71. data/unittest/expected_creole/test_creole_links_file.html +2 -2
  72. data/unittest/expected_creole/test_creole_links_file.latex +2 -2
  73. data/unittest/expected_creole/test_creole_links_file.text +2 -2
  74. data/unittest/expected_creole/test_creole_picture_link.html +1 -1
  75. data/unittest/expected_creole_rail/test_rail_creole_object.tex +33 -0
  76. data/unittest/expected_creole_rail/test_rail_creole_placeholder.tex +40 -0
  77. data/unittest/expected_rubycode4doc/creole_complete.html +26 -0
  78. data/unittest/expected_rubycode4doc/creole_complete.tex +40 -0
  79. data/unittest/expected_rubycode4doc/creole_in_tab.html +4 -0
  80. data/unittest/expected_rubycode4doc/creole_in_tab.tex +6 -0
  81. data/unittest/expected_rubycode4doc/creole_inline_ruby.html +7 -0
  82. data/unittest/expected_rubycode4doc/creole_output.html +2 -0
  83. data/unittest/expected_rubycode4doc/creole_output.tex +4 -0
  84. data/unittest/expected_rubycode4doc/creole_rubycode.html +1 -0
  85. data/unittest/expected_rubycode4doc/creole_rubycode.tex +3 -0
  86. data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.html +1 -0
  87. data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.tex +3 -0
  88. data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.html +3 -0
  89. data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.tex +5 -0
  90. data/unittest/expected_rubycode4doc/wiki_1.html +8 -0
  91. data/unittest/expected_rubycode4doc/wiki_2.html +8 -0
  92. data/unittest/expected_rubycode4doc/wiki_3.html +9 -0
  93. data/unittest/expected_rubycode4doc/wiki_immediate_1.html +5 -0
  94. data/unittest/expected_rubycode4doc/wiki_immediate_2.html +5 -0
  95. data/unittest/expected_rubycode4doc/wiki_immediate_3.html +8 -0
  96. data/unittest/expected_rubycode4doc/wiki_immediate_full.html +21 -0
  97. data/unittest/expected_struktex/test_struktex_krug.creole +15 -0
  98. data/unittest/expected_struktex/test_struktex_krug.tex +19 -0
  99. data/unittest/expected_struktex/test_struktex_krug.wiki +15 -0
  100. data/unittest/expected_struktex/test_struktex_statement.creole +7 -0
  101. data/unittest/expected_struktex/test_struktex_statement.tex +9 -0
  102. data/unittest/expected_struktex/test_struktex_statement.wiki +7 -0
  103. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.html +0 -0
  104. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.latex +0 -0
  105. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.text +0 -0
  106. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.wiki +0 -0
  107. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.html +1 -1
  108. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.latex +1 -1
  109. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.text +1 -1
  110. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.wiki +1 -1
  111. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.html +0 -0
  112. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.latex +0 -0
  113. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.text +0 -0
  114. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.wiki +0 -0
  115. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote_2.html +0 -0
  116. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote_groupid.html +0 -0
  117. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.html +0 -0
  118. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.latex +0 -0
  119. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.text +0 -0
  120. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.wiki +0 -0
  121. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.html +0 -0
  122. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.latex +0 -0
  123. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.text +0 -0
  124. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.wiki +0 -0
  125. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_label.html +0 -0
  126. data/unittest/expected_wikimedia/test_wiki_link.html +8 -0
  127. data/unittest/expected_wikimedia/test_wiki_link.latex +17 -0
  128. data/unittest/expected_wikimedia/test_wiki_link.wiki +11 -0
  129. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.html +0 -0
  130. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.latex +0 -0
  131. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.text +0 -0
  132. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.wiki +0 -0
  133. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.html +0 -0
  134. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.latex +0 -0
  135. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.text +0 -0
  136. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.wiki +0 -0
  137. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.html +0 -0
  138. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.latex +0 -0
  139. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.text +0 -0
  140. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.wiki +0 -0
  141. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.html +0 -0
  142. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.latex +0 -0
  143. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.text +0 -0
  144. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.wiki +0 -0
  145. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.html +0 -0
  146. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.latex +0 -0
  147. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.text +0 -0
  148. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.wiki +0 -0
  149. data/unittest/expected_wikimedia/test_wiki_picture.html +55 -0
  150. data/unittest/expected_wikimedia/test_wiki_picture.latex +76 -0
  151. data/unittest/expected_wikimedia/test_wiki_picture_thumb.html +5 -0
  152. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.html +0 -0
  153. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.latex +0 -0
  154. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.wiki +0 -0
  155. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.html +0 -0
  156. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.latex +0 -0
  157. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.text +0 -0
  158. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.wiki +0 -0
  159. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.html +0 -0
  160. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.latex +0 -0
  161. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.text +0 -0
  162. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.wiki +0 -0
  163. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.html +0 -0
  164. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.latex +0 -0
  165. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.text +0 -0
  166. data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.wiki +0 -0
  167. data/unittest/{unittest_creole2doc.rb → unittest_creole.rb} +385 -476
  168. data/unittest/unittest_creole_placeholders.rb +272 -0
  169. data/unittest/unittest_creole_plugin_rail.rb +147 -0
  170. data/unittest/unittest_docgenerator.rb +206 -332
  171. data/unittest/unittest_docgenerator_characters.rb +650 -0
  172. data/unittest/unittest_docgenerator_runtex.rb +48 -20
  173. data/unittest/unittest_packages_struktex.rb +187 -0
  174. data/unittest/unittest_rubycode4doc.rb +275 -0
  175. data/unittest/unittest_wikimedia.rb +479 -0
  176. metadata +245 -172
  177. data/examples/results_expected/docgenerator_example.html +0 -39
  178. data/examples/results_expected/docgenerator_example.pdf +0 -0
  179. data/examples/results_expected/docgenerator_example.tex +0 -56
  180. data/examples/results_expected/docgenerator_example_footnote.html +0 -40
  181. data/examples/results_expected/docgenerator_example_footnote.pdf +0 -0
  182. data/examples/results_expected/docgenerator_example_footnote.tex +0 -50
  183. data/examples/results_expected/docgenerator_example_list.html +0 -18
  184. data/examples/results_expected/docgenerator_example_list.pdf +0 -0
  185. data/examples/results_expected/docgenerator_example_list.tex +0 -46
  186. data/examples/results_expected/docgenerator_example_restrictions.html +0 -22
  187. data/examples/results_expected/docgenerator_example_restrictions.pdf +0 -0
  188. data/examples/results_expected/docgenerator_example_restrictions.tex +0 -31
  189. data/examples/results_expected/docgenerator_example_tabular.html +0 -37
  190. data/examples/results_expected/docgenerator_example_tabular.pdf +0 -0
  191. data/examples/results_expected/docgenerator_example_tabular.tex +0 -41
  192. data/examples/results_expected/docgenerator_example_tripfalls.html +0 -27
  193. data/examples/results_expected/docgenerator_example_tripfalls.pdf +0 -0
  194. data/examples/results_expected/docgenerator_example_tripfalls.tex +0 -31
  195. data/lib/packages/docgenerator_attachfile.rb +0 -71
  196. data/lib/packages/docgenerator_hyperref.rb +0 -109
  197. data/lib/packages/docgenerator_listings.rb +0 -103
  198. data/lib/packages/docgenerator_pdfpages.rb +0 -24
  199. data/lib/packages/docgenerator_scrpage2.rb +0 -172
  200. data/self_docgenerator.rb +0 -163
  201. data/unittest/expected_wiki/test_wiki_link.html +0 -8
  202. data/unittest/expected_wiki/test_wiki_link.latex +0 -17
  203. data/unittest/expected_wiki/test_wiki_link.wiki +0 -11
  204. data/unittest/expected_wiki/test_wiki_picture.html +0 -55
  205. data/unittest/expected_wiki/test_wiki_picture.latex +0 -76
  206. data/unittest/expected_wiki/test_wiki_picture_thumb.html +0 -5
  207. data/unittest/test_rakefile_docgenerator.rb +0 -43
  208. data/unittest/unittest_versions.rb +0 -44
  209. data/unittest/unittest_wiki2doc.rb +0 -464
data/readme.rd CHANGED
@@ -7,11 +7,8 @@ The docgenerator-gem allows the definition of documents and export to
7
7
  * context (only rudimentory tests)
8
8
 
9
9
 
10
- The docgenerator_tools-gem contains some programs for
11
- special documents, based on the docgenerator-gem.
12
-
13
10
  =docgenerator-gem
14
- Defines a programmer interface to define documents.
11
+ Defines a programmer interface to create documents.
15
12
 
16
13
  Please check the examples:
17
14
  * examples/docgenerator_example.rb
@@ -22,28 +19,29 @@ Please check the examples:
22
19
  * examples/docgenerator_example_tripfalls.rb
23
20
 
24
21
 
25
- This package is the base of
26
- * creole2doc.rb - a Creole-Wiki to TeX/HTML-Translator (part of the docgenerator-gem)
27
- * wiki2docgenerator.rb - a Wiki to TeX/HTML-Translator (part of the docgenerator-gem)
28
- * yaml2presentation.rb - a presentation generator for LaTeX-Beamer-class. Can also be used to build image galleries.
29
- (part of docgenerator_tools-gem)
30
-
31
-
22
+ This gem contains also
23
+ * creole/creole2doc.rb - a Creole-Wiki to TeX/HTML-Translator
24
+ * wiki2doc/wiki2docgenerator.rb - a Wiki to TeX/HTML-Translator
32
25
 
33
- =docgenerator_tools-gem
34
- Some tools based on the docgenerator-package:
35
26
 
36
- Special LaTeX-documents:
37
- * yaml2presentation.rb: presentations (beamer.sty)
38
- Uses packages/docgenerator_beamer.rb
39
- * rail4creole.rb: build rail-diagramms (rail.sty)
40
- See examples_tools/rail_diagramm_creole.rb
41
- * docgenerator_tools/code2structogramm.rb: Build structogramms
42
- See examples_tools/code2structogramm_test_creole.rb
43
- * docgenerator_tools/rubycode4doc/rubycode4doc_creole.rb:
27
+ There is also support of some special (LaTeX)-documents:
28
+ * lib/creole/plugins/rail.rb: build rail-diagramms (rail.sty)
29
+ See examples/creole_example_rail.rb
30
+ * lib/creole/plugins/struktex.rb: Build structogramms (struktex.sty)
31
+ See examples/creole_example_struktex.rb
32
+ * lib/creole/plugins/rubycode4creole.rb:
44
33
  Use ruby-code as generator for wiki-content.
45
34
  Can be used to build examples.
46
- See examples_tools/rubycode_wiki.rb
35
+ See examples/creole_example_rubycode.rb
36
+
37
+ ==Gems based on docgenerator
38
+ ===docgenerator4presentation
39
+ A presentation generator for LaTeX-Beamer-class.
40
+ Can also be used to build image galleries.
41
+
42
+ ===docgenerator4calendar
43
+ Generation of calendars and event lists.
44
+
47
45
 
48
46
  =Version history
49
47
  0.0.x:
@@ -125,8 +123,20 @@ Special LaTeX-documents:
125
123
  * Reorganize unit tests
126
124
  * Ruby 1.9 enabled
127
125
 
128
- 1.2.1
126
+ 1.2.1 2011-02-20
129
127
  * More Ruby 1.9.1 additions (convert encodings)
130
128
  * Creole: Images with option width (LaTeX)
131
129
  * Corrected examples, added expected results of the examples (increases gem size)
132
- * corrections footnote handling
130
+ * corrections footnote handling
131
+
132
+ 1.2.2
133
+ * correction wiki2docgenerator.rb, wiki2docgenerator_example.rb
134
+ * add creole2doc_example.rb
135
+ * add todonotes support (only LaTeX)
136
+
137
+ 2.0.0
138
+ * Pack everything in module Docgenerator
139
+ * Group classes to modules
140
+ * clean up lib-folder
141
+ * docgenerator_tools integrated in docgenerator (and docgenerator4presentation-gem)
142
+
@@ -0,0 +1,11 @@
1
+ =Title
2
+ ==Subtitle
3
+ Text
4
+
5
+ * item
6
+ * item
7
+ * item
8
+
9
+ # item
10
+ # item
11
+ # item
@@ -1,2 +1,2 @@
1
- DEBUG docgenerator: usepackage: Try to load packages/docgenerator_undefined package.rb
2
- INFO docgenerator: usepackage: No supporting definitions packages/docgenerator_undefined package.rb found
1
+ DEBUG docgenerator: usepackage: Try to load docgenerator/packages/undefined package.rb
2
+ INFO docgenerator: usepackage: No supporting definitions docgenerator/packages/undefined package.rb found
@@ -1,3 +1,2 @@
1
- Save changed test_runtex.tex
2
1
  Statistic for test_runtex:
3
2
  Document : 1 page (test_runtex.log)
@@ -1,3 +1,2 @@
1
- Save changed test_runtex_2.tex
2
1
  Statistic for test_runtex_2:
3
2
  Document : 1 page (test_runtex_2.log)
@@ -3,8 +3,9 @@
3
3
  CSS for table of contents
4
4
  */
5
5
  div.toc {
6
- background: lightgray;
7
- border: 2px solid;
6
+ background-color: lightgray;
7
+ border-style: solid;
8
+ border-width: 2px;
8
9
  float: right;
9
10
  width: 45%;
10
11
  }
@@ -0,0 +1,28 @@
1
+
2
+ * Docgenerator::Characters::Dollar: $
3
+ * Docgenerator::Characters::Percent:
4
+
5
+ * Docgenerator::Characters::Ampersand:
6
+
7
+ * Docgenerator::Characters::Rightarrow:
8
+
9
+ * Docgenerator::Characters::Leftarrow:
10
+
11
+ * Docgenerator::Characters::LLeftarrow:
12
+
13
+ * Docgenerator::Characters::RRightarrow:
14
+
15
+ * Docgenerator::Characters::Underscore: _
16
+ * Docgenerator::Characters::Sbquo:
17
+
18
+ * Docgenerator::Characters::Bdquo:
19
+
20
+ * Docgenerator::Characters::Ldots:
21
+
22
+ * Docgenerator::Characters::Rsquo:
23
+
24
+ * Docgenerator::Characters::Ldquo:
25
+
26
+ * Docgenerator::Characters::Ndash:
27
+
28
+ * Docgenerator::Characters::Mdash:
@@ -1,17 +1,17 @@
1
1
  <ul >
2
- <li >$ </li>
3
- <li >% </li>
4
- <li >&amp; </li>
5
- <li >&rarr; </li>
6
- <li >&larr; </li>
7
- <li >&lArr; </li>
8
- <li >&rArr; </li>
9
- <li >_ </li>
10
- <li >&ndash; </li>
11
- <li >&mdash; </li>
12
- <li >&rsquo; </li>
13
- <li >&sbquo; </li>
14
- <li >&ldquo; </li>
15
- <li >&bdquo; </li>
16
- <li >&hellip;</li>
2
+ <li > Docgenerator::Characters::Dollar: $ </li>
3
+ <li > Docgenerator::Characters::Percent: % </li>
4
+ <li > Docgenerator::Characters::Ampersand: &amp; </li>
5
+ <li > Docgenerator::Characters::Rightarrow: &rarr; </li>
6
+ <li > Docgenerator::Characters::Leftarrow: &larr; </li>
7
+ <li > Docgenerator::Characters::LLeftarrow: &lArr; </li>
8
+ <li > Docgenerator::Characters::RRightarrow: &rArr; </li>
9
+ <li > Docgenerator::Characters::Underscore: _ </li>
10
+ <li > Docgenerator::Characters::Singlelowquotemark: &sbquo; </li>
11
+ <li > Docgenerator::Characters::Doublelowquotemark: &bdquo; </li>
12
+ <li > Docgenerator::Characters::Ldots: &hellip; </li>
13
+ <li > Docgenerator::Characters::Rightsinglequotemark: &rsquo; </li>
14
+ <li > Docgenerator::Characters::Leftdoublequotemark: &ldquo; </li>
15
+ <li > Docgenerator::Characters::Ndash: &ndash; </li>
16
+ <li > Docgenerator::Characters::Mdash: &mdash;</li>
17
17
  </ul>
@@ -1,34 +1,34 @@
1
1
 
2
2
  \begin{itemize}
3
3
 
4
- \item \$
4
+ \item Docgenerator::Characters::Dollar: $
5
5
 
6
- \item \%
6
+ \item Docgenerator::Characters::Percent: \%
7
7
 
8
- \item \&
8
+ \item Docgenerator::Characters::Ampersand: \&
9
9
 
10
- \item \ensuremath{\rightarrow}
10
+ \item Docgenerator::Characters::Rightarrow: \ensuremath{\rightarrow}
11
11
 
12
- \item \ensuremath{\leftarrow}
12
+ \item Docgenerator::Characters::Leftarrow: \ensuremath{\leftarrow}
13
13
 
14
- \item \ensuremath{\Lefttarrow}
14
+ \item Docgenerator::Characters::LLeftarrow: \ensuremath{\Lefttarrow}
15
15
 
16
- \item \ensuremath{\Rightarrow}
16
+ \item Docgenerator::Characters::RRightarrow: \ensuremath{\Rightarrow}
17
17
 
18
- \item \_
18
+ \item Docgenerator::Characters::Underscore: \_
19
19
 
20
- \item --
20
+ \item Docgenerator::Characters::Singlelowquotemark: \glq
21
21
 
22
- \item ---
22
+ \item Docgenerator::Characters::Doublelowquotemark: \glqq
23
23
 
24
- \item
24
+ \item Docgenerator::Characters::Ldots: \ldots
25
25
 
26
- \item \sbquo{}
26
+ \item Docgenerator::Characters::Rightsinglequotemark: \rq
27
27
 
28
- \item ``
28
+ \item Docgenerator::Characters::Leftdoublequotemark: \grqq
29
29
 
30
- \item "
30
+ \item Docgenerator::Characters::Ndash: --
31
31
 
32
- \item \ldots
32
+ \item Docgenerator::Characters::Mdash: ---
33
33
  \end{itemize}
34
34
 
@@ -0,0 +1,15 @@
1
+ <p >
2
+ Text<sup><a href="#footnote-1">1</a></sup> more text<sup><a href="#g1-1">1</a></sup>
3
+ </p>
4
+ <hr />
5
+ <p >
6
+ <p ><sup ><a name="footnote-1">1</a></sup>This is a footnote<br />
7
+ </p>
8
+
9
+ </p>
10
+ <hr />
11
+ <p >
12
+ <p ><sup ><a name="g1-1">1</a></sup>This is a footnote in group g1<br />
13
+ </p>
14
+
15
+ </p>
@@ -1,6 +1,6 @@
1
1
  <p >
2
- <a href = "./unittest_creole2doc.rb" >./unittest_creole2doc.rb</a>
2
+ <a href = "./unittest_creole.rb" >./unittest_creole.rb</a>
3
3
  </p>
4
4
  <p >
5
- <a href = "./unittest_creole2doc.rb" >This unittest-source</a>
5
+ <a href = "./unittest_creole.rb" >This unittest-source</a>
6
6
  </p>
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
- \href{./unittest_creole2doc.rb}{./unittest_creole2doc.rb}
3
+ \href{./unittest_creole.rb}{./unittest_creole.rb}
4
4
 
5
5
 
6
6
 
7
- \href{./unittest_creole2doc.rb}{This unittest-source}
7
+ \href{./unittest_creole.rb}{This unittest-source}
8
8
 
@@ -1,4 +1,4 @@
1
1
 
2
- ./unittest_creole2doc.rb (./unittest_creole2doc.rb)
2
+ ./unittest_creole.rb (./unittest_creole.rb)
3
3
 
4
- This unittest-source (./unittest_creole2doc.rb)
4
+ This unittest-source (./unittest_creole.rb)
@@ -1,5 +1,5 @@
1
1
  <p >
2
- <a href = "./unittest_creole2doc.rb" ><img src = "Red_Flower.jpg" /></a> - if you click on the image, will goto "some link"
2
+ <a href = "./unittest_creole.rb" ><img src = "Red_Flower.jpg" /></a> - if you click on the image, will goto "some link"
3
3
  </p>
4
4
  <p >
5
5
  <a href = "http://example.com/" ><img src = "Red_Flower.jpg" /></a> - same as above: picture links to url
@@ -0,0 +1,33 @@
1
+ <<prefix>>
2
+ \documentclass[ngerman]{scrartcl}
3
+ \usepackage{babel}
4
+ \usepackage[ansinew]{inputenc}
5
+ \usepackage{hyperref}
6
+ % ----------------------------------------------------------------
7
+ \usepackage{rail}
8
+
9
+ \title{Rail-Diagramms in Creole}
10
+ \hypersetup{pdftitle={Rail-Diagramms in Creole}}
11
+
12
+ % ----------------------------------------------------------------
13
+ \begin{document}
14
+ \section{Rail-Diagramms}
15
+ \subsection{Via Ruby-object}
16
+
17
+
18
+ %
19
+ % Define a rail-diagramm block
20
+ %
21
+ \begin{rail}
22
+ block :
23
+ ( lbrace | 'begin' )
24
+ ( ( '|' ( variable + ',' ) '|' ) | [Keine Blockvariablen] )
25
+ comm
26
+ ( rbrace | 'end' )
27
+ ;
28
+ \end{rail}
29
+
30
+
31
+
32
+ \end{document}
33
+ % ----------------------------------------------------------------
@@ -0,0 +1,40 @@
1
+ <<prefix>>
2
+ \documentclass[ngerman]{scrartcl}
3
+ \usepackage{babel}
4
+ \usepackage[ansinew]{inputenc}
5
+ \usepackage{hyperref}
6
+ % ----------------------------------------------------------------
7
+ \usepackage{rail}
8
+
9
+ \title{Rail-Diagramms in Creole}
10
+ \hypersetup{pdftitle={Rail-Diagramms in Creole}}
11
+
12
+ % ----------------------------------------------------------------
13
+ \begin{document}
14
+ \section{Rail-Diagramms}
15
+ \subsection{Via Placeholder}
16
+ %
17
+ % Define a rail-diagramm test
18
+ %
19
+ \begin{rail}
20
+ test :
21
+ [1] (
22
+ ( '[' string ']' )
23
+ ? body[2--6] + '|'
24
+ )
25
+ | [2] body[3--6] '*' body[5--6]
26
+ | [2] body[3--6] '+' body[5--6]
27
+ | [3] ( body[4--5] + )
28
+ | [4] body[5] '?'
29
+ | [5] identifier ( '[' string ']' ) ?
30
+ | [5] quote string quote
31
+ | [5] dquote string dquote
32
+ | [5] '(' body[1--6] ')'
33
+ | [5] cr
34
+ | [6]
35
+ ;
36
+ ;
37
+ \end{rail}
38
+
39
+ \end{document}
40
+ % ----------------------------------------------------------------
@@ -0,0 +1,26 @@
1
+ <p >
2
+ rubycode
3
+ </p>
4
+ <pre style = "rubycode" >1 + 1</pre>
5
+ <hr />
6
+ <p >
7
+ rubycode_output
8
+ </p>
9
+ <pre style = "rubycode_output" >2</pre>
10
+ <hr />
11
+ <p >
12
+ rubycode_evaluated
13
+ </p>
14
+ <pre style = "rubycode_evaluated" >1 + 1 # -&gt; 2 </pre>
15
+ <hr />
16
+ <p >
17
+ rubycode_in_tab
18
+ </p>
19
+
20
+ <table border = "1" ><tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td >No</td><td >Code</td><td >Result</td><td >Output</td><td >Output2</td></tr>
21
+ <tr ><td >1</td><td ><pre class = "rubycode" >1 + 1</pre></td><td >2</td><td ></td><td ><pre class = "ruby_result" ></pre></td></tr>
22
+ </table>
23
+ <hr />
24
+ <pre class = "rubycode_with_result" >
25
+ 1 + 1 # -> 2
26
+ </pre>
@@ -0,0 +1,40 @@
1
+
2
+
3
+ rubycode
4
+
5
+
6
+ \begin{verbatim}1 + 1\end{verbatim}
7
+
8
+ \hrulefill
9
+
10
+
11
+ rubycode\_output
12
+
13
+
14
+ \begin{verbatim}2\end{verbatim}
15
+
16
+ \hrulefill
17
+
18
+
19
+ rubycode\_evaluated
20
+
21
+
22
+ \begin{verbatim}1 + 1 # -> 2 \end{verbatim}
23
+
24
+ \hrulefill
25
+
26
+
27
+ rubycode\_in\_tab
28
+
29
+
30
+ \begin{tabular}{lp{3cm}llp{3cm}}No & Code & Result & Output & Output2\\\hline
31
+ 1 & \lstinline[]!1 + 1! & 2 & &
32
+ \begin{verbatim}\end{verbatim}
33
+ \\
34
+ \end{tabular}
35
+ \hrulefill
36
+
37
+ \begin{lstlisting}[numbers={left}, numberstyle={\tiny}]
38
+ 1 + 1 # -> 2
39
+ \end{lstlisting}
40
+
@@ -0,0 +1,4 @@
1
+
2
+ <table border = "1" ><tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td >No</td><td >Code</td><td >Result</td><td >Output</td><td >Output2</td></tr>
3
+ <tr ><td >1</td><td ><pre class = "rubycode" >1 + 1</pre></td><td >2</td><td ></td><td ><pre class = "ruby_result" ></pre></td></tr>
4
+ </table>
@@ -0,0 +1,6 @@
1
+
2
+ \begin{tabular}{lp{3cm}llp{3cm}}No & Code & Result & Output & Output2\\\hline
3
+ 1 & \lstinline[]!1 + 1! & 2 & &
4
+ \begin{verbatim}\end{verbatim}
5
+ \\
6
+ \end{tabular}