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.
- 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
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
#encoding utf-8
|
|
2
|
+
=begin rdoc
|
|
3
|
+
Generated manpages for elements.
|
|
4
|
+
|
|
5
|
+
This document does not contain the implementation or code documentation.
|
|
6
|
+
|
|
7
|
+
This document is the source for a manpage for usage of Docgenerator elements.
|
|
8
|
+
|
|
9
|
+
The following Element are documented in this document:
|
|
10
|
+
|
|
11
|
+
* Docgenerator::Style
|
|
12
|
+
=end
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
module Docgenerator
|
|
16
|
+
=begin rdoc
|
|
17
|
+
=Docgenerator::Style
|
|
18
|
+
|
|
19
|
+
Docgenerator::Style does not contain attributes
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Docgenerator::Style can contain content.
|
|
23
|
+
|
|
24
|
+
==Generate an object
|
|
25
|
+
test = Docgenerator::Style.new( {}, 'content')
|
|
26
|
+
|
|
27
|
+
Alternative generation
|
|
28
|
+
test = element(:style, {}, 'content' )
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
==Outputs
|
|
32
|
+
===Docgenerator::Style#to_latex
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Style#.to_latex
|
|
36
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
37
|
+
|
|
38
|
+
Default:
|
|
39
|
+
<<START>><<END>>
|
|
40
|
+
|
|
41
|
+
* Docgenerator::Style#cr has no effect, same result as default
|
|
42
|
+
* Docgenerator::Style#cR has no effect, same result as default
|
|
43
|
+
* Docgenerator::Style#Cr has no effect, same result as default
|
|
44
|
+
* Docgenerator::Style#CR has no effect, same result as default
|
|
45
|
+
===Docgenerator::Style#to_html
|
|
46
|
+
<style type="text/css">
|
|
47
|
+
content</style>
|
|
48
|
+
|
|
49
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Style#.to_html
|
|
50
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
51
|
+
|
|
52
|
+
Default:
|
|
53
|
+
<<START>><style type="text/css">
|
|
54
|
+
content</style><<END>>
|
|
55
|
+
|
|
56
|
+
* Result after Docgenerator::Style#cr:
|
|
57
|
+
|
|
58
|
+
<<START>><style type="text/css">
|
|
59
|
+
content</style>
|
|
60
|
+
<<END>>
|
|
61
|
+
|
|
62
|
+
* Result after Docgenerator::Style#cR:
|
|
63
|
+
|
|
64
|
+
<<START>><style type="text/css">
|
|
65
|
+
content</style>
|
|
66
|
+
<<END>>
|
|
67
|
+
|
|
68
|
+
* Result after Docgenerator::Style#Cr:
|
|
69
|
+
|
|
70
|
+
<<START>>
|
|
71
|
+
<style type="text/css">
|
|
72
|
+
content</style>
|
|
73
|
+
<<END>>
|
|
74
|
+
|
|
75
|
+
* Result after Docgenerator::Style#CR:
|
|
76
|
+
|
|
77
|
+
<<START>>
|
|
78
|
+
<style type="text/css">
|
|
79
|
+
content</style>
|
|
80
|
+
<<END>>
|
|
81
|
+
|
|
82
|
+
===Docgenerator::Style#to_context
|
|
83
|
+
\style{content}
|
|
84
|
+
|
|
85
|
+
* No output routine defined for context - use a dummy
|
|
86
|
+
===Docgenerator::Style#to_text
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Style#.to_text
|
|
90
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
91
|
+
|
|
92
|
+
Default:
|
|
93
|
+
<<START>><<END>>
|
|
94
|
+
|
|
95
|
+
* Docgenerator::Style#cr has no effect, same result as default
|
|
96
|
+
* Docgenerator::Style#cR has no effect, same result as default
|
|
97
|
+
* Docgenerator::Style#Cr has no effect, same result as default
|
|
98
|
+
* Docgenerator::Style#CR has no effect, same result as default
|
|
99
|
+
===Docgenerator::Style#to_wiki
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Style#.to_wiki
|
|
103
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
104
|
+
|
|
105
|
+
Default:
|
|
106
|
+
<<START>><<END>>
|
|
107
|
+
|
|
108
|
+
* Docgenerator::Style#cr has no effect, same result as default
|
|
109
|
+
* Docgenerator::Style#cR has no effect, same result as default
|
|
110
|
+
* Docgenerator::Style#Cr has no effect, same result as default
|
|
111
|
+
* Docgenerator::Style#CR has no effect, same result as default
|
|
112
|
+
===Docgenerator::Style#to_creole
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Style#.to_creole
|
|
116
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
117
|
+
|
|
118
|
+
Default:
|
|
119
|
+
<<START>><<END>>
|
|
120
|
+
|
|
121
|
+
* Docgenerator::Style#cr has no effect, same result as default
|
|
122
|
+
* Docgenerator::Style#cR has no effect, same result as default
|
|
123
|
+
* Docgenerator::Style#Cr has no effect, same result as default
|
|
124
|
+
* Docgenerator::Style#CR has no effect, same result as default
|
|
125
|
+
=end
|
|
126
|
+
class Style << Docgenerator::Element
|
|
127
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
|
128
|
+
end #class Style
|
|
129
|
+
end #module Docgenerator
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
=begin rdoc
|
|
2
|
+
Generated manpages for elements.
|
|
3
|
+
|
|
4
|
+
This document does not contain the implementation od code documentation.
|
|
5
|
+
|
|
6
|
+
This document is the source for a manpage for usage of Docgenerator elements.
|
|
7
|
+
|
|
8
|
+
The following Element are documented in this document:
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
#
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
#encoding utf-8
|
|
2
|
+
=begin rdoc
|
|
3
|
+
Generated manpages for elements.
|
|
4
|
+
|
|
5
|
+
This document does not contain the implementation or code documentation.
|
|
6
|
+
|
|
7
|
+
This document is the source for a manpage for usage of Docgenerator elements.
|
|
8
|
+
|
|
9
|
+
The following Element are documented in this document:
|
|
10
|
+
|
|
11
|
+
* Docgenerator::Packages::IncludePDF
|
|
12
|
+
=end
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
module Docgenerator
|
|
16
|
+
module Packages
|
|
17
|
+
=begin rdoc
|
|
18
|
+
=Docgenerator::Packages::IncludePDF
|
|
19
|
+
|
|
20
|
+
==Attributes
|
|
21
|
+
Attribute required? HTML LaTeX ~keyval ConTeXt Text Wiki Creole Values
|
|
22
|
+
====================================================================================================
|
|
23
|
+
pages : - - - X - - - -
|
|
24
|
+
nup : - - - X - - - -
|
|
25
|
+
landscape : - - - X - - - -
|
|
26
|
+
pagecommand : - - - X - - - -
|
|
27
|
+
link : - - - X - - - -
|
|
28
|
+
linkname : - - - X - - - -
|
|
29
|
+
linktodoc : - - - X - - - -
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Docgenerator::Packages::IncludePDF can contain content.
|
|
33
|
+
|
|
34
|
+
==Generate an object
|
|
35
|
+
test = Docgenerator::Packages::IncludePDF.new( {
|
|
36
|
+
#:pages => <<value>>, % optional, values: [String]
|
|
37
|
+
#:nup => <<value>>, % optional, values: [/\d+x\d+/]
|
|
38
|
+
#:landscape => <<value>>, % optional, values: [true, false]
|
|
39
|
+
#:pagecommand => <<value>>, % optional, values: [String]
|
|
40
|
+
#:link => <<value>>, % optional, values: [true, false]
|
|
41
|
+
#:linkname => <<value>>, % optional, values: [String]
|
|
42
|
+
#:linktodoc => <<value>>, % optional, values: [true, false]
|
|
43
|
+
}, 'content')
|
|
44
|
+
|
|
45
|
+
Alternative generation
|
|
46
|
+
test = element(:includepdf, {...Attributes...}, 'content' )
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
==Outputs
|
|
50
|
+
===Docgenerator::Packages::IncludePDF#to_latex
|
|
51
|
+
\includepdf[]{content}
|
|
52
|
+
|
|
53
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Packages::IncludePDF#.to_latex
|
|
54
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
55
|
+
|
|
56
|
+
Default:
|
|
57
|
+
<<START>>\includepdf[]{content}<<END>>
|
|
58
|
+
|
|
59
|
+
* Result after Docgenerator::Packages::IncludePDF#cr:
|
|
60
|
+
|
|
61
|
+
<<START>>\includepdf[]{content}
|
|
62
|
+
<<END>>
|
|
63
|
+
|
|
64
|
+
* Result after Docgenerator::Packages::IncludePDF#cR:
|
|
65
|
+
|
|
66
|
+
<<START>>\includepdf[]{content}
|
|
67
|
+
<<END>>
|
|
68
|
+
|
|
69
|
+
* Result after Docgenerator::Packages::IncludePDF#Cr:
|
|
70
|
+
|
|
71
|
+
<<START>>
|
|
72
|
+
\includepdf[]{content}
|
|
73
|
+
<<END>>
|
|
74
|
+
|
|
75
|
+
* Result after Docgenerator::Packages::IncludePDF#CR:
|
|
76
|
+
|
|
77
|
+
<<START>>
|
|
78
|
+
\includepdf[]{content}
|
|
79
|
+
<<END>>
|
|
80
|
+
|
|
81
|
+
===Docgenerator::Packages::IncludePDF#to_html
|
|
82
|
+
<span >content</span>
|
|
83
|
+
|
|
84
|
+
* No output routine defined for html - use a dummy
|
|
85
|
+
===Docgenerator::Packages::IncludePDF#to_context
|
|
86
|
+
\includepdf{content}
|
|
87
|
+
|
|
88
|
+
* No output routine defined for context - use a dummy
|
|
89
|
+
===Docgenerator::Packages::IncludePDF#to_text
|
|
90
|
+
content
|
|
91
|
+
|
|
92
|
+
* No output routine defined for text - use a dummy
|
|
93
|
+
===Docgenerator::Packages::IncludePDF#to_wiki
|
|
94
|
+
content
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
* No output routine defined for wiki - use a dummy
|
|
98
|
+
===Docgenerator::Packages::IncludePDF#to_creole
|
|
99
|
+
content
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
* No output routine defined for creole - use a dummy
|
|
103
|
+
=end
|
|
104
|
+
class IncludePDF << Docgenerator::Element
|
|
105
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
|
106
|
+
end #class IncludePDF
|
|
107
|
+
end #module Packages
|
|
108
|
+
end #module Docgenerator
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
This is a generated manpage collection for docgenerator.
|
|
2
|
+
|
|
3
|
+
Each *Element*-class of Docgenerator is analyzed for attributes and output.
|
|
4
|
+
|
|
5
|
+
==:cr, :cR, :Cr, :CR for elements
|
|
6
|
+
With Element#cr, Element#cR, Element#Cr, Element#CR you may influence
|
|
7
|
+
the code layout.
|
|
8
|
+
|
|
9
|
+
The manpages show the different looks of the variants.
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
#encoding utf-8
|
|
2
|
+
=begin rdoc
|
|
3
|
+
Generated manpages for elements.
|
|
4
|
+
|
|
5
|
+
This document does not contain the implementation or code documentation.
|
|
6
|
+
|
|
7
|
+
This document is the source for a manpage for usage of Docgenerator elements.
|
|
8
|
+
|
|
9
|
+
The following Element are documented in this document:
|
|
10
|
+
|
|
11
|
+
* Docgenerator::Packages::Letter::LoadLetterOption
|
|
12
|
+
* Docgenerator::Packages::Letter::Setkomavar
|
|
13
|
+
* Docgenerator::Packages::Letter::Letter
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
#
|
|
17
|
+
module Docgenerator
|
|
18
|
+
module Packages
|
|
19
|
+
module Letter
|
|
20
|
+
=begin rdoc
|
|
21
|
+
=Docgenerator::Packages::Letter::LoadLetterOption
|
|
22
|
+
|
|
23
|
+
Docgenerator::Packages::Letter::LoadLetterOption does not contain attributes
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Docgenerator::Packages::Letter::LoadLetterOption can contain content.
|
|
27
|
+
|
|
28
|
+
==Generate an object
|
|
29
|
+
test = Docgenerator::Packages::Letter::LoadLetterOption.new( {}, 'content')
|
|
30
|
+
|
|
31
|
+
Alternative generation
|
|
32
|
+
test = element(:loadletteroption, {}, 'content' )
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
==Outputs
|
|
36
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_latex
|
|
37
|
+
\LoadLetterOption{content}
|
|
38
|
+
|
|
39
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Packages::Letter::LoadLetterOption#.to_latex
|
|
40
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
41
|
+
|
|
42
|
+
Default:
|
|
43
|
+
<<START>>\LoadLetterOption{content}<<END>>
|
|
44
|
+
|
|
45
|
+
* Result after Docgenerator::Packages::Letter::LoadLetterOption#cr:
|
|
46
|
+
|
|
47
|
+
<<START>>\LoadLetterOption{content}
|
|
48
|
+
<<END>>
|
|
49
|
+
|
|
50
|
+
* Result after Docgenerator::Packages::Letter::LoadLetterOption#cR:
|
|
51
|
+
|
|
52
|
+
<<START>>\LoadLetterOption{content}
|
|
53
|
+
<<END>>
|
|
54
|
+
|
|
55
|
+
* Result after Docgenerator::Packages::Letter::LoadLetterOption#Cr:
|
|
56
|
+
|
|
57
|
+
<<START>>
|
|
58
|
+
\LoadLetterOption{content}
|
|
59
|
+
<<END>>
|
|
60
|
+
|
|
61
|
+
* Result after Docgenerator::Packages::Letter::LoadLetterOption#CR:
|
|
62
|
+
|
|
63
|
+
<<START>>
|
|
64
|
+
\LoadLetterOption{content}
|
|
65
|
+
<<END>>
|
|
66
|
+
|
|
67
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_html
|
|
68
|
+
<span >content</span>
|
|
69
|
+
|
|
70
|
+
* No output routine defined for html - use a dummy
|
|
71
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_context
|
|
72
|
+
\loadletteroption{content}
|
|
73
|
+
|
|
74
|
+
* No output routine defined for context - use a dummy
|
|
75
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_text
|
|
76
|
+
content
|
|
77
|
+
|
|
78
|
+
* No output routine defined for text - use a dummy
|
|
79
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_wiki
|
|
80
|
+
content
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
* No output routine defined for wiki - use a dummy
|
|
84
|
+
===Docgenerator::Packages::Letter::LoadLetterOption#to_creole
|
|
85
|
+
content
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
* No output routine defined for creole - use a dummy
|
|
89
|
+
=end
|
|
90
|
+
class LoadLetterOption << Docgenerator::Element
|
|
91
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
|
92
|
+
end #class LoadLetterOption
|
|
93
|
+
end #module Letter
|
|
94
|
+
end #module Packages
|
|
95
|
+
end #module Docgenerator
|
|
96
|
+
module Docgenerator
|
|
97
|
+
module Packages
|
|
98
|
+
module Letter
|
|
99
|
+
=begin rdoc
|
|
100
|
+
=Docgenerator::Packages::Letter::Setkomavar
|
|
101
|
+
|
|
102
|
+
==Attributes
|
|
103
|
+
Attribute required? HTML LaTeX ~keyval ConTeXt Text Wiki Creole Values
|
|
104
|
+
====================================================================================================
|
|
105
|
+
field : X - X - - - - -
|
|
106
|
+
fieldtext : X - X - - - - -
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
Docgenerator::Packages::Letter::Setkomavar can contain content.
|
|
110
|
+
|
|
111
|
+
==Generate an object
|
|
112
|
+
test = Docgenerator::Packages::Letter::Setkomavar.new( {
|
|
113
|
+
:field => <<value>>, % required, values: [Symbol]
|
|
114
|
+
:fieldtext => <<value>>, % required, values: [String]
|
|
115
|
+
}, 'content')
|
|
116
|
+
|
|
117
|
+
Alternative generation
|
|
118
|
+
test = element(:setkomavar, {...Attributes...}, 'content' )
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
==Outputs
|
|
122
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_latex
|
|
123
|
+
\setkomavar{Value for field}[Value for fieldtext]{content}
|
|
124
|
+
|
|
125
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Packages::Letter::Setkomavar#.to_latex
|
|
126
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
127
|
+
|
|
128
|
+
Default:
|
|
129
|
+
<<START>>\setkomavar{Value for field}[Value for fieldtext]{content}<<END>>
|
|
130
|
+
|
|
131
|
+
* Result after Docgenerator::Packages::Letter::Setkomavar#cr:
|
|
132
|
+
|
|
133
|
+
<<START>>\setkomavar{Value for field}[Value for fieldtext]{content}
|
|
134
|
+
<<END>>
|
|
135
|
+
|
|
136
|
+
* Result after Docgenerator::Packages::Letter::Setkomavar#cR:
|
|
137
|
+
|
|
138
|
+
<<START>>\setkomavar{Value for field}[Value for fieldtext]{content}
|
|
139
|
+
<<END>>
|
|
140
|
+
|
|
141
|
+
* Result after Docgenerator::Packages::Letter::Setkomavar#Cr:
|
|
142
|
+
|
|
143
|
+
<<START>>
|
|
144
|
+
\setkomavar{Value for field}[Value for fieldtext]{content}
|
|
145
|
+
<<END>>
|
|
146
|
+
|
|
147
|
+
* Result after Docgenerator::Packages::Letter::Setkomavar#CR:
|
|
148
|
+
|
|
149
|
+
<<START>>
|
|
150
|
+
\setkomavar{Value for field}[Value for fieldtext]{content}
|
|
151
|
+
<<END>>
|
|
152
|
+
|
|
153
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_html
|
|
154
|
+
<span >content</span>
|
|
155
|
+
|
|
156
|
+
* No output routine defined for html - use a dummy
|
|
157
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_context
|
|
158
|
+
\setkomavar{content}
|
|
159
|
+
|
|
160
|
+
* No output routine defined for context - use a dummy
|
|
161
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_text
|
|
162
|
+
content
|
|
163
|
+
|
|
164
|
+
* No output routine defined for text - use a dummy
|
|
165
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_wiki
|
|
166
|
+
content
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
* No output routine defined for wiki - use a dummy
|
|
170
|
+
===Docgenerator::Packages::Letter::Setkomavar#to_creole
|
|
171
|
+
content
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
* No output routine defined for creole - use a dummy
|
|
175
|
+
=end
|
|
176
|
+
class Setkomavar << Docgenerator::Element
|
|
177
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
|
178
|
+
end #class Setkomavar
|
|
179
|
+
end #module Letter
|
|
180
|
+
end #module Packages
|
|
181
|
+
end #module Docgenerator
|
|
182
|
+
module Docgenerator
|
|
183
|
+
module Packages
|
|
184
|
+
module Letter
|
|
185
|
+
=begin rdoc
|
|
186
|
+
=Docgenerator::Packages::Letter::Letter
|
|
187
|
+
|
|
188
|
+
==Attributes
|
|
189
|
+
Attribute required? HTML LaTeX ~keyval ConTeXt Text Wiki Creole Values
|
|
190
|
+
====================================================================================================
|
|
191
|
+
address : X - X - - - - -
|
|
192
|
+
date : - - X - - - - -
|
|
193
|
+
opening : X - X - - - - -
|
|
194
|
+
letter_option : - - X - - - - -
|
|
195
|
+
backaddress : - - X - - - - -
|
|
196
|
+
customer : - - X - - - - -
|
|
197
|
+
fromaddress : - - X - - - - -
|
|
198
|
+
frombank : - - X - - - - -
|
|
199
|
+
fromemail : - - X - - - - -
|
|
200
|
+
fromfax : - - X - - - - -
|
|
201
|
+
fromlogo : - - X - - - - -
|
|
202
|
+
fromname : - - X - - - - -
|
|
203
|
+
fromphone : - - X - - - - -
|
|
204
|
+
fromurl : - - X - - - - -
|
|
205
|
+
invoice : - - X - - - - -
|
|
206
|
+
myref : - - X - - - - -
|
|
207
|
+
subject : - - X - - - - -
|
|
208
|
+
title : - - X - - - - -
|
|
209
|
+
signature : - - X - - - - -
|
|
210
|
+
closing : X - X - - - - -
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
Docgenerator::Packages::Letter::Letter can contain content.
|
|
214
|
+
|
|
215
|
+
==Generate an object
|
|
216
|
+
test = Docgenerator::Packages::Letter::Letter.new( {
|
|
217
|
+
:address => <<value>>, % required
|
|
218
|
+
#:date => <<value>>, % optional, values: [String]
|
|
219
|
+
:opening => <<value>>, % required
|
|
220
|
+
#:letter_option => <<value>>, % optional
|
|
221
|
+
#:backaddress => <<value>>, % optional
|
|
222
|
+
#:customer => <<value>>, % optional
|
|
223
|
+
#:fromaddress => <<value>>, % optional
|
|
224
|
+
#:frombank => <<value>>, % optional
|
|
225
|
+
#:fromemail => <<value>>, % optional
|
|
226
|
+
#:fromfax => <<value>>, % optional
|
|
227
|
+
#:fromlogo => <<value>>, % optional
|
|
228
|
+
#:fromname => <<value>>, % optional
|
|
229
|
+
#:fromphone => <<value>>, % optional
|
|
230
|
+
#:fromurl => <<value>>, % optional
|
|
231
|
+
#:invoice => <<value>>, % optional
|
|
232
|
+
#:myref => <<value>>, % optional
|
|
233
|
+
#:subject => <<value>>, % optional
|
|
234
|
+
#:title => <<value>>, % optional
|
|
235
|
+
#:signature => <<value>>, % optional
|
|
236
|
+
:closing => <<value>>, % required
|
|
237
|
+
}, 'content')
|
|
238
|
+
|
|
239
|
+
Alternative generation
|
|
240
|
+
test = element(:letter, {...Attributes...}, 'content' )
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
==Outputs
|
|
244
|
+
===Docgenerator::Packages::Letter::Letter#to_latex
|
|
245
|
+
|
|
246
|
+
\begin{letter}{Value for address}
|
|
247
|
+
\date{}
|
|
248
|
+
\opening{Value for opening}
|
|
249
|
+
content
|
|
250
|
+
\closing{Value for closing}
|
|
251
|
+
\end{letter}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Packages::Letter::Letter#.to_latex
|
|
255
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
256
|
+
|
|
257
|
+
Default:
|
|
258
|
+
<<START>>
|
|
259
|
+
\begin{letter}{Value for address}
|
|
260
|
+
\date{}
|
|
261
|
+
\opening{Value for opening}
|
|
262
|
+
content
|
|
263
|
+
\closing{Value for closing}
|
|
264
|
+
\end{letter}
|
|
265
|
+
<<END>>
|
|
266
|
+
|
|
267
|
+
* Result after Docgenerator::Packages::Letter::Letter#cr:
|
|
268
|
+
|
|
269
|
+
<<START>>
|
|
270
|
+
\begin{letter}{Value for address}
|
|
271
|
+
\date{}
|
|
272
|
+
\opening{Value for opening}
|
|
273
|
+
content
|
|
274
|
+
\closing{Value for closing}
|
|
275
|
+
\end{letter}
|
|
276
|
+
|
|
277
|
+
<<END>>
|
|
278
|
+
|
|
279
|
+
* Result after Docgenerator::Packages::Letter::Letter#cR:
|
|
280
|
+
|
|
281
|
+
<<START>>
|
|
282
|
+
\begin{letter}{Value for address}
|
|
283
|
+
\date{}
|
|
284
|
+
\opening{Value for opening}
|
|
285
|
+
content
|
|
286
|
+
\closing{Value for closing}
|
|
287
|
+
\end{letter}
|
|
288
|
+
|
|
289
|
+
<<END>>
|
|
290
|
+
|
|
291
|
+
* Result after Docgenerator::Packages::Letter::Letter#Cr:
|
|
292
|
+
|
|
293
|
+
<<START>>
|
|
294
|
+
|
|
295
|
+
\begin{letter}{Value for address}
|
|
296
|
+
\date{}
|
|
297
|
+
\opening{Value for opening}
|
|
298
|
+
content
|
|
299
|
+
\closing{Value for closing}
|
|
300
|
+
\end{letter}
|
|
301
|
+
|
|
302
|
+
<<END>>
|
|
303
|
+
|
|
304
|
+
* Result after Docgenerator::Packages::Letter::Letter#CR:
|
|
305
|
+
|
|
306
|
+
<<START>>
|
|
307
|
+
|
|
308
|
+
\begin{letter}{Value for address}
|
|
309
|
+
\date{}
|
|
310
|
+
\opening{Value for opening}
|
|
311
|
+
content
|
|
312
|
+
\closing{Value for closing}
|
|
313
|
+
\end{letter}
|
|
314
|
+
|
|
315
|
+
<<END>>
|
|
316
|
+
|
|
317
|
+
===Docgenerator::Packages::Letter::Letter#to_html
|
|
318
|
+
|
|
319
|
+
<div >
|
|
320
|
+
<p >An<br />Value for address<br /></p><p >Value for opening</p>content<p >Value for closing</p>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Packages::Letter::Letter#.to_html
|
|
325
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
|
326
|
+
|
|
327
|
+
Default:
|
|
328
|
+
<<START>>
|
|
329
|
+
<div >
|
|
330
|
+
<p >An<br />Value for address<br /></p><p >Value for opening</p>content<p >Value for closing</p>
|
|
331
|
+
</div>
|
|
332
|
+
<<END>>
|
|
333
|
+
|
|
334
|
+
* Docgenerator::Packages::Letter::Letter#cr has no effect, same result as default
|
|
335
|
+
* Docgenerator::Packages::Letter::Letter#cR has no effect, same result as default
|
|
336
|
+
* Docgenerator::Packages::Letter::Letter#Cr has no effect, same result as default
|
|
337
|
+
* Docgenerator::Packages::Letter::Letter#CR has no effect, same result as default
|
|
338
|
+
===Docgenerator::Packages::Letter::Letter#to_context
|
|
339
|
+
\letter{content}
|
|
340
|
+
|
|
341
|
+
* No output routine defined for context - use a dummy
|
|
342
|
+
===Docgenerator::Packages::Letter::Letter#to_text
|
|
343
|
+
content
|
|
344
|
+
|
|
345
|
+
* No output routine defined for text - use a dummy
|
|
346
|
+
===Docgenerator::Packages::Letter::Letter#to_wiki
|
|
347
|
+
content
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
* No output routine defined for wiki - use a dummy
|
|
351
|
+
===Docgenerator::Packages::Letter::Letter#to_creole
|
|
352
|
+
content
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
* No output routine defined for creole - use a dummy
|
|
356
|
+
=end
|
|
357
|
+
class Letter << Docgenerator::Environments::Environment
|
|
358
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
|
359
|
+
end #class Letter
|
|
360
|
+
end #module Letter
|
|
361
|
+
end #module Packages
|
|
362
|
+
end #module Docgenerator
|