docgenerator 2.1.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docgenerator.rb +18 -18
- data/lib/docgenerator/characters.rb +1 -0
- data/lib/docgenerator/css.rb +5 -0
- data/lib/docgenerator/document.rb +7 -2
- data/lib/docgenerator/element.rb +2 -2
- data/lib/docgenerator/elements.rb +69 -2
- data/lib/docgenerator/index.rb +1 -1
- data/lib/docgenerator/packages/listings.rb +94 -94
- data/lib/docgenerator/packages/multicol.rb +1 -1
- data/lib/docgenerator/packages/pdfpages.rb +2 -1
- data/lib/docgenerator/packages/rubycode4doc.rb +173 -172
- data/lib/docgenerator/packages/struktex.rb +395 -379
- data/lib/docgenerator/packages/todonotes.rb +2 -2
- data/lib/docgenerator/packages/url.rb +4 -0
- data/lib/docgenerator/sections.rb +24 -2
- data/lib/docgenerator/tabular.rb +59 -14
- data/lib/docgenerator/templates/docgenerator_template.rb +1 -0
- data/lib/docgenerator/templates/docgenerator_template.yaml +30 -1
- data/lib/docgenerator/version.rb +13 -1
- data/meta_test_and_doc/build__meta.rb +3 -10
- data/meta_test_and_doc/build_doc.rb +4 -2
- data/meta_test_and_doc/build_test.rb +21 -17
- data/meta_test_and_doc/manpages/images.rb +152 -0
- data/unittest/expected/test_document_toc_article.latex +6 -6
- data/unittest/expected_struktex/test_struktex_krug.creole +5 -5
- data/unittest/expected_struktex/test_struktex_krug.wiki +5 -5
- data/unittest/expected_struktex/test_struktex_statement.creole +4 -4
- data/unittest/expected_struktex/test_struktex_statement.wiki +4 -4
- data/unittest/expected_templates/test_report_utf8.tex +34 -0
- data/unittest/expected_templates/test_standalone.tex +2 -1
- data/unittest/unittest_docgenerator.rb +37 -30
- data/unittest/unittest_docgenerator_characters.rb +113 -60
- data/unittest/unittest_docgenerator_runtex.rb +16 -12
- data/unittest/unittest_packages_multicol.rb +4 -9
- data/unittest/unittest_packages_struktex.rb +66 -90
- data/unittest/unittest_rubycode4doc.rb +38 -241
- data/unittest/unittest_templates.rb +4 -8
- metadata +23 -560
- data/examples/creole_example.rb +0 -81
- data/examples/creole_example_footnote.rb +0 -67
- data/examples/creole_example_new_plugin.rb +0 -51
- data/examples/creole_example_placeholder.rb +0 -77
- data/examples/creole_example_rail.rb +0 -154
- data/examples/creole_example_rubycode.rb +0 -144
- data/examples/creole_example_struktex.rb +0 -169
- data/examples/creole_example_tabular.rb +0 -97
- data/examples/wiki2docgenerator_example.rb +0 -299
- data/lib/creole/creole2doc.rb +0 -954
- data/lib/creole/creole_characters.rb +0 -120
- data/lib/creole/creole_inclusion_and_plugins.rb +0 -96
- data/lib/creole/creole_inclusions.rb +0 -154
- data/lib/creole/creole_placeholder.rb +0 -171
- data/lib/creole/creole_plugins.rb +0 -230
- data/lib/creole/creole_tabular.rb +0 -401
- data/lib/creole/plugins/rail.rb +0 -181
- data/lib/creole/plugins/rubycode4creole.rb +0 -136
- data/lib/creole/plugins/struktex.rb +0 -59
- data/lib/creole/plugins/todonotes.rb +0 -77
- data/lib/wiki2doc/plugins/rubycode4wiki.rb +0 -53
- data/lib/wiki2doc/plugins/struktex.rb +0 -12
- data/lib/wiki2doc/wiki2docgenerator.rb +0 -1276
- data/lib/wiki2doc/wikimedia_document.rb +0 -24
- data/meta_test_and_doc/manpages/packages.rb +0 -13
- data/unittest/Red_Flower.jpg +0 -0
- data/unittest/creole1.0test.txt +0 -128
- data/unittest/creole_testtext.creole +0 -11
- data/unittest/expected_creole/test_creole.html +0 -3
- data/unittest/expected_creole/test_creole_characters_all.creole +0 -28
- data/unittest/expected_creole/test_creole_characters_all.html +0 -18
- data/unittest/expected_creole/test_creole_characters_all.latex +0 -36
- data/unittest/expected_creole/test_creole_characters_special.html +0 -10
- data/unittest/expected_creole/test_creole_characters_special.latex +0 -18
- data/unittest/expected_creole/test_creole_comment.context +0 -11
- data/unittest/expected_creole/test_creole_comment.creole +0 -12
- data/unittest/expected_creole/test_creole_comment.html +0 -9
- data/unittest/expected_creole/test_creole_comment.latex +0 -11
- data/unittest/expected_creole/test_creole_countdown.html +0 -3
- data/unittest/expected_creole/test_creole_countdown.latex +0 -4
- data/unittest/expected_creole/test_creole_creole1.0test.html +0 -182
- data/unittest/expected_creole/test_creole_creole1.0test.latex +0 -253
- data/unittest/expected_creole/test_creole_creole1.0test.text +0 -160
- data/unittest/expected_creole/test_creole_footnotes.html +0 -9
- data/unittest/expected_creole/test_creole_footnotes.latex +0 -14
- data/unittest/expected_creole/test_creole_footnotes_groupid.html +0 -15
- data/unittest/expected_creole/test_creole_footnotes_label.html +0 -9
- data/unittest/expected_creole/test_creole_headings.html +0 -17
- data/unittest/expected_creole/test_creole_headings.latex +0 -19
- data/unittest/expected_creole/test_creole_headings.text +0 -48
- data/unittest/expected_creole/test_creole_headings.wiki +0 -37
- data/unittest/expected_creole/test_creole_hr.html +0 -7
- data/unittest/expected_creole/test_creole_hr.latex +0 -9
- data/unittest/expected_creole/test_creole_hr.text +0 -4
- data/unittest/expected_creole/test_creole_ignore.html +0 -3
- data/unittest/expected_creole/test_creole_ignore.latex +0 -4
- data/unittest/expected_creole/test_creole_ignore.text +0 -2
- data/unittest/expected_creole/test_creole_inline.html +0 -3
- data/unittest/expected_creole/test_creole_inline.latex +0 -4
- data/unittest/expected_creole/test_creole_inline.text +0 -2
- data/unittest/expected_creole/test_creole_inline_apostroph.html +0 -6
- data/unittest/expected_creole/test_creole_inline_apostroph.latex +0 -8
- data/unittest/expected_creole/test_creole_inline_apostroph.text +0 -4
- data/unittest/expected_creole/test_creole_inline_ruby.html +0 -12
- data/unittest/expected_creole/test_creole_inline_ruby.latex +0 -20
- data/unittest/expected_creole/test_creole_inline_ruby_raw.html +0 -6
- data/unittest/expected_creole/test_creole_inline_ruby_raw.latex +0 -8
- data/unittest/expected_creole/test_creole_input.normsource +0 -25
- data/unittest/expected_creole/test_creole_input.normsource_1.8 +0 -23
- data/unittest/expected_creole/test_creole_input_file_simple.html +0 -15
- data/unittest/expected_creole/test_creole_input_file_simple_readlines.html +0 -15
- data/unittest/expected_creole/test_creole_label.html +0 -12
- data/unittest/expected_creole/test_creole_label.latex +0 -15
- data/unittest/expected_creole/test_creole_line_break.html +0 -6
- data/unittest/expected_creole/test_creole_line_break.latex +0 -8
- data/unittest/expected_creole/test_creole_links_explicit_internal.html +0 -6
- data/unittest/expected_creole/test_creole_links_explicit_internal.text +0 -4
- data/unittest/expected_creole/test_creole_links_explicit_with_em.html +0 -3
- data/unittest/expected_creole/test_creole_links_explicit_with_em.latex +0 -4
- data/unittest/expected_creole/test_creole_links_explicit_with_em.text +0 -2
- data/unittest/expected_creole/test_creole_links_external.html +0 -6
- data/unittest/expected_creole/test_creole_links_external.latex +0 -8
- data/unittest/expected_creole/test_creole_links_external.text +0 -4
- data/unittest/expected_creole/test_creole_links_external_implicit.html +0 -9
- data/unittest/expected_creole/test_creole_links_external_implicit.latex +0 -12
- data/unittest/expected_creole/test_creole_links_external_implicit.text +0 -6
- data/unittest/expected_creole/test_creole_links_file.html +0 -6
- data/unittest/expected_creole/test_creole_links_file.latex +0 -8
- data/unittest/expected_creole/test_creole_links_file.text +0 -4
- data/unittest/expected_creole/test_creole_links_implicit_end.creole +0 -4
- data/unittest/expected_creole/test_creole_links_implicit_end.html +0 -3
- data/unittest/expected_creole/test_creole_links_implicit_end.latex +0 -4
- data/unittest/expected_creole/test_creole_list_ol.html +0 -12
- data/unittest/expected_creole/test_creole_list_ol.latex +0 -22
- data/unittest/expected_creole/test_creole_list_ol_after_ul.html +0 -12
- data/unittest/expected_creole/test_creole_list_ol_after_ul.latex +0 -20
- data/unittest/expected_creole/test_creole_list_ol_after_ul.text +0 -6
- data/unittest/expected_creole/test_creole_list_ol_ul.html +0 -15
- data/unittest/expected_creole/test_creole_list_ol_ul.latex +0 -26
- data/unittest/expected_creole/test_creole_list_ul.html +0 -22
- data/unittest/expected_creole/test_creole_list_ul.latex +0 -40
- data/unittest/expected_creole/test_creole_list_ul.normsource +0 -89
- data/unittest/expected_creole/test_creole_list_ul.normsource_1.8 +0 -83
- data/unittest/expected_creole/test_creole_list_ul_too_much.html +0 -24
- data/unittest/expected_creole/test_creole_list_ul_too_much.latex +0 -44
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.html +0 -6
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.latex +0 -12
- data/unittest/expected_creole/test_creole_mix_titles_list.html +0 -10
- data/unittest/expected_creole/test_creole_mix_titles_list.latex +0 -18
- data/unittest/expected_creole/test_creole_mix_titles_list.text +0 -12
- data/unittest/expected_creole/test_creole_newline.html +0 -9
- data/unittest/expected_creole/test_creole_newline.latex +0 -11
- data/unittest/expected_creole/test_creole_newline.text +0 -7
- data/unittest/expected_creole/test_creole_paragraphs.html +0 -6
- data/unittest/expected_creole/test_creole_paragraphs.latex +0 -8
- data/unittest/expected_creole/test_creole_paragraphs.normsource +0 -29
- data/unittest/expected_creole/test_creole_paragraphs.normsource_1.8 +0 -27
- data/unittest/expected_creole/test_creole_paragraphs.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs.wiki +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap.html +0 -5
- data/unittest/expected_creole/test_creole_paragraphs_wrap.latex +0 -6
- data/unittest/expected_creole/test_creole_paragraphs_wrap.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap.wiki +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.html +0 -9
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.latex +0 -11
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.text +0 -7
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.wiki +0 -7
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.html +0 -5
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.latex +0 -6
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.wiki +0 -4
- data/unittest/expected_creole/test_creole_picture_link.html +0 -6
- data/unittest/expected_creole/test_creole_pictures.html +0 -10
- data/unittest/expected_creole/test_creole_pictures.latex +0 -13
- data/unittest/expected_creole/test_creole_pictures_css.html +0 -6
- data/unittest/expected_creole/test_creole_pictures_css.latex +0 -8
- data/unittest/expected_creole/test_creole_pictures_imgclass.html +0 -6
- data/unittest/expected_creole/test_creole_pictures_imgclass.latex +0 -8
- data/unittest/expected_creole/test_creole_pictures_longdesc.html +0 -3
- data/unittest/expected_creole/test_creole_pictures_width.html +0 -3
- data/unittest/expected_creole/test_creole_pictures_width.latex +0 -4
- data/unittest/expected_creole/test_creole_placeholders_html.html +0 -7
- data/unittest/expected_creole/test_creole_placeholders_html.latex +0 -8
- data/unittest/expected_creole/test_creole_placeholders_html.text +0 -4
- data/unittest/expected_creole/test_creole_placeholders_latex.html +0 -6
- data/unittest/expected_creole/test_creole_placeholders_latex.latex +0 -9
- data/unittest/expected_creole/test_creole_placeholders_latex.text +0 -4
- data/unittest/expected_creole/test_creole_short_html.html +0 -3
- data/unittest/expected_creole/test_creole_short_html.latex +0 -4
- data/unittest/expected_creole/test_creole_short_html.text +0 -2
- data/unittest/expected_creole/test_creole_shy.creole +0 -6
- data/unittest/expected_creole/test_creole_shy.html +0 -6
- data/unittest/expected_creole/test_creole_shy.latex +0 -8
- data/unittest/expected_creole/test_creole_shy.text +0 -4
- data/unittest/expected_creole/test_creole_tabular.creole +0 -22
- data/unittest/expected_creole/test_creole_tabular.html +0 -20
- data/unittest/expected_creole/test_creole_tabular.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_creole.creole +0 -19
- data/unittest/expected_creole/test_creole_tabular_creole.html +0 -18
- data/unittest/expected_creole/test_creole_tabular_creole.latex +0 -19
- data/unittest/expected_creole/test_creole_tabular_css.creole +0 -24
- data/unittest/expected_creole/test_creole_tabular_css.html +0 -20
- data/unittest/expected_creole/test_creole_tabular_css.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_multicols.creole +0 -16
- data/unittest/expected_creole/test_creole_tabular_multicols.html +0 -14
- data/unittest/expected_creole/test_creole_tabular_multicols.latex +0 -16
- data/unittest/expected_creole/test_creole_tabular_row_parameters.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.creole +0 -21
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.html +0 -20
- data/unittest/expected_creole/test_creole_toc.html +0 -13
- data/unittest/expected_creole/test_creole_toc.latex +0 -22
- data/unittest/expected_creole/test_creole_toc.text +0 -4
- data/unittest/expected_creole/test_creole_toc_level.html +0 -7
- data/unittest/expected_creole/test_creole_toc_level.latex +0 -10
- data/unittest/expected_creole/test_creole_toc_level.text +0 -3
- data/unittest/expected_creole/test_creole_toc_level_text.html +0 -8
- data/unittest/expected_creole/test_creole_toc_level_text.latex +0 -9
- data/unittest/expected_creole/test_creole_toc_text.html +0 -5
- data/unittest/expected_creole/test_creole_toc_text.latex +0 -5
- data/unittest/expected_creole/test_creole_ul_multiple_line.html +0 -7
- data/unittest/expected_creole/test_creole_ul_multiple_line.latex +0 -14
- data/unittest/expected_creole/test_creole_ul_with_blank.html +0 -11
- data/unittest/expected_creole/test_creole_ul_with_blank.latex +0 -20
- data/unittest/expected_creole/test_creole_ul_with_bold.creole +0 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.html +0 -11
- data/unittest/expected_creole/test_creole_ul_with_bold.latex +0 -18
- data/unittest/expected_creole/test_creole_ul_with_bold.text +0 -7
- data/unittest/expected_creole/test_creole_verbatim.html +0 -25
- data/unittest/expected_creole/test_creole_verbatim.latex +0 -33
- data/unittest/expected_creole/test_creole_verbatim.text +0 -17
- data/unittest/expected_creole/test_creole_verbatim_inline.html +0 -6
- data/unittest/expected_creole/test_creole_verbatim_inline.latex +0 -8
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.html +0 -6
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.latex +0 -8
- data/unittest/expected_creole_rail/test_rail_creole_object.tex +0 -33
- data/unittest/expected_creole_rail/test_rail_creole_placeholder.tex +0 -40
- data/unittest/expected_rubycode4doc/creole_complete.html +0 -26
- data/unittest/expected_rubycode4doc/creole_complete.tex +0 -40
- data/unittest/expected_rubycode4doc/creole_in_tab.html +0 -4
- data/unittest/expected_rubycode4doc/creole_in_tab.tex +0 -6
- data/unittest/expected_rubycode4doc/creole_inline_ruby.html +0 -7
- data/unittest/expected_rubycode4doc/creole_output.html +0 -2
- data/unittest/expected_rubycode4doc/creole_output.tex +0 -4
- data/unittest/expected_rubycode4doc/creole_rubycode.html +0 -1
- data/unittest/expected_rubycode4doc/creole_rubycode.tex +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.html +0 -1
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.tex +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.html +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.tex +0 -5
- data/unittest/expected_rubycode4doc/wiki_1.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_2.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_3.html +0 -9
- data/unittest/expected_rubycode4doc/wiki_immediate_1.html +0 -5
- data/unittest/expected_rubycode4doc/wiki_immediate_2.html +0 -5
- data/unittest/expected_rubycode4doc/wiki_immediate_3.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_immediate_full.html +0 -21
- data/unittest/expected_wikimedia/test_wiki.html +0 -6
- data/unittest/expected_wikimedia/test_wiki.latex +0 -12
- data/unittest/expected_wikimedia/test_wiki.text +0 -14
- data/unittest/expected_wikimedia/test_wiki.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_description.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_description.latex +0 -11
- data/unittest/expected_wikimedia/test_wiki_description.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_description.wiki +0 -6
- data/unittest/expected_wikimedia/test_wiki_footnote.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_footnote.latex +0 -17
- data/unittest/expected_wikimedia/test_wiki_footnote.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_footnote.wiki +0 -10
- data/unittest/expected_wikimedia/test_wiki_footnote_2.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_footnote_groupid.html +0 -21
- data/unittest/expected_wikimedia/test_wiki_html_code.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_html_code.latex +0 -10
- data/unittest/expected_wikimedia/test_wiki_html_code.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_html_code.wiki +0 -6
- data/unittest/expected_wikimedia/test_wiki_inline.html +0 -6
- data/unittest/expected_wikimedia/test_wiki_inline.latex +0 -12
- data/unittest/expected_wikimedia/test_wiki_inline.text +0 -8
- data/unittest/expected_wikimedia/test_wiki_inline.wiki +0 -8
- data/unittest/expected_wikimedia/test_wiki_label.html +0 -6
- data/unittest/expected_wikimedia/test_wiki_link.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_link.latex +0 -17
- data/unittest/expected_wikimedia/test_wiki_link.wiki +0 -11
- data/unittest/expected_wikimedia/test_wiki_list_ol.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ol.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.html +0 -16
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.latex +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.text +0 -8
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.wiki +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ul.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ul.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ul.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ul.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.html +0 -39
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.latex +0 -51
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.text +0 -11
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.wiki +0 -15
- data/unittest/expected_wikimedia/test_wiki_picture.html +0 -55
- data/unittest/expected_wikimedia/test_wiki_picture.latex +0 -76
- data/unittest/expected_wikimedia/test_wiki_picture_thumb.html +0 -5
- data/unittest/expected_wikimedia/test_wiki_tab1.html +0 -30
- data/unittest/expected_wikimedia/test_wiki_tab1.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_tab1.wiki +0 -29
- data/unittest/expected_wikimedia/test_wiki_textformatting.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_textformatting.latex +0 -16
- data/unittest/expected_wikimedia/test_wiki_textformatting.text +0 -11
- data/unittest/expected_wikimedia/test_wiki_textformatting.wiki +0 -9
- data/unittest/expected_wikimedia/test_wiki_toc.html +0 -9
- data/unittest/expected_wikimedia/test_wiki_toc.latex +0 -18
- data/unittest/expected_wikimedia/test_wiki_toc.text +0 -21
- data/unittest/expected_wikimedia/test_wiki_toc.wiki +0 -18
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.html +0 -18
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.latex +0 -19
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.wiki +0 -7
- data/unittest/unittest_creole.rb +0 -1361
- data/unittest/unittest_creole_placeholders.rb +0 -150
- data/unittest/unittest_creole_plugin_rail.rb +0 -147
- data/unittest/unittest_creole_tabular.rb +0 -207
- data/unittest/unittest_wikimedia.rb +0 -479
@@ -0,0 +1,152 @@
|
|
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::Elements::Img
|
12
|
+
=end
|
13
|
+
|
14
|
+
#
|
15
|
+
module Docgenerator
|
16
|
+
module Elements
|
17
|
+
=begin rdoc
|
18
|
+
=Docgenerator::Elements::Img
|
19
|
+
|
20
|
+
==Attributes
|
21
|
+
Attribute required? HTML LaTeX ~keyval ConTeXt Text Wiki Creole Values
|
22
|
+
====================================================================================================
|
23
|
+
src : X X X - - - - -
|
24
|
+
alt : - X - - - - - -
|
25
|
+
id : - X - - - - - -
|
26
|
+
class : - X - - - - - -
|
27
|
+
style : - X - - - - - -
|
28
|
+
title : - X - - - - - -
|
29
|
+
align : - X - - - - - -
|
30
|
+
width : - - - X - - - -
|
31
|
+
height : - - - X - - - -
|
32
|
+
border : - X - - - - - -
|
33
|
+
longdesc : - X - - - - - -
|
34
|
+
usemap : - X - - - - - -
|
35
|
+
name : - X - - - - - -
|
36
|
+
angle : - - - X - - - -
|
37
|
+
texoption : - - X - - - - -
|
38
|
+
|
39
|
+
|
40
|
+
Docgenerator::Elements::Img allows no content.
|
41
|
+
|
42
|
+
==Generate an object
|
43
|
+
test = Docgenerator::Elements::Img.new( {
|
44
|
+
:src => <<value>>, % required, values: [String]
|
45
|
+
#:alt => <<value>>, % optional, values: [String]
|
46
|
+
#:id => <<value>>, % optional
|
47
|
+
#:class => <<value>>, % optional
|
48
|
+
#:style => <<value>>, % optional, values: [Docgenerator::CSS, String]
|
49
|
+
#:title => <<value>>, % optional
|
50
|
+
#:align => <<value>>, % optional, values: ["left", "center", "right", "justify", "char"]
|
51
|
+
#:width => <<value>>, % optional, values: [Integer, String]
|
52
|
+
#:height => <<value>>, % optional, values: [Integer, String]
|
53
|
+
#:border => <<value>>, % optional, values: [Integer]
|
54
|
+
#:longdesc => <<value>>, % optional, values: [String]
|
55
|
+
#:usemap => <<value>>, % optional, values: [String]
|
56
|
+
#:name => <<value>>, % optional, values: [String]
|
57
|
+
#:angle => <<value>>, % optional, values: [Integer]
|
58
|
+
#:texoption => <<value>>, % optional, values: [String]
|
59
|
+
})
|
60
|
+
|
61
|
+
Alternative generation
|
62
|
+
test = element(:img, {...Attributes...})
|
63
|
+
test = element(:includegraphics, {...Attributes...})
|
64
|
+
|
65
|
+
|
66
|
+
==Outputs
|
67
|
+
===Docgenerator::Elements::Img#to_latex
|
68
|
+
\includegraphics[,]{Value for src}
|
69
|
+
|
70
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Elements::Img#.to_latex
|
71
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
72
|
+
|
73
|
+
Default:
|
74
|
+
<<START>>\includegraphics[,]{Value for src}<<END>>
|
75
|
+
|
76
|
+
* Result after Docgenerator::Elements::Img#cr:
|
77
|
+
|
78
|
+
<<START>>\includegraphics[,]{Value for src}
|
79
|
+
<<END>>
|
80
|
+
|
81
|
+
* Result after Docgenerator::Elements::Img#cR:
|
82
|
+
|
83
|
+
<<START>>\includegraphics[,]{Value for src}
|
84
|
+
<<END>>
|
85
|
+
|
86
|
+
* Result after Docgenerator::Elements::Img#Cr:
|
87
|
+
|
88
|
+
<<START>>
|
89
|
+
\includegraphics[,]{Value for src}
|
90
|
+
<<END>>
|
91
|
+
|
92
|
+
* Result after Docgenerator::Elements::Img#CR:
|
93
|
+
|
94
|
+
<<START>>
|
95
|
+
\includegraphics[,]{Value for src}
|
96
|
+
<<END>>
|
97
|
+
|
98
|
+
===Docgenerator::Elements::Img#to_html
|
99
|
+
<img src = "Value for src" />
|
100
|
+
|
101
|
+
====:cr, :cR, :Cr, :CR for Docgenerator::Elements::Img#.to_html
|
102
|
+
<<START>> and <<END>> are not part of the output, but needed to illustrate the line breaks.
|
103
|
+
|
104
|
+
Default:
|
105
|
+
<<START>><img src = "Value for src" /><<END>>
|
106
|
+
|
107
|
+
* Result after Docgenerator::Elements::Img#cr:
|
108
|
+
|
109
|
+
<<START>><img src = "Value for src" />
|
110
|
+
<<END>>
|
111
|
+
|
112
|
+
* Result after Docgenerator::Elements::Img#cR:
|
113
|
+
|
114
|
+
<<START>><img src = "Value for src" />
|
115
|
+
<<END>>
|
116
|
+
|
117
|
+
* Result after Docgenerator::Elements::Img#Cr:
|
118
|
+
|
119
|
+
<<START>>
|
120
|
+
<img src = "Value for src" />
|
121
|
+
<<END>>
|
122
|
+
|
123
|
+
* Result after Docgenerator::Elements::Img#CR:
|
124
|
+
|
125
|
+
<<START>>
|
126
|
+
<img src = "Value for src" />
|
127
|
+
<<END>>
|
128
|
+
|
129
|
+
===Docgenerator::Elements::Img#to_context
|
130
|
+
\includegraphics{}
|
131
|
+
|
132
|
+
* No output routine defined for context - use a dummy
|
133
|
+
===Docgenerator::Elements::Img#to_text
|
134
|
+
|
135
|
+
|
136
|
+
* No output routine defined for text - use a dummy
|
137
|
+
===Docgenerator::Elements::Img#to_wiki
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
* No output routine defined for wiki - use a dummy
|
142
|
+
===Docgenerator::Elements::Img#to_creole
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
* No output routine defined for creole - use a dummy
|
147
|
+
=end
|
148
|
+
class Img << Docgenerator::Element
|
149
|
+
#This coding is empty - this is the manpage definition, not the implementation
|
150
|
+
end #class Img
|
151
|
+
end #module Elements
|
152
|
+
end #module Docgenerator
|
@@ -37,28 +37,28 @@
|
|
37
37
|
|
38
38
|
|
39
39
|
\endgroup
|
40
|
-
\section{Abschnitt 1}\hypertarget{toc1}{}
|
40
|
+
\section{Abschnitt 1}\hypertarget{toc1}{}\label{toc1}
|
41
41
|
|
42
42
|
|
43
43
|
Text zu Abschnitt 1
|
44
44
|
|
45
|
-
\subsection{Abschnitt 1.1}\hypertarget{toc2}{}
|
45
|
+
\subsection{Abschnitt 1.1}\hypertarget{toc2}{}\label{toc2}
|
46
46
|
|
47
47
|
|
48
48
|
Text zu Abschnitt 1.1
|
49
49
|
|
50
|
-
\subsection{Abschnitt 1.2}\hypertarget{toc3}{}
|
51
|
-
\section{Abschnitt 2}\hypertarget{toc4}{}
|
50
|
+
\subsection{Abschnitt 1.2}\hypertarget{toc3}{}\label{toc3}
|
51
|
+
\section{Abschnitt 2}\hypertarget{toc4}{}\label{toc4}
|
52
52
|
|
53
53
|
|
54
54
|
Text zu Abschnitt 2
|
55
55
|
|
56
|
-
\subsection{Abschnitt 2.1}\hypertarget{toc5}{}
|
56
|
+
\subsection{Abschnitt 2.1}\hypertarget{toc5}{}\label{toc5}
|
57
57
|
|
58
58
|
|
59
59
|
Text zu Abschnitt 2.1
|
60
60
|
|
61
|
-
\section{Abschnitt 3}\hypertarget{sect3}{}
|
61
|
+
\section{Abschnitt 3}\hypertarget{sect3}{}\label{sect3}
|
62
62
|
|
63
63
|
\end{document}
|
64
64
|
% ----------------------------------------------------------------
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<<<structogramm|Krug;120;45
|
2
|
-
WHILE
|
2
|
+
WHILE Krug nicht zerbrochen
|
3
3
|
Krug geht zum Brunnen
|
4
4
|
ENDWHILE
|
5
5
|
Qualitaetspruefung
|
6
|
-
|
7
|
-
|
8
|
-
IF
|
6
|
+
-> Krug Testgut
|
7
|
+
<- res_1 Pruefergebnis
|
8
|
+
IF Krug zerbrochen
|
9
9
|
THEN
|
10
10
|
Schade
|
11
11
|
ELSE
|
12
|
-
|
12
|
+
Stabiler Krug
|
13
13
|
ENDIF
|
14
14
|
|
15
15
|
>>>
|
@@ -1,15 +1,15 @@
|
|
1
1
|
>>>structogramm{Krug;120;45}
|
2
|
-
WHILE
|
2
|
+
WHILE Krug nicht zerbrochen
|
3
3
|
Krug geht zum Brunnen
|
4
4
|
ENDWHILE
|
5
5
|
Qualitaetspruefung
|
6
|
-
|
7
|
-
|
8
|
-
IF
|
6
|
+
-> Krug Testgut
|
7
|
+
<- res_1 Pruefergebnis
|
8
|
+
IF Krug zerbrochen
|
9
9
|
THEN
|
10
10
|
Schade
|
11
11
|
ELSE
|
12
|
-
|
12
|
+
Stabiler Krug
|
13
13
|
ENDIF
|
14
14
|
|
15
15
|
<<<
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<<prefix>>
|
2
|
+
\documentclass[ngerman]{scrreprt}
|
3
|
+
\usepackage{babel}
|
4
|
+
%Encoding-package depends on TeX-engine
|
5
|
+
\usepackage{ifpdf,ifxetex,ifluatex}
|
6
|
+
\ifxetex
|
7
|
+
\usepackage{fontspec} %Without, umlauts are missing
|
8
|
+
\fi
|
9
|
+
\ifluatex
|
10
|
+
\usepackage[utf8]{luainputenc} %Or in first line: % !Mode:: "TeX:UTF-8".
|
11
|
+
\else
|
12
|
+
\ifpdf\relax
|
13
|
+
\usepackage[utf8]{inputenc}
|
14
|
+
\fi
|
15
|
+
\fi
|
16
|
+
\usepackage{hyperref}
|
17
|
+
% ----------------------------------------------------------------
|
18
|
+
|
19
|
+
\title{Test of Template report\_utf8}
|
20
|
+
\hypersetup{pdftitle={Test of Template report\_utf8}}
|
21
|
+
|
22
|
+
% ----------------------------------------------------------------
|
23
|
+
\begin{document}
|
24
|
+
|
25
|
+
|
26
|
+
Some text
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
Umlaute: öäü ÖÄÜ ß
|
31
|
+
|
32
|
+
|
33
|
+
\end{document}
|
34
|
+
% ----------------------------------------------------------------
|
@@ -13,7 +13,8 @@
|
|
13
13
|
\usepackage[utf8]{inputenc}
|
14
14
|
\fi
|
15
15
|
\fi
|
16
|
-
|
16
|
+
\usepackage{luatex85} %%Needed since TeXLive 2016
|
17
|
+
\usepackage{hyperref}
|
17
18
|
% ----------------------------------------------------------------
|
18
19
|
|
19
20
|
\title{Test of Template standalone}
|
@@ -1,11 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
gem '
|
3
|
-
|
4
|
-
|
5
|
-
#~ $:.unshift('C:/usr/Script/more_unit_test/lib')
|
6
|
-
require 'more_unit_test/assert_equal_filecontent.rb'
|
7
|
-
require 'test/unit'
|
8
|
-
|
2
|
+
gem 'minitest-filecontent'
|
3
|
+
require 'minitest/filecontent.rb'
|
9
4
|
|
10
5
|
if $0 == __FILE__
|
11
6
|
$:.unshift("../lib")
|
@@ -52,7 +47,7 @@ $log_array.outputters = $log_array_outputter = ArrayOutputter.new('xx')
|
|
52
47
|
|
53
48
|
|
54
49
|
|
55
|
-
class Test_elements < Test
|
50
|
+
class Test_elements < MiniTest::Test
|
56
51
|
def setup()
|
57
52
|
#Avoid warnings about missing logger in to_doc
|
58
53
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -89,17 +84,17 @@ class Test_elements < Test::Unit::TestCase
|
|
89
84
|
def test_is_a()
|
90
85
|
|
91
86
|
newline = element(:br)
|
92
|
-
|
93
|
-
|
94
|
-
|
87
|
+
assert( newline.is_a?(Element) )
|
88
|
+
assert( newline.is_a?(:br) )
|
89
|
+
assert( newline.is_a?(:newline) )
|
95
90
|
|
96
|
-
|
97
|
-
|
98
|
-
|
91
|
+
refute( newline.is_a?(:zeilenumbruch) )
|
92
|
+
refute( newline.is_a?(Symbol) )
|
93
|
+
refute( newline.is_a?(Array) )
|
99
94
|
|
100
95
|
#Standard behaviour: TypeError: class or module required
|
101
|
-
|
102
|
-
|
96
|
+
refute( newline.to_html(@opt).is_a?(:newline) )
|
97
|
+
refute( '<br />'.is_a?(:newline) )
|
103
98
|
|
104
99
|
end
|
105
100
|
|
@@ -193,7 +188,7 @@ class Test_elements < Test::Unit::TestCase
|
|
193
188
|
|
194
189
|
end #Test_elements
|
195
190
|
|
196
|
-
class Test_lists < Test
|
191
|
+
class Test_lists < MiniTest::Test
|
197
192
|
def setup()
|
198
193
|
#Avoid warnings about missing logger in to_doc
|
199
194
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -238,7 +233,7 @@ class Test_lists < Test::Unit::TestCase
|
|
238
233
|
end
|
239
234
|
end #Test_lists
|
240
235
|
|
241
|
-
class Test_footnotes < Test
|
236
|
+
class Test_footnotes < MiniTest::Test
|
242
237
|
def setup()
|
243
238
|
#Avoid warnings about missing logger in to_doc
|
244
239
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -294,7 +289,7 @@ class Test_footnotes < Test::Unit::TestCase
|
|
294
289
|
end #test_footnote
|
295
290
|
end #Test_footnotes
|
296
291
|
|
297
|
-
class Test_tabular < Test
|
292
|
+
class Test_tabular < MiniTest::Test
|
298
293
|
def setup()
|
299
294
|
#Avoid warnings about missing logger in to_doc
|
300
295
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -366,10 +361,18 @@ class Test_tabular < Test::Unit::TestCase
|
|
366
361
|
#~ assert_equal_filecontent( "expected/test_tabular_doc.wiki", text.to_doc(:wiki,@opt))
|
367
362
|
#~ assert_equal_filecontent( "expected/test_tabular_doc.text", text.to_doc(:text, @opt))
|
368
363
|
end
|
364
|
+
def test_tabular_cell
|
365
|
+
cell = element(:column,{},'content')
|
366
|
+
assert_equal('content', cell.to_latex)
|
367
|
+
|
368
|
+
#Test to avoid problems, when the cell starts with a [] (After a \\ it would interpreted as a skip
|
369
|
+
cell = element(:column,{},'[x] content')
|
370
|
+
assert_equal('\relax [x] content', cell.to_latex)
|
371
|
+
end
|
369
372
|
end
|
370
373
|
|
371
374
|
|
372
|
-
class Test_Verbatim < Test
|
375
|
+
class Test_Verbatim < MiniTest::Test
|
373
376
|
def setup()
|
374
377
|
#Avoid warnings about missing logger in to_doc
|
375
378
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -404,7 +407,7 @@ verb
|
|
404
407
|
end
|
405
408
|
end #Test_Verbatim
|
406
409
|
|
407
|
-
class Test_CSS < Test
|
410
|
+
class Test_CSS < MiniTest::Test
|
408
411
|
def setup()
|
409
412
|
#Avoid warnings about missing logger in to_doc
|
410
413
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -474,7 +477,7 @@ end
|
|
474
477
|
#Remark:
|
475
478
|
#- The <<prefix>> is replaced by Document.save.
|
476
479
|
#- With <<prefix>> we get always differences (timestamp)
|
477
|
-
class Test_document < Test
|
480
|
+
class Test_document < MiniTest::Test
|
478
481
|
def setup()
|
479
482
|
#Avoid warnings about missing logger in to_doc
|
480
483
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -490,7 +493,7 @@ class Test_document < Test::Unit::TestCase
|
|
490
493
|
doc.body << element(:p,{}, 'This is some content' )
|
491
494
|
#~ doc.save('test_document.html')
|
492
495
|
assert_instance_of( Log4r::Logger, doc.log)
|
493
|
-
|
496
|
+
refute_same( DOCGENERATOR_LOGGER, doc.log)
|
494
497
|
|
495
498
|
$log.warn('test_document: to_context')
|
496
499
|
$log.warn('test_document: to_creole')
|
@@ -529,7 +532,7 @@ class Test_document < Test::Unit::TestCase
|
|
529
532
|
doc.body << element(:p,{}, 'This is some content' )
|
530
533
|
#~ doc.save('test_document.html')
|
531
534
|
assert_instance_of( Log4r::Logger, doc.log)
|
532
|
-
|
535
|
+
refute_same( DOCGENERATOR_LOGGER, doc.log)
|
533
536
|
{
|
534
537
|
:html => :html,
|
535
538
|
:article => :latex,
|
@@ -551,8 +554,8 @@ class Test_document < Test::Unit::TestCase
|
|
551
554
|
}))
|
552
555
|
}
|
553
556
|
end
|
554
|
-
end #Test_document < Test
|
555
|
-
class Test_document_toc < Test
|
557
|
+
end #Test_document < MiniTest::Test
|
558
|
+
class Test_document_toc < MiniTest::Test
|
556
559
|
def setup()
|
557
560
|
#Avoid warnings about missing logger in to_doc
|
558
561
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -700,7 +703,7 @@ class Test_document_toc < Test::Unit::TestCase
|
|
700
703
|
|
701
704
|
end
|
702
705
|
|
703
|
-
class Test_usepackage < Test
|
706
|
+
class Test_usepackage < MiniTest::Test
|
704
707
|
def setup()
|
705
708
|
#Avoid warnings about missing logger in to_doc
|
706
709
|
@opt = { :log => DOCGENERATOR_DEFAULT_LOGGER } #unless defined? @opt
|
@@ -713,8 +716,8 @@ class Test_usepackage < Test::Unit::TestCase
|
|
713
716
|
end
|
714
717
|
#Known packages 'require' new ruby packages.
|
715
718
|
def test_usepackage_pdfpages()
|
716
|
-
|
717
|
-
DOCGENERATOR_LOGGER.level = Log4r::FATAL
|
719
|
+
loglevel = Docgenerator::DOCGENERATOR_LOGGER.level #remember loglevel
|
720
|
+
DOCGENERATOR_LOGGER.level = Log4r::FATAL #temporary loglevel change
|
718
721
|
old_required = $".dup #Get old require list
|
719
722
|
usepackage_element = element(:usepackage,{},'pdfpages')
|
720
723
|
#Now a new require should be done
|
@@ -725,11 +728,15 @@ class Test_usepackage < Test::Unit::TestCase
|
|
725
728
|
|
726
729
|
assert_equal( '\usepackage{pdfpages}', usepackage_element.to_latex(@opt))
|
727
730
|
assert_equal( '', usepackage_element.to_html(@opt))
|
731
|
+
|
732
|
+
Docgenerator::DOCGENERATOR_LOGGER.level = loglevel #revert loglevel again
|
733
|
+
#Without the level reset, the default level amy not be tested
|
734
|
+
#(check it with ARGV << '--seed' << '4910')
|
728
735
|
|
729
736
|
end #test_usepackage_pdfpages()
|
730
737
|
end
|
731
738
|
|
732
|
-
#~ class Test_Element < Test
|
739
|
+
#~ class Test_Element < MiniTest::Test
|
733
740
|
#~ def test_add_output()
|
734
741
|
#~ cmd = <<'cmd'
|
735
742
|
#~ def to_html(options = {})
|