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 @@
|
|
1
|
+
<div >Block 1<span style = "background-color: blue;color: red" >Zwischenblock</span>Ende Block 1</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<ul ><li >Listpunkt 1</li></ul>
|
@@ -0,0 +1 @@
|
|
1
|
+
- Listpunkt 1
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
Abschnitt 1
|
3
|
+
------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
Text zu Abschnitt 1
|
7
|
+
|
8
|
+
Abschnitt 1.1
|
9
|
+
------------------------------
|
10
|
+
|
11
|
+
|
12
|
+
Text zu Abschnitt 1.1
|
13
|
+
|
14
|
+
Abschnitt 2
|
15
|
+
------------------------------
|
16
|
+
|
17
|
+
|
18
|
+
Text zu Abschnitt 2
|
19
|
+
|
20
|
+
Abschnitt 2.1
|
21
|
+
------------------------------
|
22
|
+
|
23
|
+
|
24
|
+
Text zu Abschnitt 2.1
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
<table >
|
3
|
+
<tr style = "border-bottom-width: thick;border-bottom-style: solid" ><td colspan = "4" >Titel over all columns</td></tr>
|
4
|
+
<tr style = "border-bottom-width: thick;border-bottom-style: solid" ><td colspan = "4" >SubTitel over all columns</td></tr>
|
5
|
+
<tr ><td >1A</td><td >1B</td><td >1C</td><td >1D</td></tr>
|
6
|
+
<tr ><td >2A</td><td >2B</td><td >2C</td><td >2D</td></tr>
|
7
|
+
<tr ><td >3A</td><td >3B</td><td >3C</td><td >3D</td></tr>
|
8
|
+
<tr ><td >4A</td><td >4B</td><td >4C</td><td >4D</td></tr>
|
9
|
+
<tr ><td >5A</td><td >5B</td><td >5C</td><td >5D</td></tr>
|
10
|
+
</table>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
\begin{tabular}{cccc}
|
3
|
+
\multicolumn{4}{c}{Titel over all columns}\\[1ex]\hline
|
4
|
+
\multicolumn{4}{c}{SubTitel over all columns}\\[1ex]\hline
|
5
|
+
1A & 1B & 1C & 1D\\
|
6
|
+
2A & 2B & 2C & 2D\\
|
7
|
+
3A & 3B & 3C & 3D\\
|
8
|
+
4A & 4B & 4C & 4D\\
|
9
|
+
5A & 5B & 5C & 5D\\
|
10
|
+
\end{tabular}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{|
|
2
|
+
|-
|
3
|
+
|columns=4|pos=c||Titel over all columns
|
4
|
+
|-
|
5
|
+
|columns=4|pos=c||SubTitel over all columns
|
6
|
+
|-
|
7
|
+
|1A
|
8
|
+
|1B
|
9
|
+
|1C
|
10
|
+
|1D
|
11
|
+
|-
|
12
|
+
|2A
|
13
|
+
|2B
|
14
|
+
|2C
|
15
|
+
|2D
|
16
|
+
|-
|
17
|
+
|3A
|
18
|
+
|3B
|
19
|
+
|3C
|
20
|
+
|3D
|
21
|
+
|-
|
22
|
+
|4A
|
23
|
+
|4B
|
24
|
+
|4C
|
25
|
+
|4D
|
26
|
+
|-
|
27
|
+
|5A
|
28
|
+
|5B
|
29
|
+
|5C
|
30
|
+
|5D
|
31
|
+
|}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<<prefix>>
|
2
|
+
\documentclass[ngerman]{scrartcl}
|
3
|
+
\usepackage{babel}
|
4
|
+
\usepackage[ansinew]{inputenc}
|
5
|
+
\usepackage{hyperref}
|
6
|
+
% ----------------------------------------------------------------
|
7
|
+
|
8
|
+
% ----------------------------------------------------------------
|
9
|
+
\begin{document}
|
10
|
+
|
11
|
+
\begin{tabular}{cccc}
|
12
|
+
\multicolumn{4}{c}{Titel over all columns}\\[1ex]\hline
|
13
|
+
\multicolumn{4}{c}{SubTitel over all columns}\\[1ex]\hline
|
14
|
+
1A & 1B & 1C & 1D\\
|
15
|
+
2A & 2B & 2C & 2D\\
|
16
|
+
3A & 3B & 3C & 3D\\
|
17
|
+
4A & 4B & 4C & 4D\\
|
18
|
+
5A & 5B & 5C & 5D\\
|
19
|
+
\end{tabular}
|
20
|
+
|
21
|
+
\end{document}
|
22
|
+
% ----------------------------------------------------------------
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<p >
|
2
|
+
<iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1<1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "height: 240px;width: 120px" >
|
3
|
+
Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die eingebettete Seite über den folgenden Verweis aufrufen: <a href = "http://www.amazon.de/exec/obidos/ASIN/B000AFEJAM/lickertnet-21" >Amazon</a>
|
4
|
+
</iframe>
|
5
|
+
</p>
|
6
|
+
<p >
|
7
|
+
<iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1<1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "height: 240px;float: right;width: 120px" >
|
8
|
+
Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die eingebettete Seite über den folgenden Verweis aufrufen: <a href = "http://www.amazon.de/exec/obidos/ASIN/B000AFEJAM/lickertnet-21" >Amazon</a>
|
9
|
+
</iframe>
|
10
|
+
</p>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<p >There are normal footnotes<sup><a href="#foot1">1</a></sup>. But:
|
2
|
+
Here is a footnote in group 1<sup><a href="#footgroup1-1">1</a></sup>, and
|
3
|
+
a second footnote<sup><a href="#footgroup1-2">2</a></sup>.
|
4
|
+
In another group<sup><a href="#footgroup2-1">1</a></sup>, we can define further remarks.
|
5
|
+
</p>
|
6
|
+
<hr />
|
7
|
+
<p >Normal Footnotes:
|
8
|
+
<p ><sup ><a name="foot1">1</a></sup>Like this one<br />
|
9
|
+
</p>
|
10
|
+
</p>
|
11
|
+
<hr />
|
12
|
+
<p >Footnote group 1:
|
13
|
+
<p ><sup ><a name="footgroup1-1">1</a></sup><br />
|
14
|
+
<sup ><a name="footgroup1-2">2</a></sup><br />
|
15
|
+
</p>
|
16
|
+
</p>
|
17
|
+
<hr />
|
18
|
+
<p >Footnote group 2:
|
19
|
+
<p ><sup ><a name="footgroup2-1">1</a></sup><br />
|
20
|
+
</p>
|
21
|
+
</p>
|