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
data/FUTURE
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
= The future of rd2odt
|
2
|
+
|
3
|
+
This note is drawn the future of rd2odt.
|
4
|
+
It has a dream, I think.
|
5
|
+
|
6
|
+
== Installation by RubyGems
|
7
|
+
|
8
|
+
% (sudo) gem install rd2odt
|
9
|
+
|
10
|
+
== Awesome templates
|
11
|
+
|
12
|
+
I have few sense.
|
13
|
+
PLEASE HELP ME!
|
14
|
+
|
15
|
+
== Full RDtool support
|
16
|
+
|
17
|
+
* Inline element support.
|
18
|
+
((*strong*))
|
19
|
+
((-footnote-))
|
20
|
+
((<hyperlink|URL:http://www.j96.org/~yuya/>))
|
21
|
+
(({program code (fixed font?)}))
|
22
|
+
((|program variable (italic)|))
|
23
|
+
((%keyboard input%))
|
24
|
+
((:term description:))
|
25
|
+
((<label>))
|
26
|
+
(('verbatim'))
|
27
|
+
|
28
|
+
* term description
|
29
|
+
: term
|
30
|
+
description
|
31
|
+
|
32
|
+
== About OpenDocument format
|
33
|
+
|
34
|
+
* The <text:h> element with numbering support.
|
35
|
+
Now, <text:p> element with <text:list> element.
|
36
|
+
* Inserts figure support as directly.
|
37
|
+
<<< my-family.png
|
38
|
+
(using default figure style)
|
39
|
+
* Inserts OLE objects as directly.
|
40
|
+
<<< population-graph.ods
|
41
|
+
(using default OLE object style)
|
42
|
+
* Inserts table of contents support.
|
43
|
+
<<< preamble-with-toc.odt
|
44
|
+
* Reference support.
|
45
|
+
((<reference to figure|ref:figure-1>))
|
46
|
+
((<reference to section|ref:section-1>))
|
47
|
+
((<reference to table|ref:table-1>))
|
48
|
+
* Online replacing.
|
49
|
+
<STILL PLANNING>
|
50
|
+
% rd2odt --replace-string=@author@:'Yuya.Nishida.' nuclear-report.rd
|
51
|
+
* Online changing style.
|
52
|
+
<STILL PLANNING>
|
53
|
+
% rd2odt --change-style=headline-1:awesome-headline-1 concert-of-ACIDMAN.rd
|
54
|
+
|
55
|
+
== Internal implementation
|
56
|
+
|
57
|
+
* do not use Wabisabi format XML.
|
58
|
+
|
59
|
+
# Editor settings
|
60
|
+
# - Emacs -
|
61
|
+
# local variables:
|
62
|
+
# mode: RD
|
63
|
+
# end:
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The X11 License
|
2
|
+
|
3
|
+
Copyright (c) 2009 Yuya.Nishida.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR Yuya.Nishida. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/NEWS
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
= version 0.1.0 2009-05-16
|
2
|
+
|
3
|
+
== a feature
|
4
|
+
|
5
|
+
* Distributed under the RubyGems package.
|
6
|
+
|
7
|
+
= version 0.0.1 2009-04-01
|
8
|
+
|
9
|
+
== a little features
|
10
|
+
|
11
|
+
* No '=begin' no '=end' document support.
|
12
|
+
|
13
|
+
== bug fixes
|
14
|
+
|
15
|
+
* Fixed the case of enum list over headline.
|
16
|
+
e.g.
|
17
|
+
(1) EnumList 1
|
18
|
+
|
19
|
+
== Headline 2
|
20
|
+
|
21
|
+
(1) EnumList 1
|
22
|
+
|
23
|
+
* Fixed the case of enum list over item list.
|
24
|
+
e.g.
|
25
|
+
(1) EnumList 1
|
26
|
+
(1) EnumList 1-1
|
27
|
+
* ItemList *1
|
28
|
+
(1) EnumList *1-1
|
29
|
+
|
30
|
+
= version 0.0.0 2009-02-22
|
31
|
+
|
32
|
+
* First release of rd2odt.
|
33
|
+
|
34
|
+
= 2007-07-26 22:45:23 +0900
|
35
|
+
|
36
|
+
* Planning!
|
37
|
+
|
38
|
+
# Editor settings
|
39
|
+
# - Emacs -
|
40
|
+
# local variables:
|
41
|
+
# mode: RD
|
42
|
+
# end:
|
data/README
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
= rd2odt
|
2
|
+
|
3
|
+
rd2odt is a converter for RD (Ruby Document) to OpenDocument.
|
4
|
+
|
5
|
+
= Install
|
6
|
+
|
7
|
+
== Requirements
|
8
|
+
|
9
|
+
* The Ruby interpreter :>
|
10
|
+
http://www.ruby-lang.org/
|
11
|
+
* RDtool
|
12
|
+
http://rubyforge.org/projects/rdtool/
|
13
|
+
* rubyzip
|
14
|
+
http://rubyforge.org/projects/rubyzip/
|
15
|
+
If you have RubyGems, you can install rubyzip with RubyGems:
|
16
|
+
% (sudo) gem install rubyzip
|
17
|
+
|
18
|
+
Do you have Debian/GNU Linux?
|
19
|
+
These are installable with APT!
|
20
|
+
% (sudo) apt-get install rdtool libzip-ruby1.8
|
21
|
+
|
22
|
+
== Install rd2odt
|
23
|
+
|
24
|
+
(1) Download newest tarballs and extract it.
|
25
|
+
http://rubyforge.org/projects/rd2odt/
|
26
|
+
(2) Run setup.rb and install it.
|
27
|
+
% cd rd2odt-<version number>
|
28
|
+
% (sudo) ruby setup.rb
|
29
|
+
|
30
|
+
= Tutorials
|
31
|
+
|
32
|
+
== 1st: converting the sample
|
33
|
+
|
34
|
+
(1) Let's try to convert sample RD to OpenDocument.
|
35
|
+
% cd rd2odt-<version number>
|
36
|
+
% rd2odt doc/sample.rd.ja
|
37
|
+
(2) You'll get "doc/sample.rd.ja.odt" (OpenDocument Text).
|
38
|
+
Please open it by Office Suites (e.g: OpenOffice.org).
|
39
|
+
% ooffice doc/sample.rd.ja.odt
|
40
|
+
|
41
|
+
== 2nd: converting your document
|
42
|
+
|
43
|
+
(1) If you have a RD document, enjoy converting!
|
44
|
+
% cp path-to-rd2odt/doc/sample.rd.ja.ott some-your-document.rd.ott
|
45
|
+
% rd2odt some-your-document.rd
|
46
|
+
Or,
|
47
|
+
% rd2odt --template=path-to-rd2odt/doc/sample.rd.ja.ott \
|
48
|
+
some-your-document.rd
|
49
|
+
|
50
|
+
== 3rd: changing the style
|
51
|
+
|
52
|
+
(1) Do you want change the style?
|
53
|
+
Okey! You can edit its style by OpenOffice.org Writer.
|
54
|
+
% ooffice doc/sample.rd.ja.ott
|
55
|
+
|
56
|
+
(2) And retry convert.
|
57
|
+
% rd2odt doc/sample.rd.ja
|
58
|
+
|
59
|
+
= License
|
60
|
+
|
61
|
+
The X11 License.
|
62
|
+
See more LICENSE file.
|
63
|
+
|
64
|
+
= Project home
|
65
|
+
|
66
|
+
http://rubyforge.org/projects/rd2odt/
|
67
|
+
|
68
|
+
= Author
|
69
|
+
|
70
|
+
Yuya.Nishida. <yuya at@at j96 dot.dot org>
|
71
|
+
~~~ ~~~ ~~~~ ~~~~ <== remove it when email me.
|
72
|
+
http://www.j96.org/~yuya/
|
73
|
+
|
74
|
+
# Editor settings
|
75
|
+
# - Emacs -
|
76
|
+
# local variables:
|
77
|
+
# mode: RD
|
78
|
+
# end:
|
data/Rakefile
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
require "rake"
|
2
|
+
require "rake/gempackagetask"
|
3
|
+
require "spec/rake/spectask"
|
4
|
+
require "rake/rdoctask"
|
5
|
+
|
6
|
+
task :default => [:clean, :spec, :init_gem_spec, :package]
|
7
|
+
|
8
|
+
desc "Clean up generated files and directories"
|
9
|
+
task :clean do
|
10
|
+
rm_rf "pkg"
|
11
|
+
rm_rf FileList["doc/**/*.rd.odt",
|
12
|
+
"doc/**/*.rd.ja.odt"]
|
13
|
+
end
|
14
|
+
|
15
|
+
Spec::Rake::SpecTask.new do |t|
|
16
|
+
t.spec_files = FileList["test/**/*-spec.rb"]
|
17
|
+
t.libs << "lib"
|
18
|
+
t.libs << "lib/rd2odt/rdtool"
|
19
|
+
t.spec_opts << "--colour"
|
20
|
+
end
|
21
|
+
|
22
|
+
Rake::RDocTask.new do |t|
|
23
|
+
t.main = "README"
|
24
|
+
t.title = "rd2odt"
|
25
|
+
t.options << "--line-numbers"
|
26
|
+
t.options << "--inline-source"
|
27
|
+
t.rdoc_files.include("README")
|
28
|
+
t.rdoc_files.include("FUTURE")
|
29
|
+
t.rdoc_files.include("NEWS")
|
30
|
+
t.rdoc_files.include("LICENSE")
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "Build packages"
|
34
|
+
task :init_gem_spec do
|
35
|
+
s = File.read("rd2odt.gemspec").untaint
|
36
|
+
spec = nil
|
37
|
+
Thread.start {
|
38
|
+
$SAFE = 2
|
39
|
+
spec = Module.new.module_eval(s)
|
40
|
+
}.join
|
41
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
42
|
+
pkg.need_zip = true
|
43
|
+
pkg.need_tar_gz = true
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Editor settings
|
48
|
+
# - Emacs -
|
49
|
+
# local variables:
|
50
|
+
# mode: Ruby
|
51
|
+
# end:
|
data/bin/rd2odt
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
= レベル1: 見出し1
|
4
|
+
|
5
|
+
本文1
|
6
|
+
|
7
|
+
== レベル2: 見出し1.1
|
8
|
+
|
9
|
+
本文1.1
|
10
|
+
|
11
|
+
=== レベル3: 見出し1.1.1
|
12
|
+
|
13
|
+
本文1.1.1
|
14
|
+
|
15
|
+
==== レベル4: 見出し1.1.1.1
|
16
|
+
|
17
|
+
本文1.1.1.1
|
18
|
+
|
19
|
+
+ レベル5: 見出し1.1.1.1.1
|
20
|
+
|
21
|
+
本文1.1.1.1.1
|
22
|
+
|
23
|
+
++ レベル6: 見出し1.1.1.1.1.1
|
24
|
+
|
25
|
+
本文1.1.1.1.1.1
|
26
|
+
|
27
|
+
|
28
|
+
= 見出し2
|
29
|
+
|
30
|
+
本文2
|
31
|
+
|
32
|
+
== 見出し2.1
|
33
|
+
|
34
|
+
本文2.1
|
35
|
+
|
36
|
+
== 見出し2.2
|
37
|
+
|
38
|
+
本文2.2
|
39
|
+
|
40
|
+
=== 見出し2.2.1
|
41
|
+
|
42
|
+
本文2.2.1
|
43
|
+
|
44
|
+
== 見出し2.3
|
45
|
+
|
46
|
+
本文2.3
|
47
|
+
|
48
|
+
= 見出し3
|
49
|
+
|
50
|
+
本文3
|
51
|
+
|
52
|
+
=== 見出し3.1.1
|
53
|
+
|
54
|
+
本文3.1.1
|
55
|
+
|
56
|
+
== 見出し3.2
|
57
|
+
|
58
|
+
本文3.2
|
59
|
+
|
60
|
+
=end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
<<< include-file-simple-text.odt
|
4
|
+
|
5
|
+
<<< include-file-simple-styled-text.odt
|
6
|
+
|
7
|
+
改ページ前
|
8
|
+
<<< page-break.odt
|
9
|
+
改ページ後
|
10
|
+
|
11
|
+
<<< include-file-original-styled-text.odt
|
12
|
+
|
13
|
+
<<< include-file-table.odt
|
14
|
+
|
15
|
+
<<< include-file-shape.odt
|
16
|
+
|
17
|
+
<<< include-file-ole-object.odt
|
18
|
+
|
19
|
+
<<< include-file-figure.odt
|
20
|
+
|
21
|
+
=end
|
data/doc/sample/list.rd
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
(1) 番号付き箇条書き1
|
4
|
+
(1) 番号付き箇条書き1-1
|
5
|
+
(2) 番号付き箇条書き1-2
|
6
|
+
(1) 番号付き箇条書き1-2-1
|
7
|
+
(3) 番号付き箇条書き1-3
|
8
|
+
* 番号なし箇条書き1-3-*1
|
9
|
+
* 番号なし箇条書き1-3-*2
|
10
|
+
(2) 番号付き箇条書き2
|
11
|
+
(1) 番号付き箇条書き2-1
|
12
|
+
|
13
|
+
* 番号なし箇条書き*1
|
14
|
+
(1) 番号付き箇条書き*1-1
|
15
|
+
(2) 番号付き箇条書き*1-2
|
16
|
+
* 番号なし箇条書き*1-2-*1
|
17
|
+
* 番号なし箇条書き*1-2-*2
|
18
|
+
* 番号なし箇条書き*2
|
19
|
+
|
20
|
+
(1) 番号付き箇条書き1
|
21
|
+
|
22
|
+
=end
|
Binary file
|
data/doc/sample.rd.ja
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
= 見出し1
|
4
|
+
|
5
|
+
本文1
|
6
|
+
|
7
|
+
== 見出し2
|
8
|
+
|
9
|
+
本文2
|
10
|
+
|
11
|
+
=== 見出し3
|
12
|
+
|
13
|
+
本文3
|
14
|
+
|
15
|
+
次の段落
|
16
|
+
|
17
|
+
= 箇条書き
|
18
|
+
|
19
|
+
== 単純な箇条書き
|
20
|
+
|
21
|
+
(1) 番号付き箇条書き1
|
22
|
+
(2) 番号付き箇条書き2
|
23
|
+
|
24
|
+
* 番号なし箇条書き1
|
25
|
+
* 番号なし箇条書き2
|
26
|
+
|
27
|
+
== 複雑な箇条書き
|
28
|
+
|
29
|
+
(1) 番号付き箇条書き1
|
30
|
+
(1) 番号付き箇条書き1-1
|
31
|
+
(2) 番号付き箇条書き1-2
|
32
|
+
(1) 番号付き箇条書き1-2-1
|
33
|
+
(3) 番号付き箇条書き1-3
|
34
|
+
* 番号なし箇条書き1
|
35
|
+
* 番号なし箇条書き2
|
36
|
+
(2) 番号付き箇条書き2
|
37
|
+
|
38
|
+
* 番号なし箇条書き1
|
39
|
+
(1) 番号付き箇条書き1
|
40
|
+
(2) 番号付き箇条書き2
|
41
|
+
* 番号なし箇条書き2
|
42
|
+
|
43
|
+
= include
|
44
|
+
|
45
|
+
== 表
|
46
|
+
|
47
|
+
<<< sample/include-file-table.odt
|
48
|
+
|
49
|
+
== 図形
|
50
|
+
|
51
|
+
<<< sample/include-file-shape.odt
|
52
|
+
|
53
|
+
== OLEオブジェクト
|
54
|
+
|
55
|
+
<<< sample/include-file-ole-object.odt
|
56
|
+
|
57
|
+
== 画像
|
58
|
+
|
59
|
+
<<< sample/include-file-figure.odt
|
60
|
+
|
61
|
+
= 整形なし
|
62
|
+
|
63
|
+
整形なし複数行1
|
64
|
+
整形なし複数行2
|
65
|
+
整形 なし 複数行3
|
66
|
+
|
67
|
+
=end
|
68
|
+
|
69
|
+
# $Id$
|
70
|
+
#
|
71
|
+
# Editor settings
|
72
|
+
# - Emacs -
|
73
|
+
# local variables:
|
74
|
+
# mode: RD
|
75
|
+
# end:
|
Binary file
|
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
= RD2ODT - for RD-ists whose want graceful output.
|
2
|
+
|
3
|
+
== 注意事項
|
4
|
+
|
5
|
+
本仕様書は完成していない.
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
== 対象者
|
10
|
+
|
11
|
+
本プログラムは以下の人にお勧めする.
|
12
|
+
(0) RDの書式は好きだが,紙出力やPDF出力時はもっとよいデザインであってほしいと思っている人.
|
13
|
+
(0) OpenOffice.orgの出力に満足しているが,入力は愛用のテキストエディタを使いたい人.
|
14
|
+
ほら,周りによくいませんか.
|
15
|
+
未だにEmacsとかVIMとか使っている人.
|
16
|
+
まあ雄也もそうなんですけど,なにか?
|
17
|
+
(0) ウェブページを作るとき,HTMLで文書構造を記述してスタイルはスタイルシートで記述していて,OpenOffice.orgでも別々にとらえることはできないだろうかと考えている人.
|
18
|
+
(0) 最終的な体裁は綺麗にしたいが,変更が激しい初期はできればテキストファイルで編集して,メイルでみなの意見をもらいたい人.
|
19
|
+
|
20
|
+
本プログラムは以下の人には,とてもお勧め((*できない*)).
|
21
|
+
(0) OpenOffice.orgの全てに満足している人.
|
22
|
+
(0) RDの書式が嫌いな人.
|
23
|
+
ただし,表や画像が入力できない点を気にしている人にはお勧めできる.
|
24
|
+
(0) HTMLへの出力をしたい人.
|
25
|
+
RDtool標準のrd2htmlやrd2html-extがより適切と考えられる.
|
26
|
+
(0) 「OpenOffice.orgでスタイル? なにそれ,うまいの?」な人
|
27
|
+
|
28
|
+
== 既知の不具合
|
29
|
+
|
30
|
+
ない!
|
31
|
+
|
32
|
+
既知じゃない不具合はあるかもしんない.
|
33
|
+
|
34
|
+
== 目標
|
35
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
=begin
|
2
|
+
= RDtool 0.6.21
|
3
|
+
== What is RDtool
|
4
|
+
|
5
|
+
RD is Ruby's POD. RDtool is formatter for RD.
|
6
|
+
|
7
|
+
== What is Changed
|
8
|
+
|
9
|
+
See HISTORY.
|
10
|
+
|
11
|
+
== How to Install
|
12
|
+
|
13
|
+
(1)((%su%)) if you install into public directories.
|
14
|
+
(2)((%ruby setup.rb%))
|
15
|
+
(3)If you want to use , utils/rd-mode.el, install it ((*by hand*)).
|
16
|
+
|
17
|
+
== How to use
|
18
|
+
|
19
|
+
Simply,
|
20
|
+
% rd2 rdfile.rd > outputfile
|
21
|
+
|
22
|
+
If you want to indicate format-library, do
|
23
|
+
% rd2 -r library rdfile.rd > outputfile
|
24
|
+
|
25
|
+
Use ((% rd2 --help %)) for more options.
|
26
|
+
|
27
|
+
For options depend on format-library, enter ((%--help%)) after
|
28
|
+
the indication of format-library. For example,
|
29
|
+
|
30
|
+
% rd2 -r rd/rd2html-lib.rb --help
|
31
|
+
|
32
|
+
rd2 load "${HOME}/.rd2rc" when it runs.
|
33
|
+
|
34
|
+
== How to write RD?
|
35
|
+
|
36
|
+
Please read doc/rd-draft.rd.
|
37
|
+
|
38
|
+
== About bug report
|
39
|
+
|
40
|
+
If you find a bug in RDtool, please E-mail me
|
41
|
+
((<URL:mailto:moonwolf@moonwolf.com>)).
|
42
|
+
|
43
|
+
== License
|
44
|
+
|
45
|
+
You can use/re-distribute/change RDtool under Ruby's License or GPL.
|
46
|
+
This distribution of RDtool include files that are copyrighted by
|
47
|
+
somebody else, and these files can be re-distributed under those own license.
|
48
|
+
These files include the condition of those licenses in themselves.
|
49
|
+
|
50
|
+
=end
|