docgenerator 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/examples/creole_example.rb +0 -1
  3. data/examples/creole_example_new_plugin.rb +51 -0
  4. data/examples/creole_example_tabular.rb +3 -1
  5. data/examples/wiki2docgenerator_example.rb +2 -2
  6. data/lib/creole/creole2doc.rb +697 -680
  7. data/lib/creole/creole_characters.rb +90 -26
  8. data/lib/creole/creole_inclusion_and_plugins.rb +25 -43
  9. data/lib/creole/creole_inclusions.rb +87 -75
  10. data/lib/creole/creole_placeholder.rb +87 -89
  11. data/lib/creole/creole_plugins.rb +149 -117
  12. data/lib/creole/creole_tabular.rb +247 -141
  13. data/lib/creole/plugins/todonotes.rb +48 -48
  14. data/lib/docgenerator/characters.rb +106 -8
  15. data/lib/docgenerator/compatibility_v1.rb +7 -1
  16. data/lib/docgenerator/document.rb +34 -19
  17. data/lib/docgenerator/element.rb +1 -0
  18. data/lib/docgenerator/element_meta.rb +1 -1
  19. data/lib/docgenerator/elements.rb +594 -535
  20. data/lib/docgenerator/environments.rb +131 -99
  21. data/lib/docgenerator/index.rb +110 -0
  22. data/lib/docgenerator/lists.rb +2 -1
  23. data/lib/docgenerator/packages/caption.rb +32 -34
  24. data/lib/docgenerator/packages/hyperref.rb +1 -0
  25. data/lib/docgenerator/packages/multicol.rb +3 -2
  26. data/lib/docgenerator/packages/pdfpages.rb +71 -20
  27. data/lib/docgenerator/packages/scrpage2.rb +99 -142
  28. data/lib/docgenerator/packages/url.rb +75 -81
  29. data/lib/docgenerator/sections.rb +98 -98
  30. data/lib/docgenerator/standard.rb +8 -1
  31. data/lib/docgenerator/tabular.rb +44 -25
  32. data/lib/docgenerator/templates/docgenerator_template.yaml +28 -0
  33. data/lib/docgenerator/version.rb +146 -0
  34. data/lib/docgenerator.rb +20 -15
  35. data/meta_test_and_doc/build_doc.rb +39 -10
  36. data/meta_test_and_doc/build_test.rb +34 -12
  37. data/meta_test_and_doc/manpages/characters.rb +452 -20
  38. data/meta_test_and_doc/manpages/elementlist.rb +304 -0
  39. data/meta_test_and_doc/manpages/elements.rb +305 -42
  40. data/meta_test_and_doc/manpages/others.rb +403 -0
  41. data/meta_test_and_doc/manpages/pdfpages.rb +117 -18
  42. data/meta_test_and_doc/manpages/readme.rdoc +3 -1
  43. data/meta_test_and_doc/manpages/scrpage2.rb +0 -80
  44. data/meta_test_and_doc/manpages/tables.rb +6 -6
  45. data/readme.rdoc +11 -120
  46. data/unittest/expected/test_comment.html +1 -0
  47. data/unittest/expected/test_comment.latex +5 -0
  48. data/unittest/expected/test_comment_complex.html +3 -0
  49. data/unittest/expected/test_comment_complex.latex +15 -0
  50. data/unittest/expected_creole/test_creole_characters_all.html +6 -5
  51. data/unittest/expected_creole/test_creole_characters_all.latex +10 -8
  52. data/unittest/expected_creole/test_creole_creole1.0test.latex +5 -5
  53. data/unittest/expected_creole/test_creole_input.normsource +11 -9
  54. data/unittest/expected_creole/test_creole_list_ul.normsource +57 -51
  55. data/unittest/expected_creole/test_creole_list_ulul_without_ul.html +6 -0
  56. data/unittest/expected_creole/test_creole_list_ulul_without_ul.latex +12 -0
  57. data/unittest/expected_creole/test_creole_paragraphs.normsource +12 -10
  58. data/unittest/expected_creole/test_creole_pictures.latex +2 -2
  59. data/unittest/expected_creole/test_creole_pictures_css.latex +2 -2
  60. data/unittest/expected_creole/test_creole_pictures_imgclass.latex +2 -2
  61. data/unittest/expected_creole/test_creole_pictures_width.latex +1 -1
  62. data/unittest/expected_creole/test_creole_tabular.latex +3 -3
  63. data/unittest/expected_creole/test_creole_tabular_creole.latex +2 -2
  64. data/unittest/expected_creole/test_creole_tabular_css.latex +3 -3
  65. data/unittest/expected_creole/test_creole_tabular_row_parameters.latex +22 -0
  66. data/unittest/expected_templates/test_standalone.tex +34 -0
  67. data/unittest/expected_wikimedia/test_wiki_picture.latex +12 -12
  68. data/unittest/unittest_creole.rb +22 -3
  69. data/unittest/unittest_creole_tabular.rb +34 -1
  70. data/unittest/unittest_docgenerator.rb +46 -3
  71. data/unittest/unittest_docgenerator_characters.rb +527 -82
  72. data/unittest/unittest_templates.rb +1 -1
  73. metadata +149 -108
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c7aa1a103c221470b9175ad34855d17cc11bb1bc
4
+ data.tar.gz: 36cc3d2e385eac113dcbaf2c62b61db3b2d98473
5
+ SHA512:
6
+ metadata.gz: f8f822678971a30cac152cb54680e5e0cf467ee6a324630cfc0177852a05d2e9124271bdb1143d7fd0801a649d320c3335950aad03b4b31cbd8e198297fc72bc
7
+ data.tar.gz: 8a4b9a35f508dc2d9734c864b98478b575491dd3393ebacb81696de4cb7c50780c4cb815b8800cf637f172cabba433df6082f4c0456824d9d7e10436bd836085
@@ -59,7 +59,6 @@ Some more text in a new paragraph.
59
59
 
60
60
  //italic// and **bold** is possible.
61
61
 
62
-
63
62
  =Lists
64
63
  ==Unnumbered list
65
64
  * item
@@ -0,0 +1,51 @@
1
+ #encoding: cp1252
2
+ =begin rdoc
3
+ Example how to use self defined placeholders with creole/creole2doc.
4
+ =end
5
+
6
+ $:.unshift( '../lib' )
7
+
8
+ require 'creole/creole2doc.rb'
9
+ begin
10
+ require 'rake4latex_pdflatex'
11
+ rescue LoadError
12
+ puts "rake4latex not installed -> no translation of LaTeX-file"
13
+ end
14
+
15
+ class PDFComment_html < Docgenerator::Creole::Creole_inclusion_and_plugin
16
+ set_plugin_key 'pdfcomment'
17
+ #~ Docgenerator::Creole::Plugins::Collection['pdfcomment'] = self
18
+ #~ def initialize( inclusionname, description, options, wiki )
19
+ #~ super
20
+ #~ end
21
+
22
+ #Return content as pdfcomment
23
+ def to_doc( target, options = {})
24
+ target == :latex ? "\\pdfcomment{%s}" % @description : ''
25
+ end
26
+ end
27
+
28
+ #
29
+ # Move all results to another folder
30
+ #
31
+ Dir.chdir('results')
32
+
33
+ #Build document with usepackage{listings}...
34
+ doc = Docgenerator::Document.new( :title => 'Creole with placeholder' )
35
+ doc.head << element(:usepackage,{},'pdfcomment').cr #-> \pdfcomment
36
+ doc.body << creole = Docgenerator::Creole::Creole.new(:content => DATA )
37
+
38
+ # ###############################
39
+ # Save the files
40
+ # ###############
41
+ #~ doc.save( __FILE__.sub(/\.rb/, ".html"))
42
+ doc.save( __FILE__.sub(/\.rb/, ".tex"),
43
+ :runtex => [:statistic, :clean]
44
+ )
45
+
46
+ __END__
47
+ This is text with a PDF-comment<<pdfcomment|This is a comment>>
48
+
49
+ <<<pdfcomment|This is a comment
50
+ longtext
51
+ >>>
@@ -64,7 +64,7 @@ __END__
64
64
  |=1
65
65
  |=2
66
66
  |=3
67
- |-
67
+ |-|hline
68
68
  |eins
69
69
  |zwei
70
70
  |drei
@@ -93,3 +93,5 @@ After || you may define special data
93
93
  |||css =
94
94
  |
95
95
  >>>
96
+
97
+
@@ -146,8 +146,8 @@ text in neuem Absatz
146
146
  * nachher
147
147
 
148
148
  ===Einr�ckungen===
149
- Nicht realisiert, macht implizit Definitionsliste (fixme)
150
- : Text macht implizit Definitionsliste (fixme)
149
+ Nicht realisiert, macht implizit Definitionsliste
150
+ : Text macht implizit Definitionsliste
151
151
  :: Noch tiefer
152
152
 
153
153
  ===Fu�noten===