docgenerator 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/creole_example_tabular.rb +95 -0
- data/examples/docgenerator_example.rb +5 -5
- data/lib/creole/creole2doc.rb +28 -18
- data/lib/creole/creole_inclusions.rb +4 -4
- data/lib/creole/creole_placeholder.rb +4 -1
- data/lib/creole/creole_tabular.rb +173 -155
- data/lib/creole/plugins/rail.rb +118 -119
- data/lib/creole/plugins/struktex.rb +35 -35
- data/lib/creole/plugins/todonotes.rb +8 -1
- data/lib/docgenerator/attribute.rb +160 -160
- data/lib/docgenerator/characters.rb +343 -311
- data/lib/docgenerator/css.rb +167 -167
- data/lib/docgenerator/document.rb +525 -511
- data/lib/docgenerator/element.rb +316 -316
- data/lib/docgenerator/element_meta.rb +114 -114
- data/lib/docgenerator/elements.rb +19 -9
- data/lib/docgenerator/environments.rb +3 -1
- data/lib/docgenerator/lists.rb +177 -174
- data/lib/docgenerator/packages/hyperref.rb +74 -70
- data/lib/docgenerator/packages/multicol.rb +33 -0
- data/lib/docgenerator/packages/scrlettr2.rb +152 -151
- data/lib/docgenerator/packages/todonotes.rb +1 -1
- data/lib/docgenerator/tabular.rb +463 -400
- data/lib/docgenerator/templates/docgenerator_template.rb +94 -84
- data/lib/docgenerator/templates/docgenerator_template.yaml +75 -15
- data/lib/docgenerator.rb +1 -1
- data/lib/wiki2doc/wiki2docgenerator.rb +1 -1
- data/meta_test_and_doc/build__meta.rb +125 -0
- data/meta_test_and_doc/build_doc.rb +333 -0
- data/meta_test_and_doc/build_test.rb +251 -0
- data/meta_test_and_doc/manpages/attachfile.rb +389 -0
- data/meta_test_and_doc/manpages/caption.rb +133 -0
- data/meta_test_and_doc/manpages/characters.rb +3738 -0
- data/meta_test_and_doc/manpages/elements.rb +6851 -0
- data/meta_test_and_doc/manpages/environments.rb +985 -0
- data/meta_test_and_doc/manpages/footnote.rb +439 -0
- data/meta_test_and_doc/manpages/hyperref.rb +605 -0
- data/meta_test_and_doc/manpages/listings.rb +988 -0
- data/meta_test_and_doc/manpages/lists.rb +1463 -0
- data/meta_test_and_doc/manpages/others.rb +129 -0
- data/meta_test_and_doc/manpages/packages.rb +13 -0
- data/meta_test_and_doc/manpages/pdfpages.rb +108 -0
- data/meta_test_and_doc/manpages/readme.rdoc +9 -0
- data/meta_test_and_doc/manpages/scrlettr2.rb +362 -0
- data/meta_test_and_doc/manpages/scrpage2.rb +2028 -0
- data/meta_test_and_doc/manpages/sectioning.rb +2467 -0
- data/meta_test_and_doc/manpages/tables.rb +2088 -0
- data/meta_test_and_doc/manpages/todonotes.rb +235 -0
- data/meta_test_and_doc/manpages/wiki2docgenerator.rb +64 -0
- data/{readme.rd → readme.rdoc} +18 -1
- data/unittest/expected/test_tabular.creole +33 -0
- data/unittest/expected_creole/test_creole_creole1.0test.html +3 -3
- data/unittest/expected_creole/test_creole_creole1.0test.latex +3 -3
- data/unittest/expected_creole/test_creole_creole1.0test.text +3 -3
- data/unittest/expected_creole/test_creole_inline_apostroph.html +6 -0
- data/unittest/expected_creole/test_creole_inline_apostroph.latex +8 -0
- data/unittest/expected_creole/test_creole_inline_apostroph.text +4 -0
- data/unittest/expected_creole/test_creole_input.normsource +12 -12
- data/unittest/expected_creole/test_creole_input.normsource_1.8 +23 -0
- data/unittest/expected_creole/test_creole_links_external_implicit.html +2 -2
- data/unittest/expected_creole/test_creole_links_external_implicit.latex +2 -2
- data/unittest/expected_creole/test_creole_links_external_implicit.text +2 -2
- data/unittest/expected_creole/test_creole_links_implicit_end.html +1 -1
- data/unittest/expected_creole/test_creole_links_implicit_end.latex +1 -1
- data/unittest/expected_creole/test_creole_list_ul.normsource +42 -42
- data/unittest/expected_creole/test_creole_list_ul.normsource_1.8 +83 -0
- data/unittest/expected_creole/test_creole_paragraphs.normsource +15 -15
- data/unittest/expected_creole/test_creole_paragraphs.normsource_1.8 +27 -0
- data/unittest/expected_creole/test_creole_tabular.creole +22 -0
- data/unittest/expected_creole/test_creole_tabular_creole.creole +19 -0
- data/unittest/expected_creole/test_creole_tabular_css.creole +24 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.creole +16 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.html +14 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.latex +16 -0
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.creole +21 -0
- data/unittest/expected_creole/test_creole_toc_level_text.html +2 -2
- data/unittest/expected_creole/test_creole_toc_level_text.latex +2 -2
- data/unittest/expected_packages/test_multicol_3.tex +2 -0
- data/unittest/expected_packages/test_multicol_3_titleline.tex +2 -0
- data/unittest/expected_templates/test_article.tex +23 -0
- data/unittest/expected_templates/test_article_utf8.tex +34 -0
- data/unittest/expected_templates/test_context.miv +18 -0
- data/unittest/expected_templates/test_creole.creole +8 -0
- data/unittest/expected_templates/test_html.html +12 -0
- data/unittest/expected_templates/test_html401_strict.html +14 -0
- data/unittest/expected_templates/test_html401_trans.html +14 -0
- data/unittest/expected_templates/test_html_utf8.html +14 -0
- data/unittest/expected_templates/test_include.tex +17 -0
- data/unittest/expected_templates/test_include_utf8.tex +17 -0
- data/unittest/expected_templates/test_text.txt +6 -0
- data/unittest/expected_templates/test_wiki.wiki +6 -0
- data/unittest/expected_templates/test_xhtml_strict.html +14 -0
- data/unittest/expected_templates/test_xhtml_trans.html +14 -0
- data/unittest/unittest_creole.rb +27 -6
- data/unittest/unittest_creole_placeholders.rb +1 -123
- data/unittest/unittest_creole_tabular.rb +174 -0
- data/unittest/unittest_docgenerator.rb +4 -3
- data/unittest/unittest_docgenerator_characters.rb +4769 -615
- data/unittest/unittest_packages_multicol.rb +84 -0
- data/unittest/unittest_rubycode4doc.rb +0 -1
- data/unittest/unittest_templates.rb +64 -0
- metadata +163 -77
- data/build_test_and_doc.rb +0 -505
- 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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
end #Shy
|
33
|
+
class Shy < Element
|
34
|
+
has_no_content false
|
35
|
+
add_html_output '­'
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
class Space < Element
|
52
|
+
add_id :ensp
|
53
|
+
has_no_content false
|
54
|
+
add_html_output ' '
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
class Bigspace < Element
|
72
|
+
add_id :emsp
|
73
|
+
has_no_content false
|
74
|
+
add_html_output ' '
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
end #Nbsp
|
92
|
+
class Nbsp < Element
|
93
|
+
has_no_content false
|
94
|
+
add_html_output ' '
|
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
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
107
|
+
class Euro < Element
|
108
|
+
has_no_content false
|
109
|
+
add_html_output '€'
|
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
|
-
|
123
|
-
|
124
|
-
|
133
|
+
class Euros < Element
|
134
|
+
add_html_output '#{@content}€'
|
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
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
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
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
end #Iquest
|
209
|
+
class Iquest < Element
|
210
|
+
has_no_content false
|
211
|
+
add_html_output '¿'
|
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
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
end #Ampersand
|
228
|
+
class Ampersand < Element
|
229
|
+
add_id :&
|
230
|
+
has_no_content false
|
231
|
+
add_html_output '&'
|
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
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
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
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
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
|
-
|
260
|
-
|
261
|
-
|
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
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
294
|
+
class Radic < Element
|
295
|
+
has_no_content false
|
296
|
+
add_html_output '√'
|
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
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
end #Rarr
|
315
|
+
class Rightarrow < Element
|
316
|
+
add_id :rarr
|
317
|
+
add_id :"->"
|
318
|
+
has_no_content false
|
319
|
+
add_html_output '→'
|
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
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
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 '⇒'
|
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
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
end #Larr
|
358
|
+
class Leftarrow < Element
|
359
|
+
add_id :larr
|
360
|
+
add_id :"<-"
|
361
|
+
has_no_content false
|
362
|
+
add_html_output '←'
|
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
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
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 '⇐'
|
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
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
end #Uarr
|
400
|
+
class UUparrow < Element
|
401
|
+
add_id :Uparrow
|
402
|
+
add_id :uArr
|
403
|
+
has_no_content false
|
404
|
+
add_html_output '⇑'
|
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
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
end #Uarr
|
418
|
+
class Uparrow < Element
|
419
|
+
add_id :uarr
|
420
|
+
has_no_content false
|
421
|
+
add_html_output '↑'
|
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
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
end #Darr
|
435
|
+
class DDownarrow < Element
|
436
|
+
add_id :Downarrow
|
437
|
+
add_id :dArr
|
438
|
+
has_no_content false
|
439
|
+
add_html_output '⇓'
|
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
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
end #Darr
|
453
|
+
class Downarrow < Element
|
454
|
+
add_id :darr
|
455
|
+
has_no_content false
|
456
|
+
add_html_output '↓'
|
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
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
470
|
+
class Lt < Element
|
471
|
+
add_id :<
|
472
|
+
has_no_content false
|
473
|
+
add_html_output '<'
|
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
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
488
|
+
class Gt < Element
|
489
|
+
add_id :>
|
490
|
+
has_no_content false
|
491
|
+
add_html_output '>'
|
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
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
end #Infin
|
506
|
+
class Infin < Element
|
507
|
+
add_id :infty
|
508
|
+
has_no_content false
|
509
|
+
add_html_output '∞'
|
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
|
-
|
497
|
-
|
498
|
-
|
499
|
-
end #Divide
|
522
|
+
class Divide < Element
|
523
|
+
has_no_content false
|
524
|
+
add_html_output '÷'
|
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
|
-
|
512
|
-
|
513
|
-
|
537
|
+
class Yen < Element
|
538
|
+
has_no_content false
|
539
|
+
add_html_output '¥'
|
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
|
-
|
526
|
-
|
527
|
-
|
528
|
-
end #Sim
|
554
|
+
class Sim < Element
|
555
|
+
has_no_content false
|
556
|
+
add_html_output '∼'
|
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
|
-
|
541
|
-
|
542
|
-
|
543
|
-
end #Brvbar
|
569
|
+
class Brvbar < Element
|
570
|
+
has_no_content false
|
571
|
+
add_html_output '¦'
|
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
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
end #Neg
|
586
|
+
class Neg < Element
|
587
|
+
add_id :not
|
588
|
+
has_no_content false
|
589
|
+
add_html_output '¬'
|
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
|
-
|
574
|
-
|
575
|
-
|
576
|
-
end #Times
|
602
|
+
class Times < Element
|
603
|
+
has_no_content false
|
604
|
+
add_html_output '×'
|
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
|
-
|
589
|
-
|
590
|
-
|
591
|
-
end #Otimes
|
617
|
+
class Otimes < Element
|
618
|
+
has_no_content false
|
619
|
+
add_html_output '⊗'
|
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
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
end #Empty
|
632
|
+
class Empty < Element
|
633
|
+
add_id :emptyset
|
634
|
+
has_no_content false
|
635
|
+
add_html_output '∅'
|
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
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
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
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
end #...
|
669
|
+
class Ldots < Element
|
670
|
+
add_id :'...'
|
671
|
+
has_no_content false
|
672
|
+
add_html_output '…'
|
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
|
-
|
658
|
-
|
659
|
-
|
660
|
-
end #Bullet
|
686
|
+
class Bullet < Element
|
687
|
+
has_no_content false
|
688
|
+
add_html_output '•'
|
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
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
end #--
|
702
|
+
class Ndash < Element
|
703
|
+
add_id :'--'
|
704
|
+
has_no_content false
|
705
|
+
add_html_output '–'
|
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
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
end #---
|
720
|
+
class Mdash < Element
|
721
|
+
add_id :'---'
|
722
|
+
has_no_content false
|
723
|
+
add_html_output '—'
|
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
|
-
|
709
|
-
|
710
|
-
|
711
|
-
end #Dagger
|
737
|
+
class Dagger < Element
|
738
|
+
has_no_content false
|
739
|
+
add_html_output '†'
|
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
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
752
|
+
class Doublelowquotemark < Element
|
753
|
+
add_id :bdquo
|
754
|
+
add_id :glqq
|
755
|
+
has_no_content false
|
756
|
+
add_html_output '„'
|
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
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
771
|
+
class Leftdoublequotemark < Element
|
772
|
+
add_id :ldquo
|
773
|
+
add_id :grqq
|
774
|
+
has_no_content false
|
775
|
+
add_html_output '“'
|
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
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
end #Rdquo
|
791
|
+
class Rightdoublequotemark < Element
|
792
|
+
add_id :rdquo
|
793
|
+
add_id :rqq
|
794
|
+
has_no_content false
|
795
|
+
add_html_output '”'
|
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
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
end #Sbquo
|
811
|
+
class Singlelowquotemark < Element
|
812
|
+
add_id :sbquo
|
813
|
+
add_id :glq
|
814
|
+
has_no_content false
|
815
|
+
add_html_output '‚'
|
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
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
end #Lsquo
|
830
|
+
class Leftsinglequotemark < Element
|
831
|
+
add_id :lsquo
|
832
|
+
add_id :lq
|
833
|
+
has_no_content false
|
834
|
+
add_html_output '‘'
|
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
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
end #Rsquo
|
849
|
+
class Rightsinglequotemark < Element
|
850
|
+
add_id :rsquo
|
851
|
+
add_id :rq
|
852
|
+
has_no_content false
|
853
|
+
add_html_output '’'
|
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
|