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
@@ -0,0 +1,650 @@
1
+ #encoding: utf-8
2
+
3
+ =begin rdoc
4
+ Test generated by build_test.rb 2011-03-24
5
+ =end
6
+
7
+ gem 'test-unit'
8
+ require 'test/unit'
9
+
10
+ if $0 == __FILE__
11
+ $:.unshift("../lib")
12
+ end
13
+ require 'docgenerator'
14
+
15
+ =begin rdoc
16
+ Define a new outputter to catch data into an array
17
+ =end
18
+ class ArrayOutputter < Log4r::StdoutOutputter
19
+ =begin rdoc
20
+ Collect messages in array.
21
+ =end
22
+ def write(message)
23
+ @messages ||= [] #create with first call
24
+ @messages << message
25
+ end
26
+ =begin rdoc
27
+ Clear message array and return messages
28
+ =end
29
+ def flush
30
+ @messages ||= [] #create with first call
31
+ messages = @messages.dup
32
+ @messages.clear
33
+ messages
34
+ end
35
+ end #ArrayOutputter
36
+
37
+ include Docgenerator
38
+ class Test_characters < Test::Unit::TestCase
39
+ def self.startup()
40
+ #DEBUG would contain messages
41
+ @@log = Log4r::Logger.new('Test_characters', Log4r::INFO)
42
+ @@log.outputters = @@logoutputter = ArrayOutputter.new('xx')
43
+ end #self.startup()
44
+
45
+
46
+ def test_character_Shy_html()
47
+ assert_equal( '&shy;', element(:shy).to_html( :log => @@log))
48
+ assert_equal( [], @@logoutputter.flush)
49
+ end #test_character_Shy_html
50
+
51
+ def test_character_Shy_latex()
52
+ assert_equal( '"-', element(:shy).to_latex( :log => @@log))
53
+ assert_equal( [], @@logoutputter.flush)
54
+ end #test_character_Shy_latex
55
+
56
+ def test_character_Shy_creole()
57
+ assert_equal( '{{shy}}', element(:shy).to_creole( :log => @@log))
58
+ assert_equal( [], @@logoutputter.flush)
59
+ end #test_character_Shy_creole
60
+
61
+ def test_character_Space_html()
62
+ assert_equal( '&ensp;', element(:space).to_html( :log => @@log))
63
+ assert_equal( [], @@logoutputter.flush)
64
+ end #test_character_Space_html
65
+
66
+ def test_character_Space_latex()
67
+ assert_equal( '~', element(:space).to_latex( :log => @@log))
68
+ assert_equal( [], @@logoutputter.flush)
69
+ end #test_character_Space_latex
70
+
71
+ def test_character_Bigspace_html()
72
+ assert_equal( '&emsp;', element(:bigspace).to_html( :log => @@log))
73
+ assert_equal( [], @@logoutputter.flush)
74
+ end #test_character_Bigspace_html
75
+
76
+ def test_character_Bigspace_latex()
77
+ assert_equal( '~~', element(:bigspace).to_latex( :log => @@log))
78
+ assert_equal( [], @@logoutputter.flush)
79
+ end #test_character_Bigspace_latex
80
+
81
+ def test_character_Nbsp_html()
82
+ assert_equal( '&nbsp;', element(:nbsp).to_html( :log => @@log))
83
+ assert_equal( [], @@logoutputter.flush)
84
+ end #test_character_Nbsp_html
85
+
86
+ def test_character_Nbsp_latex()
87
+ assert_equal( '~', element(:nbsp).to_latex( :log => @@log))
88
+ assert_equal( [], @@logoutputter.flush)
89
+ end #test_character_Nbsp_latex
90
+
91
+ def test_character_Euro_html()
92
+ assert_equal( '&euro;', element(:euro).to_html( :log => @@log))
93
+ assert_equal( [], @@logoutputter.flush)
94
+ end #test_character_Euro_html
95
+
96
+ def test_character_Euro_latex()
97
+ assert_equal( '\euro', element(:euro).to_latex( :log => @@log))
98
+ assert_equal( [], @@logoutputter.flush)
99
+ end #test_character_Euro_latex
100
+
101
+ def test_character_Euros_html()
102
+ assert_equal( '1&euro;', element(:euros, {}, 1).to_html( :log => @@log))
103
+ assert_equal( [], @@logoutputter.flush)
104
+ end #test_character_Euros_html
105
+
106
+ def test_character_Euros_latex()
107
+ assert_equal( '\euros{1}', element(:euros, {}, 1).to_latex( :log => @@log))
108
+ assert_equal( [], @@logoutputter.flush)
109
+ end #test_character_Euros_latex
110
+
111
+ def test_character_Percent_html()
112
+ assert_equal( '%', element(:percent).to_html( :log => @@log))
113
+ assert_equal( [], @@logoutputter.flush)
114
+ end #test_character_Percent_html
115
+
116
+ def test_character_Percent_latex()
117
+ assert_equal( '\%', element(:percent).to_latex( :log => @@log))
118
+ assert_equal( [], @@logoutputter.flush)
119
+ end #test_character_Percent_latex
120
+
121
+ def test_character_Dollar_html()
122
+ assert_equal( '$', element(:dollar).to_html( :log => @@log))
123
+ assert_equal( [], @@logoutputter.flush)
124
+ end #test_character_Dollar_html
125
+
126
+ def test_character_Dollar_latex()
127
+ assert_equal( '\$', element(:dollar).to_latex( :log => @@log))
128
+ assert_equal( [], @@logoutputter.flush)
129
+ end #test_character_Dollar_latex
130
+
131
+ def test_character_Dollar_creole()
132
+ assert_equal( '$', element(:dollar).to_creole( :log => @@log))
133
+ assert_equal( [], @@logoutputter.flush)
134
+ end #test_character_Dollar_creole
135
+
136
+ def test_character_Dollar_wiki()
137
+ assert_equal( '$', element(:dollar).to_wiki( :log => @@log))
138
+ assert_equal( [], @@logoutputter.flush)
139
+ end #test_character_Dollar_wiki
140
+
141
+ def test_character_Dollar_text()
142
+ assert_equal( '$', element(:dollar).to_text( :log => @@log))
143
+ assert_equal( [], @@logoutputter.flush)
144
+ end #test_character_Dollar_text
145
+
146
+ def test_character_Hat_html()
147
+ assert_equal( '^', element(:hat).to_html( :log => @@log))
148
+ assert_equal( [], @@logoutputter.flush)
149
+ end #test_character_Hat_html
150
+
151
+ def test_character_Hat_latex()
152
+ assert_equal( '\hat{}', element(:hat).to_latex( :log => @@log))
153
+ assert_equal( [], @@logoutputter.flush)
154
+ end #test_character_Hat_latex
155
+
156
+ def test_character_Iquest_html()
157
+ assert_equal( '&iquest;', element(:iquest).to_html( :log => @@log))
158
+ assert_equal( [], @@logoutputter.flush)
159
+ end #test_character_Iquest_html
160
+
161
+ def test_character_Iquest_latex()
162
+ assert_equal( '¿', element(:iquest).to_latex( :log => @@log))
163
+ assert_equal( [], @@logoutputter.flush)
164
+ end #test_character_Iquest_latex
165
+
166
+ def test_character_Iquest_creole()
167
+ assert_equal( '¿', element(:iquest).to_creole( :log => @@log))
168
+ assert_equal( [], @@logoutputter.flush)
169
+ end #test_character_Iquest_creole
170
+
171
+ def test_character_Iquest_wiki()
172
+ assert_equal( '¿', element(:iquest).to_wiki( :log => @@log))
173
+ assert_equal( [], @@logoutputter.flush)
174
+ end #test_character_Iquest_wiki
175
+
176
+ def test_character_Iquest_text()
177
+ assert_equal( '¿', element(:iquest).to_text( :log => @@log))
178
+ assert_equal( [], @@logoutputter.flush)
179
+ end #test_character_Iquest_text
180
+
181
+ def test_character_Ampersand_html()
182
+ assert_equal( '&amp;', element(:ampersand).to_html( :log => @@log))
183
+ assert_equal( [], @@logoutputter.flush)
184
+ end #test_character_Ampersand_html
185
+
186
+ def test_character_Ampersand_latex()
187
+ assert_equal( '\&', element(:ampersand).to_latex( :log => @@log))
188
+ assert_equal( [], @@logoutputter.flush)
189
+ end #test_character_Ampersand_latex
190
+
191
+ def test_character_Ampersand_text()
192
+ assert_equal( '&', element(:ampersand).to_text( :log => @@log))
193
+ assert_equal( [], @@logoutputter.flush)
194
+ end #test_character_Ampersand_text
195
+
196
+ def test_character_Rbrace_html()
197
+ assert_equal( '}', element(:rbrace).to_html( :log => @@log))
198
+ assert_equal( [], @@logoutputter.flush)
199
+ end #test_character_Rbrace_html
200
+
201
+ def test_character_Rbrace_latex()
202
+ assert_equal( '\}', element(:rbrace).to_latex( :log => @@log))
203
+ assert_equal( [], @@logoutputter.flush)
204
+ end #test_character_Rbrace_latex
205
+
206
+ def test_character_Lbrace_html()
207
+ assert_equal( '{', element(:lbrace).to_html( :log => @@log))
208
+ assert_equal( [], @@logoutputter.flush)
209
+ end #test_character_Lbrace_html
210
+
211
+ def test_character_Lbrace_latex()
212
+ assert_equal( '\{', element(:lbrace).to_latex( :log => @@log))
213
+ assert_equal( [], @@logoutputter.flush)
214
+ end #test_character_Lbrace_latex
215
+
216
+ def test_character_Backslash_html()
217
+ assert_equal( '\\', element(:backslash).to_html( :log => @@log))
218
+ assert_equal( [], @@logoutputter.flush)
219
+ end #test_character_Backslash_html
220
+
221
+ def test_character_Backslash_latex()
222
+ assert_equal( '\ensuremath{\backslash}', element(:backslash).to_latex( :log => @@log))
223
+ assert_equal( [], @@logoutputter.flush)
224
+ end #test_character_Backslash_latex
225
+
226
+ def test_character_Radic_html()
227
+ assert_equal( '&radic;', element(:radic).to_html( :log => @@log))
228
+ assert_equal( [], @@logoutputter.flush)
229
+ end #test_character_Radic_html
230
+
231
+ def test_character_Radic_latex()
232
+ assert_equal( '\ensuremath{\sqrt{}}', element(:radic).to_latex( :log => @@log))
233
+ assert_equal( [], @@logoutputter.flush)
234
+ end #test_character_Radic_latex
235
+
236
+ def test_character_Rightarrow_html()
237
+ assert_equal( '&rarr;', element(:rightarrow).to_html( :log => @@log))
238
+ assert_equal( [], @@logoutputter.flush)
239
+ end #test_character_Rightarrow_html
240
+
241
+ def test_character_Rightarrow_latex()
242
+ assert_equal( '\ensuremath{\rightarrow}', element(:rightarrow).to_latex( :log => @@log))
243
+ assert_equal( [], @@logoutputter.flush)
244
+ end #test_character_Rightarrow_latex
245
+
246
+ def test_character_Rightarrow_text()
247
+ assert_equal( '->', element(:rightarrow).to_text( :log => @@log))
248
+ assert_equal( [], @@logoutputter.flush)
249
+ end #test_character_Rightarrow_text
250
+
251
+ def test_character_Rightarrow_creole()
252
+ assert_equal( '->', element(:rightarrow).to_creole( :log => @@log))
253
+ assert_equal( [], @@logoutputter.flush)
254
+ end #test_character_Rightarrow_creole
255
+
256
+ def test_character_RRightarrow_html()
257
+ assert_equal( '&rArr;', element(:rrightarrow).to_html( :log => @@log))
258
+ assert_equal( [], @@logoutputter.flush)
259
+ end #test_character_RRightarrow_html
260
+
261
+ def test_character_RRightarrow_latex()
262
+ assert_equal( '\ensuremath{\Rightarrow}', element(:rrightarrow).to_latex( :log => @@log))
263
+ assert_equal( [], @@logoutputter.flush)
264
+ end #test_character_RRightarrow_latex
265
+
266
+ def test_character_RRightarrow_text()
267
+ assert_equal( '=>', element(:rrightarrow).to_text( :log => @@log))
268
+ assert_equal( [], @@logoutputter.flush)
269
+ end #test_character_RRightarrow_text
270
+
271
+ def test_character_RRightarrow_creole()
272
+ assert_equal( '=>', element(:rrightarrow).to_creole( :log => @@log))
273
+ assert_equal( [], @@logoutputter.flush)
274
+ end #test_character_RRightarrow_creole
275
+
276
+ def test_character_Leftarrow_html()
277
+ assert_equal( '&larr;', element(:leftarrow).to_html( :log => @@log))
278
+ assert_equal( [], @@logoutputter.flush)
279
+ end #test_character_Leftarrow_html
280
+
281
+ def test_character_Leftarrow_latex()
282
+ assert_equal( '\ensuremath{\leftarrow}', element(:leftarrow).to_latex( :log => @@log))
283
+ assert_equal( [], @@logoutputter.flush)
284
+ end #test_character_Leftarrow_latex
285
+
286
+ def test_character_Leftarrow_text()
287
+ assert_equal( '<-', element(:leftarrow).to_text( :log => @@log))
288
+ assert_equal( [], @@logoutputter.flush)
289
+ end #test_character_Leftarrow_text
290
+
291
+ def test_character_Leftarrow_creole()
292
+ assert_equal( '<-', element(:leftarrow).to_creole( :log => @@log))
293
+ assert_equal( [], @@logoutputter.flush)
294
+ end #test_character_Leftarrow_creole
295
+
296
+ def test_character_LLeftarrow_html()
297
+ assert_equal( '&lArr;', element(:lleftarrow).to_html( :log => @@log))
298
+ assert_equal( [], @@logoutputter.flush)
299
+ end #test_character_LLeftarrow_html
300
+
301
+ def test_character_LLeftarrow_latex()
302
+ assert_equal( '\ensuremath{\Lefttarrow}', element(:lleftarrow).to_latex( :log => @@log))
303
+ assert_equal( [], @@logoutputter.flush)
304
+ end #test_character_LLeftarrow_latex
305
+
306
+ def test_character_LLeftarrow_text()
307
+ assert_equal( '<=', element(:lleftarrow).to_text( :log => @@log))
308
+ assert_equal( [], @@logoutputter.flush)
309
+ end #test_character_LLeftarrow_text
310
+
311
+ def test_character_LLeftarrow_creole()
312
+ assert_equal( '<=', element(:lleftarrow).to_creole( :log => @@log))
313
+ assert_equal( [], @@logoutputter.flush)
314
+ end #test_character_LLeftarrow_creole
315
+
316
+ def test_character_UUparrow_html()
317
+ assert_equal( '&uArr;', element(:uuparrow).to_html( :log => @@log))
318
+ assert_equal( [], @@logoutputter.flush)
319
+ end #test_character_UUparrow_html
320
+
321
+ def test_character_UUparrow_latex()
322
+ assert_equal( '\ensuremath{\Uparrow}', element(:uuparrow).to_latex( :log => @@log))
323
+ assert_equal( [], @@logoutputter.flush)
324
+ end #test_character_UUparrow_latex
325
+
326
+ def test_character_Uparrow_html()
327
+ assert_equal( '&uarr;', element(:uparrow).to_html( :log => @@log))
328
+ assert_equal( [], @@logoutputter.flush)
329
+ end #test_character_Uparrow_html
330
+
331
+ def test_character_Uparrow_latex()
332
+ assert_equal( '\ensuremath{\uparrow}', element(:uparrow).to_latex( :log => @@log))
333
+ assert_equal( [], @@logoutputter.flush)
334
+ end #test_character_Uparrow_latex
335
+
336
+ def test_character_DDownarrow_html()
337
+ assert_equal( '&dArr;', element(:ddownarrow).to_html( :log => @@log))
338
+ assert_equal( [], @@logoutputter.flush)
339
+ end #test_character_DDownarrow_html
340
+
341
+ def test_character_DDownarrow_latex()
342
+ assert_equal( '\ensuremath{\Downarrow}', element(:ddownarrow).to_latex( :log => @@log))
343
+ assert_equal( [], @@logoutputter.flush)
344
+ end #test_character_DDownarrow_latex
345
+
346
+ def test_character_Downarrow_html()
347
+ assert_equal( '&darr;', element(:downarrow).to_html( :log => @@log))
348
+ assert_equal( [], @@logoutputter.flush)
349
+ end #test_character_Downarrow_html
350
+
351
+ def test_character_Downarrow_latex()
352
+ assert_equal( '\ensuremath{\downarrow}', element(:downarrow).to_latex( :log => @@log))
353
+ assert_equal( [], @@logoutputter.flush)
354
+ end #test_character_Downarrow_latex
355
+
356
+ def test_character_Lt_html()
357
+ assert_equal( '&lt;', element(:lt).to_html( :log => @@log))
358
+ assert_equal( [], @@logoutputter.flush)
359
+ end #test_character_Lt_html
360
+
361
+ def test_character_Lt_latex()
362
+ assert_equal( '\ensuremath{<}', element(:lt).to_latex( :log => @@log))
363
+ assert_equal( [], @@logoutputter.flush)
364
+ end #test_character_Lt_latex
365
+
366
+ def test_character_Gt_html()
367
+ assert_equal( '&gt;', element(:gt).to_html( :log => @@log))
368
+ assert_equal( [], @@logoutputter.flush)
369
+ end #test_character_Gt_html
370
+
371
+ def test_character_Gt_latex()
372
+ assert_equal( '\ensuremath{>}', element(:gt).to_latex( :log => @@log))
373
+ assert_equal( [], @@logoutputter.flush)
374
+ end #test_character_Gt_latex
375
+
376
+ def test_character_Infin_html()
377
+ assert_equal( '&infin;', element(:infin).to_html( :log => @@log))
378
+ assert_equal( [], @@logoutputter.flush)
379
+ end #test_character_Infin_html
380
+
381
+ def test_character_Infin_latex()
382
+ assert_equal( '\ensuremath{\infty}', element(:infin).to_latex( :log => @@log))
383
+ assert_equal( [], @@logoutputter.flush)
384
+ end #test_character_Infin_latex
385
+
386
+ def test_character_Divide_html()
387
+ assert_equal( '&divide;', element(:divide).to_html( :log => @@log))
388
+ assert_equal( [], @@logoutputter.flush)
389
+ end #test_character_Divide_html
390
+
391
+ def test_character_Divide_latex()
392
+ assert_equal( '\ensuremath{\div}', element(:divide).to_latex( :log => @@log))
393
+ assert_equal( [], @@logoutputter.flush)
394
+ end #test_character_Divide_latex
395
+
396
+ def test_character_Yen_html()
397
+ assert_equal( '&yen;', element(:yen).to_html( :log => @@log))
398
+ assert_equal( [], @@logoutputter.flush)
399
+ end #test_character_Yen_html
400
+
401
+ def test_character_Sim_html()
402
+ assert_equal( '&sim;', element(:sim).to_html( :log => @@log))
403
+ assert_equal( [], @@logoutputter.flush)
404
+ end #test_character_Sim_html
405
+
406
+ def test_character_Sim_latex()
407
+ assert_equal( '\ensuremath{\sim}', element(:sim).to_latex( :log => @@log))
408
+ assert_equal( [], @@logoutputter.flush)
409
+ end #test_character_Sim_latex
410
+
411
+ def test_character_Brvbar_html()
412
+ assert_equal( '&brvbar;', element(:brvbar).to_html( :log => @@log))
413
+ assert_equal( [], @@logoutputter.flush)
414
+ end #test_character_Brvbar_html
415
+
416
+ def test_character_Brvbar_latex()
417
+ assert_equal( '|', element(:brvbar).to_latex( :log => @@log))
418
+ assert_equal( [], @@logoutputter.flush)
419
+ end #test_character_Brvbar_latex
420
+
421
+ def test_character_Neg_html()
422
+ assert_equal( '&not;', element(:neg).to_html( :log => @@log))
423
+ assert_equal( [], @@logoutputter.flush)
424
+ end #test_character_Neg_html
425
+
426
+ def test_character_Neg_latex()
427
+ assert_equal( '\ensuremath{\neg}', element(:neg).to_latex( :log => @@log))
428
+ assert_equal( [], @@logoutputter.flush)
429
+ end #test_character_Neg_latex
430
+
431
+ def test_character_Times_html()
432
+ assert_equal( '&times;', element(:times).to_html( :log => @@log))
433
+ assert_equal( [], @@logoutputter.flush)
434
+ end #test_character_Times_html
435
+
436
+ def test_character_Times_latex()
437
+ assert_equal( '\ensuremath{\times}', element(:times).to_latex( :log => @@log))
438
+ assert_equal( [], @@logoutputter.flush)
439
+ end #test_character_Times_latex
440
+
441
+ def test_character_Otimes_html()
442
+ assert_equal( '&otimes;', element(:otimes).to_html( :log => @@log))
443
+ assert_equal( [], @@logoutputter.flush)
444
+ end #test_character_Otimes_html
445
+
446
+ def test_character_Otimes_latex()
447
+ assert_equal( '\ensuremath{\otimes}', element(:otimes).to_latex( :log => @@log))
448
+ assert_equal( [], @@logoutputter.flush)
449
+ end #test_character_Otimes_latex
450
+
451
+ def test_character_Empty_html()
452
+ assert_equal( '&empty;', element(:empty).to_html( :log => @@log))
453
+ assert_equal( [], @@logoutputter.flush)
454
+ end #test_character_Empty_html
455
+
456
+ def test_character_Empty_latex()
457
+ assert_equal( '\ensuremath{\emptyset}', element(:empty).to_latex( :log => @@log))
458
+ assert_equal( [], @@logoutputter.flush)
459
+ end #test_character_Empty_latex
460
+
461
+ def test_character_Underscore_html()
462
+ assert_equal( '_', element(:underscore).to_html( :log => @@log))
463
+ assert_equal( [], @@logoutputter.flush)
464
+ end #test_character_Underscore_html
465
+
466
+ def test_character_Underscore_latex()
467
+ assert_equal( '\_', element(:underscore).to_latex( :log => @@log))
468
+ assert_equal( [], @@logoutputter.flush)
469
+ end #test_character_Underscore_latex
470
+
471
+ def test_character_Underscore_wiki()
472
+ assert_equal( '_', element(:underscore).to_wiki( :log => @@log))
473
+ assert_equal( [], @@logoutputter.flush)
474
+ end #test_character_Underscore_wiki
475
+
476
+ def test_character_Underscore_creole()
477
+ assert_equal( '_', element(:underscore).to_creole( :log => @@log))
478
+ assert_equal( [], @@logoutputter.flush)
479
+ end #test_character_Underscore_creole
480
+
481
+ def test_character_Underscore_text()
482
+ assert_equal( '_', element(:underscore).to_text( :log => @@log))
483
+ assert_equal( [], @@logoutputter.flush)
484
+ end #test_character_Underscore_text
485
+
486
+ def test_character_Ldots_html()
487
+ assert_equal( '&hellip;', element(:ldots).to_html( :log => @@log))
488
+ assert_equal( [], @@logoutputter.flush)
489
+ end #test_character_Ldots_html
490
+
491
+ def test_character_Ldots_latex()
492
+ assert_equal( '\ldots ', element(:ldots).to_latex( :log => @@log))
493
+ assert_equal( [], @@logoutputter.flush)
494
+ end #test_character_Ldots_latex
495
+
496
+ def test_character_Ldots_creole()
497
+ assert_equal( '…', element(:ldots).to_creole( :log => @@log))
498
+ assert_equal( [], @@logoutputter.flush)
499
+ end #test_character_Ldots_creole
500
+
501
+ def test_character_Bullet_html()
502
+ assert_equal( '&#149;', element(:bullet).to_html( :log => @@log))
503
+ assert_equal( [], @@logoutputter.flush)
504
+ end #test_character_Bullet_html
505
+
506
+ def test_character_Bullet_latex()
507
+ assert_equal( '\ensuremath{\bullet}', element(:bullet).to_latex( :log => @@log))
508
+ assert_equal( [], @@logoutputter.flush)
509
+ end #test_character_Bullet_latex
510
+
511
+ def test_character_Ndash_html()
512
+ assert_equal( '&ndash;', element(:ndash).to_html( :log => @@log))
513
+ assert_equal( [], @@logoutputter.flush)
514
+ end #test_character_Ndash_html
515
+
516
+ def test_character_Ndash_latex()
517
+ assert_equal( '--', element(:ndash).to_latex( :log => @@log))
518
+ assert_equal( [], @@logoutputter.flush)
519
+ end #test_character_Ndash_latex
520
+
521
+ def test_character_Ndash_creole()
522
+ assert_equal( '–', element(:ndash).to_creole( :log => @@log))
523
+ assert_equal( [], @@logoutputter.flush)
524
+ end #test_character_Ndash_creole
525
+
526
+ def test_character_Mdash_html()
527
+ assert_equal( '&mdash;', element(:mdash).to_html( :log => @@log))
528
+ assert_equal( [], @@logoutputter.flush)
529
+ end #test_character_Mdash_html
530
+
531
+ def test_character_Mdash_latex()
532
+ assert_equal( '--- ', element(:mdash).to_latex( :log => @@log))
533
+ assert_equal( [], @@logoutputter.flush)
534
+ end #test_character_Mdash_latex
535
+
536
+ def test_character_Mdash_creole()
537
+ assert_equal( '—', element(:mdash).to_creole( :log => @@log))
538
+ assert_equal( [], @@logoutputter.flush)
539
+ end #test_character_Mdash_creole
540
+
541
+ def test_character_Dagger_html()
542
+ assert_equal( '&dagger;', element(:dagger).to_html( :log => @@log))
543
+ assert_equal( [], @@logoutputter.flush)
544
+ end #test_character_Dagger_html
545
+
546
+ def test_character_Dagger_latex()
547
+ assert_equal( '\dag', element(:dagger).to_latex( :log => @@log))
548
+ assert_equal( [], @@logoutputter.flush)
549
+ end #test_character_Dagger_latex
550
+
551
+ def test_character_Doublelowquotemark_html()
552
+ assert_equal( '&bdquo;', element(:doublelowquotemark).to_html( :log => @@log))
553
+ assert_equal( [], @@logoutputter.flush)
554
+ end #test_character_Doublelowquotemark_html
555
+
556
+ def test_character_Doublelowquotemark_latex()
557
+ assert_equal( '\glqq ', element(:doublelowquotemark).to_latex( :log => @@log))
558
+ assert_equal( [], @@logoutputter.flush)
559
+ end #test_character_Doublelowquotemark_latex
560
+
561
+ def test_character_Doublelowquotemark_creole()
562
+ assert_equal( '„', element(:doublelowquotemark).to_creole( :log => @@log))
563
+ assert_equal( [], @@logoutputter.flush)
564
+ end #test_character_Doublelowquotemark_creole
565
+
566
+ def test_character_Leftdoublequotemark_html()
567
+ assert_equal( '&ldquo;', element(:leftdoublequotemark).to_html( :log => @@log))
568
+ assert_equal( [], @@logoutputter.flush)
569
+ end #test_character_Leftdoublequotemark_html
570
+
571
+ def test_character_Leftdoublequotemark_latex()
572
+ assert_equal( '\grqq', element(:leftdoublequotemark).to_latex( :log => @@log))
573
+ assert_equal( [], @@logoutputter.flush)
574
+ end #test_character_Leftdoublequotemark_latex
575
+
576
+ def test_character_Leftdoublequotemark_text()
577
+ assert_equal( '``', element(:leftdoublequotemark).to_text( :log => @@log))
578
+ assert_equal( [], @@logoutputter.flush)
579
+ end #test_character_Leftdoublequotemark_text
580
+
581
+ def test_character_Leftdoublequotemark_creole()
582
+ assert_equal( '“', element(:leftdoublequotemark).to_creole( :log => @@log))
583
+ assert_equal( [], @@logoutputter.flush)
584
+ end #test_character_Leftdoublequotemark_creole
585
+
586
+ def test_character_Rightdoublequotemark_html()
587
+ assert_equal( '&rdquo;', element(:rightdoublequotemark).to_html( :log => @@log))
588
+ assert_equal( [], @@logoutputter.flush)
589
+ end #test_character_Rightdoublequotemark_html
590
+
591
+ def test_character_Rightdoublequotemark_latex()
592
+ assert_equal( '\rqq ', element(:rightdoublequotemark).to_latex( :log => @@log))
593
+ assert_equal( [], @@logoutputter.flush)
594
+ end #test_character_Rightdoublequotemark_latex
595
+
596
+ def test_character_Rightdoublequotemark_text()
597
+ assert_equal( '''', element(:rightdoublequotemark).to_text( :log => @@log))
598
+ assert_equal( [], @@logoutputter.flush)
599
+ end #test_character_Rightdoublequotemark_text
600
+
601
+ def test_character_Singlelowquotemark_html()
602
+ assert_equal( '&sbquo;', element(:singlelowquotemark).to_html( :log => @@log))
603
+ assert_equal( [], @@logoutputter.flush)
604
+ end #test_character_Singlelowquotemark_html
605
+
606
+ def test_character_Singlelowquotemark_latex()
607
+ assert_equal( '\glq ', element(:singlelowquotemark).to_latex( :log => @@log))
608
+ assert_equal( [], @@logoutputter.flush)
609
+ end #test_character_Singlelowquotemark_latex
610
+
611
+ def test_character_Singlelowquotemark_creole()
612
+ assert_equal( '‚', element(:singlelowquotemark).to_creole( :log => @@log))
613
+ assert_equal( [], @@logoutputter.flush)
614
+ end #test_character_Singlelowquotemark_creole
615
+
616
+ def test_character_Leftsinglequotemark_html()
617
+ assert_equal( '&lsquo;', element(:leftsinglequotemark).to_html( :log => @@log))
618
+ assert_equal( [], @@logoutputter.flush)
619
+ end #test_character_Leftsinglequotemark_html
620
+
621
+ def test_character_Leftsinglequotemark_latex()
622
+ assert_equal( '\lq ', element(:leftsinglequotemark).to_latex( :log => @@log))
623
+ assert_equal( [], @@logoutputter.flush)
624
+ end #test_character_Leftsinglequotemark_latex
625
+
626
+ def test_character_Leftsinglequotemark_text()
627
+ assert_equal( '`', element(:leftsinglequotemark).to_text( :log => @@log))
628
+ assert_equal( [], @@logoutputter.flush)
629
+ end #test_character_Leftsinglequotemark_text
630
+
631
+ def test_character_Rightsinglequotemark_html()
632
+ assert_equal( '&rsquo;', element(:rightsinglequotemark).to_html( :log => @@log))
633
+ assert_equal( [], @@logoutputter.flush)
634
+ end #test_character_Rightsinglequotemark_html
635
+
636
+ def test_character_Rightsinglequotemark_latex()
637
+ assert_equal( '\rq ', element(:rightsinglequotemark).to_latex( :log => @@log))
638
+ assert_equal( [], @@logoutputter.flush)
639
+ end #test_character_Rightsinglequotemark_latex
640
+
641
+ def test_character_Rightsinglequotemark_text()
642
+ assert_equal( '''', element(:rightsinglequotemark).to_text( :log => @@log))
643
+ assert_equal( [], @@logoutputter.flush)
644
+ end #test_character_Rightsinglequotemark_text
645
+
646
+ def test_character_Rightsinglequotemark_creole()
647
+ assert_equal( '’', element(:rightsinglequotemark).to_creole( :log => @@log))
648
+ assert_equal( [], @@logoutputter.flush)
649
+ end #test_character_Rightsinglequotemark_creole
650
+ end #class Test_characters