docgenerator 2.0.0 → 2.1.0

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 (104) hide show
  1. data/examples/creole_example_tabular.rb +95 -0
  2. data/examples/docgenerator_example.rb +5 -5
  3. data/lib/creole/creole2doc.rb +28 -18
  4. data/lib/creole/creole_inclusions.rb +4 -4
  5. data/lib/creole/creole_placeholder.rb +4 -1
  6. data/lib/creole/creole_tabular.rb +173 -155
  7. data/lib/creole/plugins/rail.rb +118 -119
  8. data/lib/creole/plugins/struktex.rb +35 -35
  9. data/lib/creole/plugins/todonotes.rb +8 -1
  10. data/lib/docgenerator/attribute.rb +160 -160
  11. data/lib/docgenerator/characters.rb +343 -311
  12. data/lib/docgenerator/css.rb +167 -167
  13. data/lib/docgenerator/document.rb +525 -511
  14. data/lib/docgenerator/element.rb +316 -316
  15. data/lib/docgenerator/element_meta.rb +114 -114
  16. data/lib/docgenerator/elements.rb +19 -9
  17. data/lib/docgenerator/environments.rb +3 -1
  18. data/lib/docgenerator/lists.rb +177 -174
  19. data/lib/docgenerator/packages/hyperref.rb +74 -70
  20. data/lib/docgenerator/packages/multicol.rb +33 -0
  21. data/lib/docgenerator/packages/scrlettr2.rb +152 -151
  22. data/lib/docgenerator/packages/todonotes.rb +1 -1
  23. data/lib/docgenerator/tabular.rb +463 -400
  24. data/lib/docgenerator/templates/docgenerator_template.rb +94 -84
  25. data/lib/docgenerator/templates/docgenerator_template.yaml +75 -15
  26. data/lib/docgenerator.rb +1 -1
  27. data/lib/wiki2doc/wiki2docgenerator.rb +1 -1
  28. data/meta_test_and_doc/build__meta.rb +125 -0
  29. data/meta_test_and_doc/build_doc.rb +333 -0
  30. data/meta_test_and_doc/build_test.rb +251 -0
  31. data/meta_test_and_doc/manpages/attachfile.rb +389 -0
  32. data/meta_test_and_doc/manpages/caption.rb +133 -0
  33. data/meta_test_and_doc/manpages/characters.rb +3738 -0
  34. data/meta_test_and_doc/manpages/elements.rb +6851 -0
  35. data/meta_test_and_doc/manpages/environments.rb +985 -0
  36. data/meta_test_and_doc/manpages/footnote.rb +439 -0
  37. data/meta_test_and_doc/manpages/hyperref.rb +605 -0
  38. data/meta_test_and_doc/manpages/listings.rb +988 -0
  39. data/meta_test_and_doc/manpages/lists.rb +1463 -0
  40. data/meta_test_and_doc/manpages/others.rb +129 -0
  41. data/meta_test_and_doc/manpages/packages.rb +13 -0
  42. data/meta_test_and_doc/manpages/pdfpages.rb +108 -0
  43. data/meta_test_and_doc/manpages/readme.rdoc +9 -0
  44. data/meta_test_and_doc/manpages/scrlettr2.rb +362 -0
  45. data/meta_test_and_doc/manpages/scrpage2.rb +2028 -0
  46. data/meta_test_and_doc/manpages/sectioning.rb +2467 -0
  47. data/meta_test_and_doc/manpages/tables.rb +2088 -0
  48. data/meta_test_and_doc/manpages/todonotes.rb +235 -0
  49. data/meta_test_and_doc/manpages/wiki2docgenerator.rb +64 -0
  50. data/{readme.rd → readme.rdoc} +18 -1
  51. data/unittest/expected/test_tabular.creole +33 -0
  52. data/unittest/expected_creole/test_creole_creole1.0test.html +3 -3
  53. data/unittest/expected_creole/test_creole_creole1.0test.latex +3 -3
  54. data/unittest/expected_creole/test_creole_creole1.0test.text +3 -3
  55. data/unittest/expected_creole/test_creole_inline_apostroph.html +6 -0
  56. data/unittest/expected_creole/test_creole_inline_apostroph.latex +8 -0
  57. data/unittest/expected_creole/test_creole_inline_apostroph.text +4 -0
  58. data/unittest/expected_creole/test_creole_input.normsource +12 -12
  59. data/unittest/expected_creole/test_creole_input.normsource_1.8 +23 -0
  60. data/unittest/expected_creole/test_creole_links_external_implicit.html +2 -2
  61. data/unittest/expected_creole/test_creole_links_external_implicit.latex +2 -2
  62. data/unittest/expected_creole/test_creole_links_external_implicit.text +2 -2
  63. data/unittest/expected_creole/test_creole_links_implicit_end.html +1 -1
  64. data/unittest/expected_creole/test_creole_links_implicit_end.latex +1 -1
  65. data/unittest/expected_creole/test_creole_list_ul.normsource +42 -42
  66. data/unittest/expected_creole/test_creole_list_ul.normsource_1.8 +83 -0
  67. data/unittest/expected_creole/test_creole_paragraphs.normsource +15 -15
  68. data/unittest/expected_creole/test_creole_paragraphs.normsource_1.8 +27 -0
  69. data/unittest/expected_creole/test_creole_tabular.creole +22 -0
  70. data/unittest/expected_creole/test_creole_tabular_creole.creole +19 -0
  71. data/unittest/expected_creole/test_creole_tabular_css.creole +24 -0
  72. data/unittest/expected_creole/test_creole_tabular_multicols.creole +16 -0
  73. data/unittest/expected_creole/test_creole_tabular_multicols.html +14 -0
  74. data/unittest/expected_creole/test_creole_tabular_multicols.latex +16 -0
  75. data/unittest/expected_creole/test_creole_tabular_with_cell_option.creole +21 -0
  76. data/unittest/expected_creole/test_creole_toc_level_text.html +2 -2
  77. data/unittest/expected_creole/test_creole_toc_level_text.latex +2 -2
  78. data/unittest/expected_packages/test_multicol_3.tex +2 -0
  79. data/unittest/expected_packages/test_multicol_3_titleline.tex +2 -0
  80. data/unittest/expected_templates/test_article.tex +23 -0
  81. data/unittest/expected_templates/test_article_utf8.tex +34 -0
  82. data/unittest/expected_templates/test_context.miv +18 -0
  83. data/unittest/expected_templates/test_creole.creole +8 -0
  84. data/unittest/expected_templates/test_html.html +12 -0
  85. data/unittest/expected_templates/test_html401_strict.html +14 -0
  86. data/unittest/expected_templates/test_html401_trans.html +14 -0
  87. data/unittest/expected_templates/test_html_utf8.html +14 -0
  88. data/unittest/expected_templates/test_include.tex +17 -0
  89. data/unittest/expected_templates/test_include_utf8.tex +17 -0
  90. data/unittest/expected_templates/test_text.txt +6 -0
  91. data/unittest/expected_templates/test_wiki.wiki +6 -0
  92. data/unittest/expected_templates/test_xhtml_strict.html +14 -0
  93. data/unittest/expected_templates/test_xhtml_trans.html +14 -0
  94. data/unittest/unittest_creole.rb +27 -6
  95. data/unittest/unittest_creole_placeholders.rb +1 -123
  96. data/unittest/unittest_creole_tabular.rb +174 -0
  97. data/unittest/unittest_docgenerator.rb +4 -3
  98. data/unittest/unittest_docgenerator_characters.rb +4769 -615
  99. data/unittest/unittest_packages_multicol.rb +84 -0
  100. data/unittest/unittest_rubycode4doc.rb +0 -1
  101. data/unittest/unittest_templates.rb +64 -0
  102. metadata +163 -77
  103. data/build_test_and_doc.rb +0 -505
  104. data/manpage_elements.rb +0 -10411
@@ -15,11 +15,11 @@ Collection of characters.
15
15
  Elements inside this module represent special characters and
16
16
  there representation in HTML, LaTeX...
17
17
  =end
18
- module Characters
18
+ module Characters
19
19
 
20
- #
21
- # Special Characters
22
- #
20
+ #
21
+ # Special Characters
22
+ #
23
23
 
24
24
  =begin rdoc
25
25
  Define Element :shy
@@ -30,13 +30,13 @@ or
30
30
  Shy.new( )
31
31
  Attributes are not defined for this element.
32
32
  =end
33
- class Shy < Element
34
- has_no_content false
35
- add_html_output '&shy;'
36
- add_latex_output '"-'
37
- add_text_output ''
38
- add_creole_output '{{shy}}'
39
- end #Shy
33
+ class Shy < Element
34
+ has_no_content false
35
+ add_html_output '&shy;'
36
+ add_latex_output '"-'
37
+ add_text_output ''
38
+ add_creole_output '{{shy}}'
39
+ end #Shy
40
40
 
41
41
  =begin rdoc
42
42
  Define Element :space, :ensp
@@ -48,12 +48,15 @@ or
48
48
  Space.new( )
49
49
  Attributes are not defined for this element.
50
50
  =end
51
- class Space < Element
52
- add_id :ensp
53
- has_no_content false
54
- add_html_output '&ensp;'
55
- add_latex_output '~'
56
- end #Space
51
+ class Space < Element
52
+ add_id :ensp
53
+ has_no_content false
54
+ add_html_output '&ensp;'
55
+ add_latex_output '~'
56
+ add_text_output ' '
57
+ add_wiki_output ' '
58
+ add_creole_output ' '
59
+ end #Space
57
60
 
58
61
  =begin rdoc
59
62
  Define Element :bigspace, :emsp
@@ -65,27 +68,32 @@ or
65
68
  Bigspace.new( )
66
69
  Attributes are not defined for this element.
67
70
  =end
68
- class Bigspace < Element
69
- add_id :emsp
70
- has_no_content false
71
- add_html_output '&emsp;'
72
- add_latex_output '~~'
73
- end #Bigspace
71
+ class Bigspace < Element
72
+ add_id :emsp
73
+ has_no_content false
74
+ add_html_output '&emsp;'
75
+ add_latex_output '~~'
76
+ add_text_output ' '
77
+ add_wiki_output ' '
78
+ add_creole_output ' '
79
+ end #Bigspace
74
80
 
75
81
  =begin rdoc
76
82
  Define Element :nbsp
77
83
 
84
+ no-break space (= non-breaking space)
85
+
78
86
  Create an instance with
79
87
  element( :nbsp )
80
88
  or
81
89
  Nbsp.new( )
82
90
  Attributes are not defined for this element.
83
91
  =end
84
- class Nbsp < Element
85
- has_no_content false
86
- add_html_output '&nbsp;'
87
- add_latex_output '~'
88
- end #Nbsp
92
+ class Nbsp < Element
93
+ has_no_content false
94
+ add_html_output '&nbsp;'
95
+ add_latex_output '~'
96
+ end #Nbsp
89
97
 
90
98
  =begin rdoc
91
99
  Define Element :euro
@@ -96,11 +104,15 @@ or
96
104
  Euro.new( )
97
105
  Attributes are not defined for this element.
98
106
  =end
99
- class Euro < Element
100
- has_no_content false
101
- add_html_output '&euro;'
102
- add_latex_output '\euro'
103
- end #Euro
107
+ class Euro < Element
108
+ has_no_content false
109
+ add_html_output '&euro;'
110
+ add_latex_output '\euro'
111
+ add_context_output '€'
112
+ add_creole_output '€'
113
+ add_wiki_output '€'
114
+ add_text_output '€'
115
+ end #Euro
104
116
 
105
117
  =begin rdoc
106
118
  Define Element :euros
@@ -118,10 +130,14 @@ Attributes are not defined for this element.
118
130
 
119
131
  You may add a value to the unit.
120
132
  =end
121
- class Euros < Element
122
- add_html_output '#{@content}&euro;'
123
- add_latex_output '\euros{#{@content}}'
124
- end #Euros
133
+ class Euros < Element
134
+ add_html_output '#{@content}&euro;'
135
+ add_latex_output '\euros{#{@content}}'
136
+ add_context_output '#{@content}€'
137
+ add_text_output '#{@content}€'
138
+ add_creole_output '#{@content}€'
139
+ add_wiki_output '#{@content}€'
140
+ end #Euros
125
141
 
126
142
  =begin rdoc
127
143
  Define Element :percent, :%
@@ -133,12 +149,16 @@ or
133
149
  Percent.new( )
134
150
  Attributes are not defined for this element.
135
151
  =end
136
- class Percent < Element
137
- add_id :%
138
- has_no_content false
139
- add_html_output '%'
140
- add_latex_output '\%'
141
- end #Percent
152
+ class Percent < Element
153
+ add_id :%
154
+ has_no_content false
155
+ add_html_output '%'
156
+ add_latex_output '\%'
157
+ add_context_output '\%'
158
+ add_text_output '%'
159
+ add_wiki_output '%'
160
+ add_creole_output '%'
161
+ end #Percent
142
162
 
143
163
  =begin rdoc
144
164
  Define Element :dollar, :"$"
@@ -150,15 +170,16 @@ or
150
170
  Dollar.new( )
151
171
  Attributes are not defined for this element.
152
172
  =end
153
- class Dollar < Element
154
- add_id :"$"
155
- has_no_content false
156
- add_html_output '$'
157
- add_latex_output '\$'
158
- add_creole_output '$'
159
- add_wiki_output '$'
160
- add_text_output '$'
161
- end #Dollar
173
+ class Dollar < Element
174
+ add_id :"$"
175
+ has_no_content false
176
+ add_html_output '$'
177
+ add_latex_output '\$'
178
+ add_context_output '\$'
179
+ add_creole_output '$'
180
+ add_wiki_output '$'
181
+ add_text_output '$'
182
+ end #Dollar
162
183
 
163
184
  =begin rdoc
164
185
  Define Element :^
@@ -169,12 +190,12 @@ or
169
190
  ^.new( )
170
191
  Attributes are not defined for this element.
171
192
  =end
172
- class Hat < Element
173
- add_id :'^'
174
- has_no_content false
175
- add_html_output '^'
176
- add_latex_output '\hat{}'
177
- end #^
193
+ class Hat < Element
194
+ add_id :'^'
195
+ has_no_content false
196
+ add_html_output '^'
197
+ add_latex_output '\hat{}'
198
+ end #^
178
199
 
179
200
  =begin rdoc
180
201
  Define Element :iquest
@@ -185,14 +206,14 @@ or
185
206
  Iquest.new( )
186
207
  Attributes are not defined for this element.
187
208
  =end
188
- class Iquest < Element
189
- has_no_content false
190
- add_html_output '&iquest;'
191
- add_latex_output '¿'
192
- add_creole_output '¿'
193
- add_wiki_output '¿'
194
- add_text_output '¿'
195
- end #Iquest
209
+ class Iquest < Element
210
+ has_no_content false
211
+ add_html_output '&iquest;'
212
+ add_latex_output '¿'
213
+ add_creole_output '¿'
214
+ add_wiki_output '¿'
215
+ add_text_output '¿'
216
+ end #Iquest
196
217
 
197
218
  =begin rdoc
198
219
  Define Element :ampersand, :&
@@ -204,13 +225,13 @@ or
204
225
  Ampersand.new( )
205
226
  Attributes are not defined for this element.
206
227
  =end
207
- class Ampersand < Element
208
- add_id :&
209
- has_no_content false
210
- add_html_output '&amp;'
211
- add_latex_output '\&'
212
- add_text_output '&'
213
- end #Ampersand
228
+ class Ampersand < Element
229
+ add_id :&
230
+ has_no_content false
231
+ add_html_output '&amp;'
232
+ add_latex_output '\&'
233
+ add_text_output '&'
234
+ end #Ampersand
214
235
 
215
236
  =begin rdoc
216
237
  Define Element :rbrace, :"}"
@@ -222,12 +243,12 @@ or
222
243
  Rbrace.new( )
223
244
  Attributes are not defined for this element.
224
245
  =end
225
- class Rbrace < Element
226
- add_id :"}"
227
- has_no_content false
228
- add_html_output '}'
229
- add_latex_output '\}'
230
- end #Rbrace
246
+ class Rbrace < Element
247
+ add_id :"}"
248
+ has_no_content false
249
+ add_html_output '}'
250
+ add_latex_output '\}'
251
+ end #Rbrace
231
252
 
232
253
  =begin rdoc
233
254
  Define Element :lbrace, :"{"
@@ -239,12 +260,12 @@ or
239
260
  Lbrace.new( )
240
261
  Attributes are not defined for this element.
241
262
  =end
242
- class Lbrace < Element
243
- add_id :"{"
244
- has_no_content false
245
- add_html_output '{'
246
- add_latex_output '\{'
247
- end #Lbrace
263
+ class Lbrace < Element
264
+ add_id :"{"
265
+ has_no_content false
266
+ add_html_output '{'
267
+ add_latex_output '\{'
268
+ end #Lbrace
248
269
 
249
270
  =begin rdoc
250
271
  Define Element :backslash
@@ -255,11 +276,11 @@ or
255
276
  Backslash.new( )
256
277
  Attributes are not defined for this element.
257
278
  =end
258
- class Backslash < Element
259
- has_no_content false
260
- add_html_output '\\'
261
- add_latex_output '\ensuremath{\backslash}'
262
- end #Backslash
279
+ class Backslash < Element
280
+ has_no_content false
281
+ add_html_output '\\'
282
+ add_latex_output '\ensuremath{\backslash}'
283
+ end #Backslash
263
284
 
264
285
  =begin rdoc
265
286
  Define Element :radic
@@ -270,11 +291,15 @@ or
270
291
  Radic.new( )
271
292
  Attributes are not defined for this element.
272
293
  =end
273
- class Radic < Element
274
- has_no_content false
275
- add_html_output '&radic;'
276
- add_latex_output '\ensuremath{\sqrt{}}'
277
- end #Radic
294
+ class Radic < Element
295
+ has_no_content false
296
+ add_html_output '&radic;'
297
+ add_latex_output '\ensuremath{\sqrt{}}'
298
+ add_context_output '√'
299
+ add_wiki_output '√'
300
+ add_creole_output '√'
301
+ add_text_output '√'
302
+ end #Radic
278
303
 
279
304
  =begin rdoc
280
305
  Define Element :rarr, :rightarrow, :"->"
@@ -287,15 +312,15 @@ or
287
312
  Rightarrow.new( )
288
313
  Attributes are not defined for this element.
289
314
  =end
290
- class Rightarrow < Element
291
- add_id :rarr
292
- add_id :"->"
293
- has_no_content false
294
- add_html_output '&rarr;'
295
- add_latex_output '\ensuremath{\rightarrow}'
296
- add_text_output '->'
297
- add_creole_output '->'
298
- end #Rarr
315
+ class Rightarrow < Element
316
+ add_id :rarr
317
+ add_id :"->"
318
+ has_no_content false
319
+ add_html_output '&rarr;'
320
+ add_latex_output '\ensuremath{\rightarrow}'
321
+ add_text_output '->'
322
+ add_creole_output '->'
323
+ end #Rarr
299
324
 
300
325
  =begin rdoc
301
326
  Define Element :rArr, :Rightarrow, :"=>"
@@ -308,16 +333,16 @@ or
308
333
  RRightarrow.new( )
309
334
  Attributes are not defined for this element.
310
335
  =end
311
- class RRightarrow < Element
312
- add_id :Rightarrow
313
- add_id :rArr
314
- add_id :"=>"
315
- has_no_content false
316
- add_html_output '&rArr;'
317
- add_latex_output '\ensuremath{\Rightarrow}'
318
- add_text_output '=>'
319
- add_creole_output '=>'
320
- end #Rarr
336
+ class RRightarrow < Element
337
+ add_id :Rightarrow
338
+ add_id :rArr
339
+ add_id :"=>"
340
+ has_no_content false
341
+ add_html_output '&rArr;'
342
+ add_latex_output '\ensuremath{\Rightarrow}'
343
+ add_text_output '=>'
344
+ add_creole_output '=>'
345
+ end #Rarr
321
346
 
322
347
  =begin rdoc
323
348
  Define Element :larr, :leftarrow, :"<-"
@@ -330,15 +355,15 @@ or
330
355
  Larr.new( )
331
356
  Attributes are not defined for this element.
332
357
  =end
333
- class Leftarrow < Element
334
- add_id :larr
335
- add_id :"<-"
336
- has_no_content false
337
- add_html_output '&larr;'
338
- add_latex_output '\ensuremath{\leftarrow}'
339
- add_text_output '<-'
340
- add_creole_output '<-'
341
- end #Larr
358
+ class Leftarrow < Element
359
+ add_id :larr
360
+ add_id :"<-"
361
+ has_no_content false
362
+ add_html_output '&larr;'
363
+ add_latex_output '\ensuremath{\leftarrow}'
364
+ add_text_output '<-'
365
+ add_creole_output '<-'
366
+ end #Larr
342
367
 
343
368
  =begin rdoc
344
369
  Define Element :lArr, :Leftarrow, :<=
@@ -351,16 +376,16 @@ or
351
376
  LLeftarrow.new( )
352
377
  Attributes are not defined for this element.
353
378
  =end
354
- class LLeftarrow < Element
355
- add_id :Leftarrow
356
- add_id :lArr
357
- add_id :<=
358
- has_no_content false
359
- add_html_output '&lArr;'
360
- add_latex_output '\ensuremath{\Lefttarrow}'
361
- add_text_output '<='
362
- add_creole_output '<='
363
- end #Larr
379
+ class LLeftarrow < Element
380
+ add_id :Leftarrow
381
+ add_id :lArr
382
+ add_id :<=
383
+ has_no_content false
384
+ add_html_output '&lArr;'
385
+ add_latex_output '\ensuremath{\Lefttarrow}'
386
+ add_text_output '<='
387
+ add_creole_output '<='
388
+ end #Larr
364
389
 
365
390
  =begin rdoc
366
391
  Define Element :uArr, :Uparrow
@@ -372,13 +397,13 @@ or
372
397
  UUparrow.new( )
373
398
  Attributes are not defined for this element.
374
399
  =end
375
- class UUparrow < Element
376
- add_id :Uparrow
377
- add_id :uArr
378
- has_no_content false
379
- add_html_output '&uArr;'
380
- add_latex_output '\ensuremath{\Uparrow}'
381
- end #Uarr
400
+ class UUparrow < Element
401
+ add_id :Uparrow
402
+ add_id :uArr
403
+ has_no_content false
404
+ add_html_output '&uArr;'
405
+ add_latex_output '\ensuremath{\Uparrow}'
406
+ end #Uarr
382
407
 
383
408
  =begin rdoc
384
409
  Define Element :uarr, :uparrow
@@ -390,12 +415,12 @@ or
390
415
  Uparrow.new( )
391
416
  Attributes are not defined for this element.
392
417
  =end
393
- class Uparrow < Element
394
- add_id :uarr
395
- has_no_content false
396
- add_html_output '&uarr;'
397
- add_latex_output '\ensuremath{\uparrow}'
398
- end #Uarr
418
+ class Uparrow < Element
419
+ add_id :uarr
420
+ has_no_content false
421
+ add_html_output '&uarr;'
422
+ add_latex_output '\ensuremath{\uparrow}'
423
+ end #Uarr
399
424
 
400
425
  =begin rdoc
401
426
  Define Element :dArr, :Downarrow
@@ -407,13 +432,13 @@ or
407
432
  DDownarrow.new( )
408
433
  Attributes are not defined for this element.
409
434
  =end
410
- class DDownarrow < Element
411
- add_id :Downarrow
412
- add_id :dArr
413
- has_no_content false
414
- add_html_output '&dArr;'
415
- add_latex_output '\ensuremath{\Downarrow}'
416
- end #Darr
435
+ class DDownarrow < Element
436
+ add_id :Downarrow
437
+ add_id :dArr
438
+ has_no_content false
439
+ add_html_output '&dArr;'
440
+ add_latex_output '\ensuremath{\Downarrow}'
441
+ end #Darr
417
442
 
418
443
  =begin rdoc
419
444
  Define Element :darr, :downarrow
@@ -425,12 +450,12 @@ or
425
450
  Darr.new( )
426
451
  Attributes are not defined for this element.
427
452
  =end
428
- class Downarrow < Element
429
- add_id :darr
430
- has_no_content false
431
- add_html_output '&darr;'
432
- add_latex_output '\ensuremath{\downarrow}'
433
- end #Darr
453
+ class Downarrow < Element
454
+ add_id :darr
455
+ has_no_content false
456
+ add_html_output '&darr;'
457
+ add_latex_output '\ensuremath{\downarrow}'
458
+ end #Darr
434
459
 
435
460
  =begin rdoc
436
461
  Define Element :lt, :<
@@ -442,12 +467,13 @@ or
442
467
  Lt.new( )
443
468
  Attributes are not defined for this element.
444
469
  =end
445
- class Lt < Element
446
- add_id :<
447
- has_no_content false
448
- add_html_output '&lt;'
449
- add_latex_output '\ensuremath{<}'
450
- end #Lt
470
+ class Lt < Element
471
+ add_id :<
472
+ has_no_content false
473
+ add_html_output '&lt;'
474
+ add_latex_output '\ensuremath{<}'
475
+ add_text_output '<'
476
+ end #Lt
451
477
 
452
478
  =begin rdoc
453
479
  Define Element :gt, :>
@@ -459,12 +485,13 @@ or
459
485
  Gt.new( )
460
486
  Attributes are not defined for this element.
461
487
  =end
462
- class Gt < Element
463
- add_id :>
464
- has_no_content false
465
- add_html_output '&gt;'
466
- add_latex_output '\ensuremath{>}'
467
- end #Gt
488
+ class Gt < Element
489
+ add_id :>
490
+ has_no_content false
491
+ add_html_output '&gt;'
492
+ add_latex_output '\ensuremath{>}'
493
+ add_text_output '>'
494
+ end #Gt
468
495
 
469
496
  =begin rdoc
470
497
  Define Element :infin, :infty
@@ -476,12 +503,12 @@ or
476
503
  Infin.new( )
477
504
  Attributes are not defined for this element.
478
505
  =end
479
- class Infin < Element
480
- add_id :infty
481
- has_no_content false
482
- add_html_output '&infin;'
483
- add_latex_output '\ensuremath{\infty}'
484
- end #Infin
506
+ class Infin < Element
507
+ add_id :infty
508
+ has_no_content false
509
+ add_html_output '&infin;'
510
+ add_latex_output '\ensuremath{\infty}'
511
+ end #Infin
485
512
 
486
513
  =begin rdoc
487
514
  Define Element :divide
@@ -492,11 +519,11 @@ or
492
519
  Divide.new( )
493
520
  Attributes are not defined for this element.
494
521
  =end
495
- class Divide < Element
496
- has_no_content false
497
- add_html_output '&divide;'
498
- add_latex_output '\ensuremath{\div}'
499
- end #Divide
522
+ class Divide < Element
523
+ has_no_content false
524
+ add_html_output '&divide;'
525
+ add_latex_output '\ensuremath{\div}'
526
+ end #Divide
500
527
 
501
528
  =begin rdoc
502
529
  Define Element :yen
@@ -507,10 +534,13 @@ or
507
534
  Yen.new( )
508
535
  Attributes are not defined for this element.
509
536
  =end
510
- class Yen < Element
511
- has_no_content false
512
- add_html_output '&yen;'
513
- end #Yen
537
+ class Yen < Element
538
+ has_no_content false
539
+ add_html_output '&yen;'
540
+ add_text_output '¥'
541
+ add_wiki_output '¥'
542
+ add_creole_output '¥'
543
+ end #Yen
514
544
 
515
545
  =begin rdoc
516
546
  Define Element :sim
@@ -521,11 +551,11 @@ or
521
551
  Sim.new( )
522
552
  Attributes are not defined for this element.
523
553
  =end
524
- class Sim < Element
525
- has_no_content false
526
- add_html_output '&sim;'
527
- add_latex_output '\ensuremath{\sim}'
528
- end #Sim
554
+ class Sim < Element
555
+ has_no_content false
556
+ add_html_output '&sim;'
557
+ add_latex_output '\ensuremath{\sim}'
558
+ end #Sim
529
559
 
530
560
  =begin rdoc
531
561
  Define Element :brvbar
@@ -536,11 +566,11 @@ or
536
566
  Brvbar.new( )
537
567
  Attributes are not defined for this element.
538
568
  =end
539
- class Brvbar < Element
540
- has_no_content false
541
- add_html_output '&brvbar;'
542
- add_latex_output '|'
543
- end #Brvbar
569
+ class Brvbar < Element
570
+ has_no_content false
571
+ add_html_output '&brvbar;'
572
+ add_latex_output '|'
573
+ end #Brvbar
544
574
 
545
575
 
546
576
  =begin rdoc
@@ -553,12 +583,12 @@ or
553
583
  Neg.new( )
554
584
  Attributes are not defined for this element.
555
585
  =end
556
- class Neg < Element
557
- add_id :not
558
- has_no_content false
559
- add_html_output '&not;'
560
- add_latex_output '\ensuremath{\neg}'
561
- end #Neg
586
+ class Neg < Element
587
+ add_id :not
588
+ has_no_content false
589
+ add_html_output '&not;'
590
+ add_latex_output '\ensuremath{\neg}'
591
+ end #Neg
562
592
 
563
593
  =begin rdoc
564
594
  Define Element :times
@@ -569,11 +599,11 @@ or
569
599
  Times.new( )
570
600
  Attributes are not defined for this element.
571
601
  =end
572
- class Times < Element
573
- has_no_content false
574
- add_html_output '&times;'
575
- add_latex_output '\ensuremath{\times}'
576
- end #Times
602
+ class Times < Element
603
+ has_no_content false
604
+ add_html_output '&times;'
605
+ add_latex_output '\ensuremath{\times}'
606
+ end #Times
577
607
 
578
608
  =begin rdoc
579
609
  Define Element :otimes
@@ -584,11 +614,11 @@ or
584
614
  Otimes.new( )
585
615
  Attributes are not defined for this element.
586
616
  =end
587
- class Otimes < Element
588
- has_no_content false
589
- add_html_output '&otimes;'
590
- add_latex_output '\ensuremath{\otimes}'
591
- end #Otimes
617
+ class Otimes < Element
618
+ has_no_content false
619
+ add_html_output '&otimes;'
620
+ add_latex_output '\ensuremath{\otimes}'
621
+ end #Otimes
592
622
 
593
623
  =begin rdoc
594
624
  Define Element :empty
@@ -599,12 +629,12 @@ or
599
629
  Empty.new( )
600
630
  Attributes are not defined for this element.
601
631
  =end
602
- class Empty < Element
603
- add_id :emptyset
604
- has_no_content false
605
- add_html_output '&empty;'
606
- add_latex_output '\ensuremath{\emptyset}'
607
- end #Empty
632
+ class Empty < Element
633
+ add_id :emptyset
634
+ has_no_content false
635
+ add_html_output '&empty;'
636
+ add_latex_output '\ensuremath{\emptyset}'
637
+ end #Empty
608
638
 
609
639
  =begin rdoc
610
640
  Define Element :_, :underscore
@@ -616,15 +646,15 @@ or
616
646
  Underscore.new( )
617
647
  Attributes are not defined for this element.
618
648
  =end
619
- class Underscore < Element
620
- add_id :_
621
- has_no_content false
622
- add_html_output '_'
623
- add_latex_output '\_'
624
- add_wiki_output '_'
625
- add_creole_output '_'
626
- add_text_output '_'
627
- end #_
649
+ class Underscore < Element
650
+ add_id :_
651
+ has_no_content false
652
+ add_html_output '_'
653
+ add_latex_output '\_'
654
+ add_wiki_output '_'
655
+ add_creole_output '_'
656
+ add_text_output '_'
657
+ end #_
628
658
 
629
659
  =begin rdoc
630
660
  Define Element :"...", :ldots
@@ -636,13 +666,13 @@ or
636
666
  Ldots.new( )
637
667
  Attributes are not defined for this element.
638
668
  =end
639
- class Ldots < Element
640
- add_id :'...'
641
- has_no_content false
642
- add_html_output '&hellip;'
643
- add_latex_output '\ldots '
644
- add_creole_output '…'
645
- end #...
669
+ class Ldots < Element
670
+ add_id :'...'
671
+ has_no_content false
672
+ add_html_output '&hellip;'
673
+ add_latex_output '\ldots '
674
+ add_creole_output '…'
675
+ end #...
646
676
 
647
677
  =begin rdoc
648
678
  Define Element :bullet
@@ -653,11 +683,11 @@ or
653
683
  Bullet.new( )
654
684
  Attributes are not defined for this element.
655
685
  =end
656
- class Bullet < Element
657
- has_no_content false
658
- add_html_output '&#149;'
659
- add_latex_output '\ensuremath{\bullet}'
660
- end #Bullet
686
+ class Bullet < Element
687
+ has_no_content false
688
+ add_html_output '&#149;'
689
+ add_latex_output '\ensuremath{\bullet}'
690
+ end #Bullet
661
691
 
662
692
  =begin rdoc
663
693
  Define Element :"--", :ndash
@@ -669,13 +699,13 @@ or
669
699
  Ndash.new( )
670
700
  Attributes are not defined for this element.
671
701
  =end
672
- class Ndash < Element
673
- add_id :'--'
674
- has_no_content false
675
- add_html_output '&ndash;'
676
- add_latex_output '--'
677
- add_creole_output '–'
678
- end #--
702
+ class Ndash < Element
703
+ add_id :'--'
704
+ has_no_content false
705
+ add_html_output '&ndash;'
706
+ add_latex_output '--'
707
+ add_creole_output '–'
708
+ end #--
679
709
 
680
710
  =begin rdoc
681
711
  Define Element :"---", :mdash
@@ -687,13 +717,13 @@ or
687
717
  Mdash.new( )
688
718
  Attributes are not defined for this element.
689
719
  =end
690
- class Mdash < Element
691
- add_id :'---'
692
- has_no_content false
693
- add_html_output '&mdash;'
694
- add_latex_output '--- '
695
- add_creole_output '—'
696
- end #---
720
+ class Mdash < Element
721
+ add_id :'---'
722
+ has_no_content false
723
+ add_html_output '&mdash;'
724
+ add_latex_output '--- '
725
+ add_creole_output '—'
726
+ end #---
697
727
 
698
728
  =begin rdoc
699
729
  Define Element :dagger
@@ -704,11 +734,11 @@ or
704
734
  Dagger.new( )
705
735
  Attributes are not defined for this element.
706
736
  =end
707
- class Dagger < Element
708
- has_no_content false
709
- add_html_output '&dagger;'
710
- add_latex_output '\dag'
711
- end #Dagger
737
+ class Dagger < Element
738
+ has_no_content false
739
+ add_html_output '&dagger;'
740
+ add_latex_output '\dag'
741
+ end #Dagger
712
742
 
713
743
  =begin rdoc
714
744
  Define Element :bdquo
@@ -719,14 +749,15 @@ or
719
749
  Doublelowquotemark.new( )
720
750
  Attributes are not defined for this element.
721
751
  =end
722
- class Doublelowquotemark < Element
723
- add_id :bdquo
724
- add_id :glqq
725
- has_no_content false
726
- add_html_output '&bdquo;'
727
- add_latex_output '\glqq '
728
- add_creole_output '„'
729
- end #Bdquo
752
+ class Doublelowquotemark < Element
753
+ add_id :bdquo
754
+ add_id :glqq
755
+ has_no_content false
756
+ add_html_output '&bdquo;'
757
+ add_latex_output '\glqq '
758
+ add_wiki_output '„'
759
+ add_creole_output '„'
760
+ end #Bdquo
730
761
 
731
762
  =begin rdoc
732
763
  Define Element :ldquo
@@ -737,15 +768,16 @@ or
737
768
  Leftdoublequotemark.new( )
738
769
  Attributes are not defined for this element.
739
770
  =end
740
- class Leftdoublequotemark < Element
741
- add_id :ldquo
742
- add_id :grqq
743
- has_no_content false
744
- add_html_output '&ldquo;'
745
- add_latex_output '\grqq'
746
- add_text_output '``'
747
- add_creole_output '“'
748
- end #Ldquo
771
+ class Leftdoublequotemark < Element
772
+ add_id :ldquo
773
+ add_id :grqq
774
+ has_no_content false
775
+ add_html_output '&ldquo;'
776
+ add_latex_output '\grqq'
777
+ add_text_output '``'
778
+ add_wiki_output '“'
779
+ add_creole_output '“'
780
+ end #Ldquo
749
781
 
750
782
  =begin rdoc
751
783
  Define Element :rdquo
@@ -756,15 +788,15 @@ or
756
788
  Rightdoublequotemark.new( )
757
789
  Attributes are not defined for this element.
758
790
  =end
759
- class Rightdoublequotemark < Element
760
- add_id :rdquo
761
- add_id :rqq
762
- has_no_content false
763
- add_html_output '&rdquo;'
764
- add_latex_output '\rqq '
765
- add_text_output ''''
766
- #~ add_creole_output ''
767
- end #Rdquo
791
+ class Rightdoublequotemark < Element
792
+ add_id :rdquo
793
+ add_id :rqq
794
+ has_no_content false
795
+ add_html_output '&rdquo;'
796
+ add_latex_output '\rqq '
797
+ add_text_output ''''
798
+ #~ add_creole_output ''
799
+ end #Rdquo
768
800
 
769
801
  =begin rdoc
770
802
  Define Element :sbquo
@@ -776,14 +808,14 @@ or
776
808
  Singlelowquotemark.new( )
777
809
  Attributes are not defined for this element.
778
810
  =end
779
- class Singlelowquotemark < Element
780
- add_id :sbquo
781
- add_id :glq
782
- has_no_content false
783
- add_html_output '&sbquo;'
784
- add_latex_output '\glq '
785
- add_creole_output '‚'
786
- end #Sbquo
811
+ class Singlelowquotemark < Element
812
+ add_id :sbquo
813
+ add_id :glq
814
+ has_no_content false
815
+ add_html_output '&sbquo;'
816
+ add_latex_output '\glq '
817
+ add_creole_output '‚'
818
+ end #Sbquo
787
819
 
788
820
  =begin rdoc
789
821
  Define Element :lsquo
@@ -795,15 +827,15 @@ or
795
827
  Leftsinglequotemark.new( )
796
828
  Attributes are not defined for this element.
797
829
  =end
798
- class Leftsinglequotemark < Element
799
- add_id :lsquo
800
- add_id :lq
801
- has_no_content false
802
- add_html_output '&lsquo;'
803
- add_latex_output '\lq '
804
- add_text_output '`'
805
- #~ add_creole_output '{{lsquo}}'
806
- end #Lsquo
830
+ class Leftsinglequotemark < Element
831
+ add_id :lsquo
832
+ add_id :lq
833
+ has_no_content false
834
+ add_html_output '&lsquo;'
835
+ add_latex_output '\lq '
836
+ add_text_output '`'
837
+ #~ add_creole_output '{{lsquo}}'
838
+ end #Lsquo
807
839
 
808
840
  =begin rdoc
809
841
  Define Element :rsquo
@@ -814,15 +846,15 @@ or
814
846
  Rightsinglequotemark.new( )
815
847
  Attributes are not defined for this element.
816
848
  =end
817
- class Rightsinglequotemark < Element
818
- add_id :rsquo
819
- add_id :rq
820
- has_no_content false
821
- add_html_output '&rsquo;'
822
- add_latex_output '\rq '
823
- add_text_output ''''
824
- add_creole_output '’'
825
- end #Rsquo
849
+ class Rightsinglequotemark < Element
850
+ add_id :rsquo
851
+ add_id :rq
852
+ has_no_content false
853
+ add_html_output '&rsquo;'
854
+ add_latex_output '\rq '
855
+ add_text_output ''''
856
+ add_creole_output '’'
857
+ end #Rsquo
826
858
 
827
- end #module Characters
859
+ end #module Characters
828
860
  end #module Docgenerator