rd2odt 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/FUTURE +63 -0
- data/LICENSE +21 -0
- data/NEWS +42 -0
- data/README +78 -0
- data/Rakefile +51 -0
- data/bin/rd2odt +4 -0
- data/doc/sample/body-text.rd +5 -0
- data/doc/sample/enum-list-over-headline-multi-level.rd +10 -0
- data/doc/sample/enum-list-over-headline.rd +9 -0
- data/doc/sample/enum-list-over-item-list-multi-level-2.rd +9 -0
- data/doc/sample/enum-list-over-item-list-multi-level.rd +8 -0
- data/doc/sample/enum-list-over-item-list.rd +7 -0
- data/doc/sample/headline.rd +60 -0
- data/doc/sample/include-file-figure.odt +0 -0
- data/doc/sample/include-file-ole-object.odt +0 -0
- data/doc/sample/include-file-original-styled-text.odt +0 -0
- data/doc/sample/include-file-shape.odt +0 -0
- data/doc/sample/include-file-simple-styled-text.odt +0 -0
- data/doc/sample/include-file-simple-text.odt +0 -0
- data/doc/sample/include-file-table.odt +0 -0
- data/doc/sample/include.rd +21 -0
- data/doc/sample/list.rd +22 -0
- data/doc/sample/multi-paragraph.rd +12 -0
- data/doc/sample/page-break.odt +0 -0
- data/doc/sample/verbatim.rd +8 -0
- data/doc/sample.rd.ja +75 -0
- data/doc/sample.rd.ja.ott +0 -0
- data/doc/sample.rd.ja.pdf +0 -0
- data/doc/specification.ja.rd +35 -0
- data/lib/rd2odt/rdtool/NOTICE.rd2odt +8 -0
- data/lib/rd2odt/rdtool/README.rd +50 -0
- data/lib/rd2odt/rdtool/README.rd.ja +53 -0
- data/lib/rd2odt/rdtool/rd/block-element.rb +114 -0
- data/lib/rd2odt/rdtool/rd/complex-list-item.rb +65 -0
- data/lib/rd2odt/rdtool/rd/desclist.rb +55 -0
- data/lib/rd2odt/rdtool/rd/document-struct.rb +46 -0
- data/lib/rd2odt/rdtool/rd/element.rb +160 -0
- data/lib/rd2odt/rdtool/rd/filter.rb +255 -0
- data/lib/rd2odt/rdtool/rd/inline-element.rb +233 -0
- data/lib/rd2odt/rdtool/rd/labeled-element.rb +14 -0
- data/lib/rd2odt/rdtool/rd/list.rb +57 -0
- data/lib/rd2odt/rdtool/rd/loose-struct.rb +11 -0
- data/lib/rd2odt/rdtool/rd/methodlist.rb +57 -0
- data/lib/rd2odt/rdtool/rd/output-format-visitor.rb +28 -0
- data/lib/rd2odt/rdtool/rd/package.rb +4 -0
- data/lib/rd2odt/rdtool/rd/parser-util.rb +14 -0
- data/lib/rd2odt/rdtool/rd/rbl-file.rb +69 -0
- data/lib/rd2odt/rdtool/rd/rbl-suite.rb +37 -0
- data/lib/rd2odt/rdtool/rd/rd-struct.rb +86 -0
- data/lib/rd2odt/rdtool/rd/rd2html-lib.rb +490 -0
- data/lib/rd2odt/rdtool/rd/rd2html-opt.rb +67 -0
- data/lib/rd2odt/rdtool/rd/rd2man-lib.rb +241 -0
- data/lib/rd2odt/rdtool/rd/rd2rdo-lib.rb +19 -0
- data/lib/rd2odt/rdtool/rd/rd2rmi-lib.rb +32 -0
- data/lib/rd2odt/rdtool/rd/rdblockparser.tab.rb +1050 -0
- data/lib/rd2odt/rdtool/rd/rdfmt.rb +15 -0
- data/lib/rd2odt/rdtool/rd/rdinlineparser.tab.rb +1243 -0
- data/lib/rd2odt/rdtool/rd/rdvisitor.rb +214 -0
- data/lib/rd2odt/rdtool/rd/reference-resolver.rb +114 -0
- data/lib/rd2odt/rdtool/rd/search-file.rb +14 -0
- data/lib/rd2odt/rdtool/rd/tree.rb +103 -0
- data/lib/rd2odt/rdtool/rd/version.rb +39 -0
- data/lib/rd2odt/rdtool/rd/visitor.rb +86 -0
- data/lib/rd2odt.rb +603 -0
- data/rd2odt.gemspec +108 -0
- data/setup.rb +1585 -0
- data/test/functional/rd2odt-spec.rb +733 -0
- data/test/test-helper.rb +93 -0
- data/test/unit/rd2odt-spec.rb +831 -0
- metadata +122 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
require 'rd/tree'
|
3
|
+
require 'rd/rd-struct'
|
4
|
+
|
5
|
+
module RD
|
6
|
+
# for backward-compatibility.
|
7
|
+
class RDTree < Tree
|
8
|
+
def initialize(src_str, include_paths = [], do_parse = true)
|
9
|
+
super(DocumentStructure::RD, src_str, include_paths)
|
10
|
+
parse() if do_parse
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
RDElement = Element
|
15
|
+
end
|