docgenerator 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/examples/creole_example.rb +0 -1
- data/examples/creole_example_new_plugin.rb +51 -0
- data/examples/creole_example_tabular.rb +3 -1
- data/examples/wiki2docgenerator_example.rb +2 -2
- data/lib/creole/creole2doc.rb +697 -680
- data/lib/creole/creole_characters.rb +90 -26
- data/lib/creole/creole_inclusion_and_plugins.rb +25 -43
- data/lib/creole/creole_inclusions.rb +87 -75
- data/lib/creole/creole_placeholder.rb +87 -89
- data/lib/creole/creole_plugins.rb +149 -117
- data/lib/creole/creole_tabular.rb +247 -141
- data/lib/creole/plugins/todonotes.rb +48 -48
- data/lib/docgenerator/characters.rb +106 -8
- data/lib/docgenerator/compatibility_v1.rb +7 -1
- data/lib/docgenerator/document.rb +34 -19
- data/lib/docgenerator/element.rb +1 -0
- data/lib/docgenerator/element_meta.rb +1 -1
- data/lib/docgenerator/elements.rb +594 -535
- data/lib/docgenerator/environments.rb +131 -99
- data/lib/docgenerator/index.rb +110 -0
- data/lib/docgenerator/lists.rb +2 -1
- data/lib/docgenerator/packages/caption.rb +32 -34
- data/lib/docgenerator/packages/hyperref.rb +1 -0
- data/lib/docgenerator/packages/multicol.rb +3 -2
- data/lib/docgenerator/packages/pdfpages.rb +71 -20
- data/lib/docgenerator/packages/scrpage2.rb +99 -142
- data/lib/docgenerator/packages/url.rb +75 -81
- data/lib/docgenerator/sections.rb +98 -98
- data/lib/docgenerator/standard.rb +8 -1
- data/lib/docgenerator/tabular.rb +44 -25
- data/lib/docgenerator/templates/docgenerator_template.yaml +28 -0
- data/lib/docgenerator/version.rb +146 -0
- data/lib/docgenerator.rb +20 -15
- data/meta_test_and_doc/build_doc.rb +39 -10
- data/meta_test_and_doc/build_test.rb +34 -12
- data/meta_test_and_doc/manpages/characters.rb +452 -20
- data/meta_test_and_doc/manpages/elementlist.rb +304 -0
- data/meta_test_and_doc/manpages/elements.rb +305 -42
- data/meta_test_and_doc/manpages/others.rb +403 -0
- data/meta_test_and_doc/manpages/pdfpages.rb +117 -18
- data/meta_test_and_doc/manpages/readme.rdoc +3 -1
- data/meta_test_and_doc/manpages/scrpage2.rb +0 -80
- data/meta_test_and_doc/manpages/tables.rb +6 -6
- data/readme.rdoc +11 -120
- data/unittest/expected/test_comment.html +1 -0
- data/unittest/expected/test_comment.latex +5 -0
- data/unittest/expected/test_comment_complex.html +3 -0
- data/unittest/expected/test_comment_complex.latex +15 -0
- data/unittest/expected_creole/test_creole_characters_all.html +6 -5
- data/unittest/expected_creole/test_creole_characters_all.latex +10 -8
- data/unittest/expected_creole/test_creole_creole1.0test.latex +5 -5
- data/unittest/expected_creole/test_creole_input.normsource +11 -9
- data/unittest/expected_creole/test_creole_list_ul.normsource +57 -51
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.html +6 -0
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.latex +12 -0
- data/unittest/expected_creole/test_creole_paragraphs.normsource +12 -10
- data/unittest/expected_creole/test_creole_pictures.latex +2 -2
- data/unittest/expected_creole/test_creole_pictures_css.latex +2 -2
- data/unittest/expected_creole/test_creole_pictures_imgclass.latex +2 -2
- data/unittest/expected_creole/test_creole_pictures_width.latex +1 -1
- data/unittest/expected_creole/test_creole_tabular.latex +3 -3
- data/unittest/expected_creole/test_creole_tabular_creole.latex +2 -2
- data/unittest/expected_creole/test_creole_tabular_css.latex +3 -3
- data/unittest/expected_creole/test_creole_tabular_row_parameters.latex +22 -0
- data/unittest/expected_templates/test_standalone.tex +34 -0
- data/unittest/expected_wikimedia/test_wiki_picture.latex +12 -12
- data/unittest/unittest_creole.rb +22 -3
- data/unittest/unittest_creole_tabular.rb +34 -1
- data/unittest/unittest_docgenerator.rb +46 -3
- data/unittest/unittest_docgenerator_characters.rb +527 -82
- data/unittest/unittest_templates.rb +1 -1
- 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
|
data/examples/creole_example.rb
CHANGED
@@ -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
|
+
>>>
|
@@ -146,8 +146,8 @@ text in neuem Absatz
|
|
146
146
|
* nachher
|
147
147
|
|
148
148
|
===Einr�ckungen===
|
149
|
-
Nicht realisiert, macht implizit Definitionsliste
|
150
|
-
: Text macht implizit Definitionsliste
|
149
|
+
Nicht realisiert, macht implizit Definitionsliste
|
150
|
+
: Text macht implizit Definitionsliste
|
151
151
|
:: Noch tiefer
|
152
152
|
|
153
153
|
===Fu�noten===
|