docgenerator 0.1.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/docgenerator_example.rb +76 -160
- data/examples/docgenerator_example_footnote.rb +98 -0
- data/examples/docgenerator_example_list.rb +62 -0
- data/examples/docgenerator_example_restrictions.rb +59 -0
- data/examples/docgenerator_example_tabular.rb +68 -0
- data/examples/docgenerator_example_tripfalls.rb +57 -0
- data/examples/wiki2docgenerator_example.rb +270 -0
- data/lib/docgenerator.rb +159 -0
- data/{docgenerator_attribute.rb → lib/docgenerator_attribute.rb} +32 -7
- data/{docgenerator_characters.rb → lib/docgenerator_characters.rb} +15 -0
- data/{docgenerator_css.rb → lib/docgenerator_css.rb} +6 -1
- data/{docgenerator_document.rb → lib/docgenerator_document.rb} +92 -93
- data/{docgenerator_element.rb → lib/docgenerator_element.rb} +125 -51
- data/{docgenerator_elements.rb → lib/docgenerator_elements.rb} +40 -56
- data/{docgenerator_environments.rb → lib/docgenerator_environments.rb} +16 -10
- data/{docgenerator_footnote.rb → lib/docgenerator_footnote.rb} +44 -22
- data/{docgenerator_lists.rb → lib/docgenerator_lists.rb} +44 -39
- data/{docgenerator_sections.rb → lib/docgenerator_sections.rb} +2 -2
- data/{docgenerator_tabular.rb → lib/docgenerator_tabular.rb} +71 -39
- data/{packages → lib/packages}/docgenerator_attachfile.rb +0 -0
- data/{packages → lib/packages}/docgenerator_caption.rb +0 -0
- data/{packages → lib/packages}/docgenerator_hyperref.rb +0 -0
- data/{packages → lib/packages}/docgenerator_listings.rb +1 -2
- data/{packages → lib/packages}/docgenerator_pdfpages.rb +0 -0
- data/{packages → lib/packages}/docgenerator_scrlettr2.rb +2 -2
- data/{packages → lib/packages}/docgenerator_scrpage2.rb +0 -0
- data/{packages → lib/packages}/docgenerator_url.rb +0 -0
- data/lib/templates/docgenerator_template.rb +176 -0
- data/lib/templates/docgenerator_template.yaml +105 -0
- data/lib/wiki2doc/wiki2docgenerator.rb +1161 -0
- data/self_docgenerator.rb +161 -0
- data/unittest/expected/test_beamer_note.html +1 -0
- data/unittest/expected/test_beamer_note.latex +1 -0
- data/unittest/expected/test_beamer_note.text +1 -0
- data/unittest/expected/test_beamer_note.wiki +1 -0
- data/unittest/expected/test_block.html +1 -0
- data/unittest/expected/test_block.latex +1 -0
- data/unittest/expected/test_block.text +1 -0
- data/unittest/expected/test_block.wiki +2 -0
- data/unittest/expected/test_css.css +1 -0
- data/unittest/expected/test_css2.css +1 -0
- data/unittest/expected/test_description.html +1 -0
- data/unittest/expected/test_description.latex +3 -0
- data/unittest/expected/test_description.text +3 -0
- data/unittest/expected/test_description.wiki +3 -0
- data/unittest/expected/test_document_article.latex +23 -0
- data/unittest/expected/test_document_html.html +14 -0
- data/unittest/expected/test_document_replacement_article.latex +23 -0
- data/unittest/expected/test_document_replacement_html.html +14 -0
- data/unittest/expected/test_document_replacement_text.text +5 -0
- data/unittest/expected/test_document_replacement_wiki.wiki +5 -0
- data/unittest/expected/test_document_text.text +5 -0
- data/unittest/expected/test_document_wiki.wiki +5 -0
- data/unittest/expected/test_enumerate.html +1 -0
- data/unittest/expected/test_enumerate.latex +3 -0
- data/unittest/expected/test_enumerate.text +1 -0
- data/unittest/expected/test_enumerate.wiki +2 -0
- data/unittest/expected/test_footnote.html +5 -0
- data/unittest/expected/test_footnote.latex +11 -0
- data/unittest/expected/test_footnote.text +13 -0
- data/unittest/expected/test_footnote.wiki +11 -0
- data/unittest/expected/test_footnote_group.html +8 -0
- data/unittest/expected/test_footnote_group.latex +17 -0
- data/unittest/expected/test_footnote_group.wiki +17 -0
- data/unittest/expected/test_href.html +2 -0
- data/unittest/expected/test_href.latex +8 -0
- data/unittest/expected/test_href.text +4 -0
- data/unittest/expected/test_html_css.html +1 -0
- data/unittest/expected/test_itemize.html +1 -0
- data/unittest/expected/test_itemize.latex +3 -0
- data/unittest/expected/test_itemize.text +1 -0
- data/unittest/expected/test_itemize.wiki +2 -0
- data/unittest/expected/test_section.html +8 -0
- data/unittest/expected/test_section.latex +20 -0
- data/unittest/expected/test_section.text +24 -0
- data/unittest/expected/test_section.wiki +20 -0
- data/unittest/expected/test_tabular.html +10 -0
- data/unittest/expected/test_tabular.latex +10 -0
- data/unittest/expected/test_tabular.wiki +31 -0
- data/unittest/expected/test_tabular_doc.latex +22 -0
- data/unittest/expected/test_wiki.html +6 -0
- data/unittest/expected/test_wiki.latex +12 -0
- data/unittest/expected/test_wiki.text +14 -0
- data/unittest/expected/test_wiki.wiki +12 -0
- data/unittest/expected/test_wiki_amazon.html +10 -0
- data/unittest/expected/test_wiki_description.html +7 -0
- data/unittest/expected/test_wiki_description.latex +11 -0
- data/unittest/expected/test_wiki_description.text +6 -0
- data/unittest/expected/test_wiki_description.wiki +6 -0
- data/unittest/expected/test_wiki_footnote.html +8 -0
- data/unittest/expected/test_wiki_footnote.latex +15 -0
- data/unittest/expected/test_wiki_footnote.text +12 -0
- data/unittest/expected/test_wiki_footnote.wiki +12 -0
- data/unittest/expected/test_wiki_footnote_groupid.html +21 -0
- data/unittest/expected/test_wiki_html_code.html +7 -0
- data/unittest/expected/test_wiki_html_code.latex +10 -0
- data/unittest/expected/test_wiki_html_code.text +6 -0
- data/unittest/expected/test_wiki_html_code.wiki +6 -0
- data/unittest/expected/test_wiki_inline.html +6 -0
- data/unittest/expected/test_wiki_inline.latex +12 -0
- data/unittest/expected/test_wiki_inline.text +8 -0
- data/unittest/expected/test_wiki_inline.wiki +8 -0
- data/unittest/expected/test_wiki_label.html +6 -0
- data/unittest/expected/test_wiki_link.html +8 -0
- data/unittest/expected/test_wiki_link.latex +14 -0
- data/unittest/expected/test_wiki_link.log +3 -0
- data/unittest/expected/test_wiki_link.wiki +6 -0
- data/unittest/expected/test_wiki_list_ol.html +24 -0
- data/unittest/expected/test_wiki_list_ol.latex +30 -0
- data/unittest/expected/test_wiki_list_ol.text +10 -0
- data/unittest/expected/test_wiki_list_ol.wiki +12 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.html +16 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.latex +24 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.text +8 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.wiki +10 -0
- data/unittest/expected/test_wiki_list_ol_ul.html +24 -0
- data/unittest/expected/test_wiki_list_ol_ul.latex +30 -0
- data/unittest/expected/test_wiki_list_ol_ul.text +10 -0
- data/unittest/expected/test_wiki_list_ol_ul.wiki +12 -0
- data/unittest/expected/test_wiki_list_ul.html +24 -0
- data/unittest/expected/test_wiki_list_ul.latex +30 -0
- data/unittest/expected/test_wiki_list_ul.text +10 -0
- data/unittest/expected/test_wiki_list_ul.wiki +12 -0
- data/unittest/expected/test_wiki_list_ul_too_much.html +39 -0
- data/unittest/expected/test_wiki_list_ul_too_much.latex +51 -0
- data/unittest/expected/test_wiki_list_ul_too_much.text +11 -0
- data/unittest/expected/test_wiki_list_ul_too_much.wiki +15 -0
- data/unittest/expected/test_wiki_picture.html +55 -0
- data/unittest/expected/test_wiki_picture.latex +76 -0
- data/unittest/expected/test_wiki_picture_thumb.html +5 -0
- data/unittest/expected/test_wiki_tab1.html +30 -0
- data/unittest/expected/test_wiki_tab1.latex +30 -0
- data/unittest/expected/test_wiki_tab1.wiki +29 -0
- data/unittest/expected/test_wiki_textformatting.html +7 -0
- data/unittest/expected/test_wiki_textformatting.latex +16 -0
- data/unittest/expected/test_wiki_textformatting.text +11 -0
- data/unittest/expected/test_wiki_textformatting.wiki +9 -0
- data/unittest/expected/test_wiki_toc.html +9 -0
- data/unittest/expected/test_wiki_toc.latex +18 -0
- data/unittest/expected/test_wiki_toc.text +21 -0
- data/unittest/expected/test_wiki_toc.wiki +18 -0
- data/unittest/expected/test_wiki_ul_multiple_line.html +18 -0
- data/unittest/expected/test_wiki_ul_multiple_line.latex +19 -0
- data/unittest/expected/test_wiki_ul_multiple_line.text +6 -0
- data/unittest/expected/test_wiki_ul_multiple_line.wiki +7 -0
- data/unittest/test_docgenerator.rb +85 -0
- data/unittest/unittest_docgenerator.rb +454 -0
- data/unittest/unittest_wiki2doc.rb +451 -0
- metadata +155 -31
- data/docgenerator.rb +0 -137
- data/docgenerator_template.rb +0 -103
- data/packages/docgenerator_beamer.rb +0 -250
@@ -0,0 +1,55 @@
|
|
1
|
+
<p ><span >
|
2
|
+
<img src = "test.jpg" />
|
3
|
+
</span>
|
4
|
+
|
5
|
+
</p>
|
6
|
+
<p ><span >
|
7
|
+
<img src = "test.jpg" alt = "description" />
|
8
|
+
</span>
|
9
|
+
|
10
|
+
<span >
|
11
|
+
vorher<img src = "test.jpg" alt = "description" /><br clear = "all" />
|
12
|
+
</span>
|
13
|
+
|
14
|
+
<span >
|
15
|
+
<img src = "test.jpg" alt = "description" /><br clear = "all" />
|
16
|
+
nachher
|
17
|
+
</span>
|
18
|
+
|
19
|
+
</p>
|
20
|
+
<p ><span >
|
21
|
+
<a href = "http://ruby.lickert.net" ><img src = "test.jpg" /></a>
|
22
|
+
</span>
|
23
|
+
|
24
|
+
<span >
|
25
|
+
<a href = "http://ruby.lickert.net" ><img src = "test.jpg" alt = "test" /></a>
|
26
|
+
</span>
|
27
|
+
|
28
|
+
</p>
|
29
|
+
<p ><span style = "float: right" >
|
30
|
+
<img src = "test.jpg" />
|
31
|
+
</span>
|
32
|
+
|
33
|
+
<span style = "float: left" >
|
34
|
+
<img src = "test.jpg" />
|
35
|
+
</span>
|
36
|
+
|
37
|
+
</p>
|
38
|
+
<p ><span >
|
39
|
+
<img src = "test.jpg" style = "width: 123px" />
|
40
|
+
</span>
|
41
|
+
|
42
|
+
</p>
|
43
|
+
<p ><span >
|
44
|
+
<img src = "test.jpg" class = "pictureclass" />
|
45
|
+
</span>
|
46
|
+
|
47
|
+
<span >
|
48
|
+
<img src = "test.jpg" class = "imgclass" />
|
49
|
+
</span>
|
50
|
+
|
51
|
+
<span class = "imgclass" >
|
52
|
+
<img src = "test.jpg" />
|
53
|
+
</span>
|
54
|
+
|
55
|
+
</p>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
\bgroup
|
4
|
+
\includegraphics[]{test.jpg}
|
5
|
+
\egroup
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
\bgroup
|
12
|
+
\includegraphics[]{test.jpg}
|
13
|
+
\egroup
|
14
|
+
|
15
|
+
\bgroup
|
16
|
+
vorher\includegraphics[]{test.jpg}\newline
|
17
|
+
|
18
|
+
\egroup
|
19
|
+
|
20
|
+
\bgroup
|
21
|
+
\includegraphics[]{test.jpg}\newline
|
22
|
+
nachher
|
23
|
+
\egroup
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
\bgroup
|
30
|
+
\href{http://ruby.lickert.net}{\includegraphics[]{test.jpg}}
|
31
|
+
|
32
|
+
\egroup
|
33
|
+
|
34
|
+
\bgroup
|
35
|
+
\href{http://ruby.lickert.net}{\includegraphics[]{test.jpg}}
|
36
|
+
|
37
|
+
\egroup
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
\bgroup
|
44
|
+
\includegraphics[]{test.jpg}
|
45
|
+
\egroup
|
46
|
+
|
47
|
+
\bgroup
|
48
|
+
\includegraphics[]{test.jpg}
|
49
|
+
\egroup
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
\bgroup
|
56
|
+
\includegraphics[width={123px}]{test.jpg}
|
57
|
+
\egroup
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
\bgroup
|
64
|
+
\includegraphics[]{test.jpg}
|
65
|
+
\egroup
|
66
|
+
|
67
|
+
\bgroup
|
68
|
+
\includegraphics[]{test.jpg}
|
69
|
+
\egroup
|
70
|
+
|
71
|
+
\bgroup
|
72
|
+
\includegraphics[]{test.jpg}
|
73
|
+
\egroup
|
74
|
+
|
75
|
+
|
76
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
<table >
|
3
|
+
<tr ><td colspan = "4" >Titel</td>
|
4
|
+
</tr>
|
5
|
+
<tr ><td >1A</td>
|
6
|
+
<td >1B</td>
|
7
|
+
<td >1C</td>
|
8
|
+
<td >1D</td>
|
9
|
+
</tr>
|
10
|
+
<tr ><td >2A</td>
|
11
|
+
<td >2B</td>
|
12
|
+
<td >2C</td>
|
13
|
+
<td >2D</td>
|
14
|
+
</tr>
|
15
|
+
<tr ><td >3A</td>
|
16
|
+
<td >3B</td>
|
17
|
+
<td >3C</td>
|
18
|
+
<td >3D</td>
|
19
|
+
</tr>
|
20
|
+
<tr ><td >4A</td>
|
21
|
+
<td >4B</td>
|
22
|
+
<td >4C</td>
|
23
|
+
<td >4D</td>
|
24
|
+
</tr>
|
25
|
+
<tr ><td >5A</td>
|
26
|
+
<td >5B</td>
|
27
|
+
<td >5C</td>
|
28
|
+
<td >5D</td>
|
29
|
+
</tr>
|
30
|
+
</table>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
\begin{tabular}{cccc}
|
3
|
+
\multicolumn{4}{c}{Titel}
|
4
|
+
\\
|
5
|
+
1A
|
6
|
+
& 1B
|
7
|
+
& 1C
|
8
|
+
& 1D
|
9
|
+
\\
|
10
|
+
2A
|
11
|
+
& 2B
|
12
|
+
& 2C
|
13
|
+
& 2D
|
14
|
+
\\
|
15
|
+
3A
|
16
|
+
& 3B
|
17
|
+
& 3C
|
18
|
+
& 3D
|
19
|
+
\\
|
20
|
+
4A
|
21
|
+
& 4B
|
22
|
+
& 4C
|
23
|
+
& 4D
|
24
|
+
\\
|
25
|
+
5A
|
26
|
+
& 5B
|
27
|
+
& 5C
|
28
|
+
& 5D
|
29
|
+
\\
|
30
|
+
\end{tabular}
|