FooBarWidget-mizuho 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +14 -2
- data/asciidoc/BUGS +11 -6
- data/asciidoc/BUGS.txt +7 -3
- data/asciidoc/CHANGELOG +313 -151
- data/asciidoc/CHANGELOG.txt +177 -12
- data/asciidoc/INSTALL +30 -36
- data/asciidoc/INSTALL.txt +20 -20
- data/asciidoc/Makefile.in +145 -0
- data/asciidoc/README +11 -11
- data/asciidoc/README.txt +9 -9
- data/asciidoc/a2x +40 -7
- data/asciidoc/asciidoc.conf +180 -126
- data/asciidoc/asciidoc.py +1667 -977
- data/asciidoc/common.aap +2 -2
- data/asciidoc/configure +2840 -0
- data/asciidoc/configure.ac +11 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +2 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +15 -0
- data/asciidoc/dblatex/dblatex-readme.txt +19 -2
- data/asciidoc/doc/a2x.1 +77 -67
- data/asciidoc/doc/a2x.1.txt +11 -2
- data/asciidoc/doc/article.css-embedded.html +85 -63
- data/asciidoc/doc/article.html +644 -62
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +15 -17
- data/asciidoc/doc/asciidoc.1 +34 -40
- data/asciidoc/doc/asciidoc.1.css-embedded.html +67 -32
- data/asciidoc/doc/asciidoc.1.css.html +28 -28
- data/asciidoc/doc/asciidoc.1.html +33 -33
- data/asciidoc/doc/asciidoc.css-embedded.html +2234 -2348
- data/asciidoc/doc/asciidoc.css.html +2203 -2352
- data/asciidoc/doc/asciidoc.dict +52 -1
- data/asciidoc/doc/asciidoc.html +980 -1160
- data/asciidoc/doc/asciidoc.txt +941 -738
- data/asciidoc/doc/asciimathml.txt +63 -0
- data/asciidoc/doc/book-multi.html +26 -43
- data/asciidoc/doc/book-multi.txt +19 -23
- data/asciidoc/doc/book.css-embedded.html +92 -71
- data/asciidoc/doc/book.html +24 -41
- data/asciidoc/doc/book.txt +19 -21
- data/asciidoc/doc/docbook-xsl.css +1 -0
- data/asciidoc/doc/faq.txt +288 -60
- data/asciidoc/doc/images +1 -0
- data/asciidoc/doc/latex-backend.html +16 -123
- data/asciidoc/doc/latex-backend.txt +17 -19
- data/asciidoc/doc/latexmath.txt +233 -24
- data/asciidoc/doc/latexmathml.txt +41 -0
- data/asciidoc/doc/main.aap +9 -5
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +2 -2
- data/asciidoc/doc/source-highlight-filter.html +476 -105
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +39 -10
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +1 -29
- data/asciidoc/docbook-xsl/fo.xsl +35 -3
- data/asciidoc/docbook-xsl/manpage.xsl +3 -0
- data/asciidoc/docbook-xsl/text.xsl +50 -0
- data/asciidoc/docbook.conf +182 -73
- data/asciidoc/examples/website/ASCIIMathML.js +1 -0
- data/asciidoc/examples/website/CHANGELOG.html +618 -182
- data/asciidoc/examples/website/CHANGELOG.txt +1 -0
- data/asciidoc/examples/website/INSTALL.html +34 -36
- data/asciidoc/examples/website/INSTALL.txt +1 -0
- data/asciidoc/examples/website/LaTeXMathML.js +1 -0
- data/asciidoc/examples/website/README-website.html +26 -37
- data/asciidoc/examples/website/README-website.txt +6 -6
- data/asciidoc/examples/website/README.html +15 -15
- data/asciidoc/examples/website/README.txt +1 -0
- data/asciidoc/examples/website/a2x.1.html +74 -50
- data/asciidoc/examples/website/a2x.1.txt +1 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +13 -48
- data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +1 -0
- data/asciidoc/examples/website/asciimathml.txt +1 -0
- data/asciidoc/examples/website/customers.csv +1 -0
- data/asciidoc/examples/website/downloads.html +69 -31
- data/asciidoc/examples/website/downloads.txt +28 -5
- data/asciidoc/examples/website/faq.html +370 -124
- data/asciidoc/examples/website/faq.txt +1 -0
- data/asciidoc/examples/website/images +1 -0
- data/asciidoc/examples/website/index.html +64 -64
- data/asciidoc/examples/website/index.txt +22 -15
- data/asciidoc/examples/website/latex-backend.html +152 -257
- data/asciidoc/examples/website/latex-backend.txt +1 -0
- data/asciidoc/examples/website/latexmathml.txt +1 -0
- data/asciidoc/examples/website/manpage.html +27 -27
- data/asciidoc/examples/website/manpage.txt +1 -0
- data/asciidoc/examples/website/music-filter.html +18 -18
- data/asciidoc/examples/website/music-filter.txt +1 -0
- data/asciidoc/examples/website/music1.abc +1 -1
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +1 -1
- data/asciidoc/examples/website/music2.png +0 -0
- data/asciidoc/examples/website/newlists.txt +40 -0
- data/asciidoc/examples/website/newtables.txt +397 -0
- data/asciidoc/examples/website/source-highlight-filter.html +67 -32
- data/asciidoc/examples/website/source-highlight-filter.txt +1 -0
- data/asciidoc/examples/website/support.html +4 -4
- data/asciidoc/examples/website/toc.js +1 -0
- data/asciidoc/examples/website/userguide.html +2190 -2339
- data/asciidoc/examples/website/userguide.txt +1 -0
- data/asciidoc/examples/website/version83.txt +37 -0
- data/asciidoc/examples/website/version9.html +13 -13
- data/asciidoc/examples/website/xhtml11-manpage.css +1 -0
- data/asciidoc/examples/website/xhtml11-quirks.css +1 -0
- data/asciidoc/examples/website/xhtml11.css +1 -0
- data/asciidoc/filters/code-filter-readme.txt +3 -3
- data/asciidoc/filters/code-filter-test.txt +6 -6
- data/asciidoc/filters/source-highlight-filter.conf +12 -5
- data/asciidoc/html4.conf +152 -58
- data/asciidoc/install-sh +201 -0
- data/asciidoc/latex.conf +41 -41
- data/asciidoc/stylesheets/docbook-xsl.css +1 -0
- data/asciidoc/stylesheets/xhtml11.css +39 -4
- data/asciidoc/text.conf +4 -4
- data/asciidoc/vim/syntax/asciidoc.vim +58 -32
- data/asciidoc/wordpress.conf +48 -0
- data/asciidoc/xhtml11-quirks.conf +1 -1
- data/asciidoc/xhtml11.conf +198 -70
- data/bin/mizuho +5 -2
- data/lib/mizuho/generator.rb +48 -19
- data/mizuho.gemspec +16 -6
- metadata +58 -15
- data/asciidoc/doc/asciimath.txt +0 -47
- data/asciidoc/docbook-xsl/shaded-literallayout.patch +0 -32
- data/asciidoc/examples/website/asciimath.html +0 -157
- data/asciidoc/examples/website/latexmath.html +0 -119
- data/asciidoc/filters/code-filter-test-c++.txt +0 -7
- data/asciidoc/install.sh +0 -55
- data/asciidoc/linuxdoc.conf +0 -285
- data/asciidoc/math.conf +0 -50
- data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +0 -21
- data/asciidoc/stylesheets/xhtml-deprecated.css +0 -247
- data/asciidoc/t.conf +0 -20
- data/asciidoc/xhtml-deprecated-css.conf +0 -235
- data/asciidoc/xhtml-deprecated.conf +0 -351
data/bin/mizuho
CHANGED
@@ -21,6 +21,9 @@ parser = OptionParser.new do |opts|
|
|
21
21
|
"#{' ' * 37}'images/icons'.") do |value|
|
22
22
|
options[:icons_dir] = value
|
23
23
|
end
|
24
|
+
opts.on("-o", "--output FILE", String, "Specify the output filename.") do |value|
|
25
|
+
options[:output] = value
|
26
|
+
end
|
24
27
|
end
|
25
28
|
begin
|
26
29
|
parser.parse!
|
@@ -34,9 +37,9 @@ end
|
|
34
37
|
begin
|
35
38
|
if ARGV.empty?
|
36
39
|
puts parser
|
40
|
+
exit 1
|
37
41
|
else
|
38
|
-
Mizuho::Generator.new(ARGV[0],
|
39
|
-
options[:multi_page], options[:icons_dir]).start
|
42
|
+
Mizuho::Generator.new(ARGV[0], options).start
|
40
43
|
end
|
41
44
|
rescue Mizuho::GenerationError
|
42
45
|
STDERR.puts "*** ERROR"
|
data/lib/mizuho/generator.rb
CHANGED
@@ -9,31 +9,36 @@ class GenerationError < StandardError
|
|
9
9
|
end
|
10
10
|
|
11
11
|
class Generator
|
12
|
-
def initialize(input,
|
13
|
-
@
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
@template = locate_template_file(template_name)
|
20
|
-
@multi_page = multi_page
|
21
|
-
@icons_dir = icons_dir
|
12
|
+
def initialize(input, options = {})
|
13
|
+
@input_file = input
|
14
|
+
@output_name = options[:output]
|
15
|
+
@template = locate_template_file(options[:template])
|
16
|
+
@multi_page = options[:multi_page]
|
17
|
+
@icons_dir = options[:icons_dir]
|
18
|
+
@conf_file = options[:conf_file]
|
22
19
|
end
|
23
20
|
|
24
21
|
def start
|
25
|
-
|
22
|
+
output_filename = determine_output_filename(@input_file, @output_name)
|
23
|
+
self.class.run_asciidoc(@input_file, output_filename, @icons_dir, @conf_file)
|
26
24
|
if @template
|
27
|
-
apply_template(
|
25
|
+
apply_template(output_filename, @input_file, @output_name, @template, @multi_page)
|
28
26
|
end
|
29
27
|
end
|
30
28
|
|
31
|
-
def self.run_asciidoc(input, output, icons_dir = nil)
|
29
|
+
def self.run_asciidoc(input, output, icons_dir = nil, conf_file = nil)
|
32
30
|
args = ["python", ASCIIDOC, "-a", "toc", "-a", "icons"]
|
33
31
|
if icons_dir
|
34
32
|
args << "-a"
|
35
33
|
args << "iconsdir=#{icons_dir}"
|
36
34
|
end
|
35
|
+
if conf_file
|
36
|
+
# With the splat operator we support a string and an array of strings.
|
37
|
+
[*conf_file].each do |cf|
|
38
|
+
args << "-f"
|
39
|
+
args << cf
|
40
|
+
end
|
41
|
+
end
|
37
42
|
args += ["-n", "-o", output, input]
|
38
43
|
if !system(*args)
|
39
44
|
raise GenerationError, "Asciidoc failed."
|
@@ -55,11 +60,35 @@ private
|
|
55
60
|
end
|
56
61
|
end
|
57
62
|
|
58
|
-
def
|
63
|
+
def determine_output_filename(input, output = nil, chapter_id = nil)
|
64
|
+
if chapter_id
|
65
|
+
if output
|
66
|
+
dirname = File.dirname(output)
|
67
|
+
extname = File.extname(output)
|
68
|
+
basename = File.basename(output, extname)
|
69
|
+
filename = File.join(dirname, "#{basename}-#{chapter_id}#{extname}")
|
70
|
+
else
|
71
|
+
dirname = File.dirname(input)
|
72
|
+
basename = File.basename(input, File.extname(input))
|
73
|
+
filename = File.join(dirname, "#{basename}-#{chapter_id}.html")
|
74
|
+
end
|
75
|
+
else
|
76
|
+
if output
|
77
|
+
filename = output
|
78
|
+
else
|
79
|
+
dirname = File.dirname(input)
|
80
|
+
basename = File.basename(input, File.extname(input))
|
81
|
+
filename = File.join(dirname, "#{basename}.html")
|
82
|
+
end
|
83
|
+
end
|
84
|
+
return File.expand_path(filename)
|
85
|
+
end
|
86
|
+
|
87
|
+
def apply_template(asciidoc_file, input_file, output_name, template_file, multi_page)
|
59
88
|
parser = Parser.new(asciidoc_file)
|
60
89
|
if multi_page
|
61
90
|
File.unlink(asciidoc_file)
|
62
|
-
assign_chapter_filenames_and_heading_basenames(parser.chapters)
|
91
|
+
assign_chapter_filenames_and_heading_basenames(parser.chapters, input_file, output_name)
|
63
92
|
parser.chapters.each_with_index do |chapter, i|
|
64
93
|
template = Template.new(template_file,
|
65
94
|
:multi_page? => true,
|
@@ -86,14 +115,14 @@ private
|
|
86
115
|
exit 1
|
87
116
|
end
|
88
117
|
|
89
|
-
def assign_chapter_filenames_and_heading_basenames(chapters)
|
118
|
+
def assign_chapter_filenames_and_heading_basenames(chapters, input_file, output_name)
|
90
119
|
chapters.each_with_index do |chapter, i|
|
91
120
|
if chapter.is_preamble?
|
92
|
-
chapter.filename =
|
121
|
+
chapter.filename = determine_output_filename(input_file, output_name)
|
93
122
|
else
|
94
123
|
title_sha1 = Digest::SHA1.hexdigest(chapter.title_without_numbers)
|
95
|
-
chapter.filename =
|
96
|
-
title_sha1.slice(0..7))
|
124
|
+
chapter.filename = determine_output_filename(input_file,
|
125
|
+
output_name, title_sha1.slice(0..7))
|
97
126
|
chapter.heading.basename = File.basename(chapter.filename)
|
98
127
|
chapter.heading.each_descendant do |h|
|
99
128
|
h.basename = File.basename(chapter.filename)
|
data/mizuho.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "mizuho"
|
3
|
-
s.version = "0.9.
|
4
|
-
s.date = "2008-07-21"
|
3
|
+
s.version = "0.9.2"
|
5
4
|
s.summary = "Mizuho documentation formatting tool"
|
6
5
|
s.email = "hongli@phusion.nl"
|
7
6
|
s.homepage = "http://github.com/FooBarWidget/mizuho/tree/master"
|
@@ -26,9 +25,20 @@ Gem::Specification.new do |s|
|
|
26
25
|
"templates/manualsonrails.css",
|
27
26
|
"templates/manualsonrails.html.erb",
|
28
27
|
|
29
|
-
"asciidoc/vim/syntax/asciidoc.vim", "asciidoc/vim/ftdetect/asciidoc_filetype.vim", "asciidoc/filters/code-filter.conf", "asciidoc/filters/source-highlight-filter-test.txt", "asciidoc/filters/music-filter.conf", "asciidoc/filters/code-filter-test
|
30
|
-
"asciidoc/
|
31
|
-
"asciidoc/
|
32
|
-
"asciidoc/
|
28
|
+
"asciidoc/vim", "asciidoc/vim/syntax", "asciidoc/vim/syntax/asciidoc.vim", "asciidoc/vim/ftdetect", "asciidoc/vim/ftdetect/asciidoc_filetype.vim", "asciidoc/filters", "asciidoc/filters/code-filter.conf", "asciidoc/filters/source-highlight-filter-test.txt", "asciidoc/filters/music-filter.conf", "asciidoc/filters/code-filter-test.txt", "asciidoc/filters/source-highlight-filter.conf", "asciidoc/filters/music-filter-test.txt", "asciidoc/filters/code-filter.py", "asciidoc/filters/music2png.py", "asciidoc/filters/code-filter-readme.txt", "asciidoc/wordpress.conf",
|
29
|
+
"asciidoc/stylesheets", "asciidoc/stylesheets/xhtml11-manpage.css", "asciidoc/stylesheets/xhtml11-quirks.css", "asciidoc/stylesheets/docbook-xsl.css", "asciidoc/stylesheets/xhtml11.css", "asciidoc/help.conf", "asciidoc/configure", "asciidoc/examples", "asciidoc/examples/website", "asciidoc/examples/website/downloads.txt", "asciidoc/examples/website/README.html", "asciidoc/examples/website/latexmathml.txt", "asciidoc/examples/website/userguide.txt", "asciidoc/examples/website/layout2.conf", "asciidoc/examples/website/xhtml11-manpage.css", "asciidoc/examples/website/support.html",
|
30
|
+
"asciidoc/examples/website/version9.txt", "asciidoc/examples/website/version83.txt", "asciidoc/examples/website/faq.html", "asciidoc/examples/website/index.html", "asciidoc/examples/website/xhtml11-quirks.css", "asciidoc/examples/website/customers.csv", "asciidoc/examples/website/newlists.html", "asciidoc/examples/website/newtables.txt", "asciidoc/examples/website/LaTeXMathML.js", "asciidoc/examples/website/images", "asciidoc/examples/website/asciimathml.txt", "asciidoc/examples/website/newtables.html", "asciidoc/examples/website/layout2.css",
|
31
|
+
"asciidoc/examples/website/source-highlight-filter.html", "asciidoc/examples/website/asciidoc-docbook-xsl.txt", "asciidoc/examples/website/a2x.1.html", "asciidoc/examples/website/toc.js", "asciidoc/examples/website/INSTALL.html", "asciidoc/examples/website/README-website.html", "asciidoc/examples/website/INSTALL.txt", "asciidoc/examples/website/version83.html", "asciidoc/examples/website/music1.abc", "asciidoc/examples/website/music1.png",
|
32
|
+
"asciidoc/examples/website/music-filter.html", "asciidoc/examples/website/latexmathml.html", "asciidoc/examples/website/layout1.conf", "asciidoc/examples/website/CHANGELOG.txt", "asciidoc/examples/website/source-highlight-filter.txt", "asciidoc/examples/website/index.txt", "asciidoc/examples/website/latex-backend.txt", "asciidoc/examples/website/build-website.sh", "asciidoc/examples/website/asciimathml.html", "asciidoc/examples/website/ASCIIMathML.js",
|
33
|
+
"asciidoc/examples/website/music-filter.txt", "asciidoc/examples/website/userguide.html", "asciidoc/examples/website/layout1.css", "asciidoc/examples/website/music2.png", "asciidoc/examples/website/faq.txt", "asciidoc/examples/website/asciidoc-docbook-xsl.html", "asciidoc/examples/website/support.txt", "asciidoc/examples/website/CHANGELOG.html", "asciidoc/examples/website/version9.html", "asciidoc/examples/website/music2.ly", "asciidoc/examples/website/README.txt", "asciidoc/examples/website/manpage.html", "asciidoc/examples/website/xhtml11.css", "asciidoc/examples/website/latex-backend.html", "asciidoc/examples/website/newlists.txt", "asciidoc/examples/website/manpage.txt",
|
34
|
+
"asciidoc/examples/website/downloads.html", "asciidoc/examples/website/a2x.1.txt", "asciidoc/examples/website/README-website.txt", "asciidoc/BUGS", "asciidoc/asciidoc.py", "asciidoc/common.aap", "asciidoc/images", "asciidoc/images/icons", "asciidoc/images/icons/up.png", "asciidoc/images/icons/warning.png", "asciidoc/images/icons/note.png", "asciidoc/images/icons/next.png", "asciidoc/images/icons/important.png", "asciidoc/images/icons/home.png",
|
35
|
+
"asciidoc/images/icons/README", "asciidoc/images/icons/caution.png", "asciidoc/images/icons/tip.png", "asciidoc/images/icons/prev.png", "asciidoc/images/icons/callouts", "asciidoc/images/icons/callouts/10.png", "asciidoc/images/icons/callouts/12.png", "asciidoc/images/icons/callouts/3.png", "asciidoc/images/icons/callouts/2.png", "asciidoc/images/icons/callouts/5.png",
|
36
|
+
"asciidoc/images/icons/callouts/7.png", "asciidoc/images/icons/callouts/8.png", "asciidoc/images/icons/callouts/11.png", "asciidoc/images/icons/callouts/9.png", "asciidoc/images/icons/callouts/1.png", "asciidoc/images/icons/callouts/4.png", "asciidoc/images/icons/callouts/6.png", "asciidoc/images/icons/callouts/13.png", "asciidoc/images/icons/callouts/15.png", "asciidoc/images/icons/callouts/14.png", "asciidoc/images/icons/example.png", "asciidoc/images/highlighter.png", "asciidoc/images/smallnew.png", "asciidoc/images/tiger.png",
|
37
|
+
"asciidoc/install-sh", "asciidoc/CHANGELOG", "asciidoc/doc", "asciidoc/doc/latexmathml.txt", "asciidoc/doc/asciidoc.1.html", "asciidoc/doc/source-highlight-filter.pdf", "asciidoc/doc/latexmath.txt", "asciidoc/doc/faq.html", "asciidoc/doc/customers.csv", "asciidoc/doc/images", "asciidoc/doc/book.css-embedded.html", "asciidoc/doc/asciidoc.css.html", "asciidoc/doc/asciimathml.txt",
|
38
|
+
"asciidoc/doc/article.html", "asciidoc/doc/source-highlight-filter.html", "asciidoc/doc/docbook-xsl.css", "asciidoc/doc/book.txt", "asciidoc/doc/asciidoc.1", "asciidoc/doc/a2x.1", "asciidoc/doc/asciidoc.txt", "asciidoc/doc/asciidoc-revhistory.xml", "asciidoc/doc/article.txt", "asciidoc/doc/music-filter.html", "asciidoc/doc/latexmathml.html", "asciidoc/doc/asciidoc.dict", "asciidoc/doc/article.pdf", "asciidoc/doc/asciidoc.html", "asciidoc/doc/source-highlight-filter.txt", "asciidoc/doc/asciidoc.css-embedded.html", "asciidoc/doc/asciidoc.1.css.html",
|
39
|
+
"asciidoc/doc/latex-backend.txt", "asciidoc/doc/asciimathml.html", "asciidoc/doc/article.css-embedded.html", "asciidoc/doc/music-filter.txt", "asciidoc/doc/book-multi.html", "asciidoc/doc/book-multi.txt", "asciidoc/doc/asciidoc.1.css-embedded.html", "asciidoc/doc/faq.txt", "asciidoc/doc/music-filter.pdf", "asciidoc/doc/main.aap", "asciidoc/doc/asciidoc.1.txt", "asciidoc/doc/latex-backend.html",
|
40
|
+
"asciidoc/doc/asciidoc.conf", "asciidoc/doc/book-multi.css-embedded.html", "asciidoc/doc/book.html", "asciidoc/doc/a2x.1.txt", "asciidoc/INSTALL.txt", "asciidoc/javascripts", "asciidoc/javascripts/LaTeXMathML.js", "asciidoc/javascripts/toc.js", "asciidoc/javascripts/ASCIIMathML.js", "asciidoc/BUGS.txt", "asciidoc/text.conf", "asciidoc/CHANGELOG.txt", "asciidoc/configure.ac", "asciidoc/INSTALL", "asciidoc/a2x", "asciidoc/README", "asciidoc/COPYING", "asciidoc/COPYRIGHT", "asciidoc/docbook-xsl", "asciidoc/docbook-xsl/fo.xsl", "asciidoc/docbook-xsl/manpage.xsl",
|
41
|
+
"asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt", "asciidoc/docbook-xsl/chunked.xsl", "asciidoc/docbook-xsl/htmlhelp.xsl", "asciidoc/docbook-xsl/text.xsl", "asciidoc/docbook-xsl/common.xsl", "asciidoc/docbook-xsl/xhtml.xsl", "asciidoc/html4.conf",
|
42
|
+
"asciidoc/dblatex", "asciidoc/dblatex/asciidoc-dblatex.xsl", "asciidoc/dblatex/asciidoc-dblatex.sty", "asciidoc/dblatex/dblatex-readme.txt", "asciidoc/lang-es.conf", "asciidoc/xhtml11.conf", "asciidoc/Makefile.in", "asciidoc/README.txt", "asciidoc/xhtml11-quirks.conf", "asciidoc/docbook.conf", "asciidoc/asciidoc.conf", "asciidoc/latex.conf"
|
33
43
|
]
|
34
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: FooBarWidget-mizuho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hongli Lai
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-22 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -46,60 +46,95 @@ files:
|
|
46
46
|
- templates/asciidoc.html.erb
|
47
47
|
- templates/manualsonrails.css
|
48
48
|
- templates/manualsonrails.html.erb
|
49
|
+
- asciidoc/vim
|
50
|
+
- asciidoc/vim/syntax
|
49
51
|
- asciidoc/vim/syntax/asciidoc.vim
|
52
|
+
- asciidoc/vim/ftdetect
|
50
53
|
- asciidoc/vim/ftdetect/asciidoc_filetype.vim
|
54
|
+
- asciidoc/filters
|
51
55
|
- asciidoc/filters/code-filter.conf
|
52
56
|
- asciidoc/filters/source-highlight-filter-test.txt
|
53
57
|
- asciidoc/filters/music-filter.conf
|
54
|
-
- asciidoc/filters/code-filter-test-c++.txt
|
55
58
|
- asciidoc/filters/code-filter-test.txt
|
56
59
|
- asciidoc/filters/source-highlight-filter.conf
|
57
60
|
- asciidoc/filters/music-filter-test.txt
|
58
61
|
- asciidoc/filters/code-filter.py
|
59
62
|
- asciidoc/filters/music2png.py
|
60
63
|
- asciidoc/filters/code-filter-readme.txt
|
64
|
+
- asciidoc/wordpress.conf
|
65
|
+
- asciidoc/stylesheets
|
61
66
|
- asciidoc/stylesheets/xhtml11-manpage.css
|
62
67
|
- asciidoc/stylesheets/xhtml11-quirks.css
|
63
68
|
- asciidoc/stylesheets/docbook-xsl.css
|
64
|
-
- asciidoc/stylesheets/xhtml-deprecated.css
|
65
|
-
- asciidoc/stylesheets/xhtml-deprecated-manpage.css
|
66
69
|
- asciidoc/stylesheets/xhtml11.css
|
67
70
|
- asciidoc/help.conf
|
71
|
+
- asciidoc/configure
|
72
|
+
- asciidoc/examples
|
73
|
+
- asciidoc/examples/website
|
68
74
|
- asciidoc/examples/website/downloads.txt
|
69
75
|
- asciidoc/examples/website/README.html
|
76
|
+
- asciidoc/examples/website/latexmathml.txt
|
77
|
+
- asciidoc/examples/website/userguide.txt
|
70
78
|
- asciidoc/examples/website/layout2.conf
|
79
|
+
- asciidoc/examples/website/xhtml11-manpage.css
|
71
80
|
- asciidoc/examples/website/support.html
|
72
81
|
- asciidoc/examples/website/version9.txt
|
82
|
+
- asciidoc/examples/website/version83.txt
|
73
83
|
- asciidoc/examples/website/faq.html
|
74
84
|
- asciidoc/examples/website/index.html
|
85
|
+
- asciidoc/examples/website/xhtml11-quirks.css
|
86
|
+
- asciidoc/examples/website/customers.csv
|
87
|
+
- asciidoc/examples/website/newlists.html
|
88
|
+
- asciidoc/examples/website/newtables.txt
|
89
|
+
- asciidoc/examples/website/LaTeXMathML.js
|
90
|
+
- asciidoc/examples/website/images
|
91
|
+
- asciidoc/examples/website/asciimathml.txt
|
92
|
+
- asciidoc/examples/website/newtables.html
|
75
93
|
- asciidoc/examples/website/layout2.css
|
76
94
|
- asciidoc/examples/website/source-highlight-filter.html
|
95
|
+
- asciidoc/examples/website/asciidoc-docbook-xsl.txt
|
77
96
|
- asciidoc/examples/website/a2x.1.html
|
97
|
+
- asciidoc/examples/website/toc.js
|
78
98
|
- asciidoc/examples/website/INSTALL.html
|
79
99
|
- asciidoc/examples/website/README-website.html
|
100
|
+
- asciidoc/examples/website/INSTALL.txt
|
101
|
+
- asciidoc/examples/website/version83.html
|
80
102
|
- asciidoc/examples/website/music1.abc
|
81
103
|
- asciidoc/examples/website/music1.png
|
82
104
|
- asciidoc/examples/website/music-filter.html
|
105
|
+
- asciidoc/examples/website/latexmathml.html
|
83
106
|
- asciidoc/examples/website/layout1.conf
|
107
|
+
- asciidoc/examples/website/CHANGELOG.txt
|
108
|
+
- asciidoc/examples/website/source-highlight-filter.txt
|
84
109
|
- asciidoc/examples/website/index.txt
|
110
|
+
- asciidoc/examples/website/latex-backend.txt
|
85
111
|
- asciidoc/examples/website/build-website.sh
|
112
|
+
- asciidoc/examples/website/asciimathml.html
|
113
|
+
- asciidoc/examples/website/ASCIIMathML.js
|
114
|
+
- asciidoc/examples/website/music-filter.txt
|
86
115
|
- asciidoc/examples/website/userguide.html
|
87
|
-
- asciidoc/examples/website/asciimath.html
|
88
116
|
- asciidoc/examples/website/layout1.css
|
89
117
|
- asciidoc/examples/website/music2.png
|
118
|
+
- asciidoc/examples/website/faq.txt
|
90
119
|
- asciidoc/examples/website/asciidoc-docbook-xsl.html
|
91
120
|
- asciidoc/examples/website/support.txt
|
92
|
-
- asciidoc/examples/website/latexmath.html
|
93
121
|
- asciidoc/examples/website/CHANGELOG.html
|
94
122
|
- asciidoc/examples/website/version9.html
|
95
123
|
- asciidoc/examples/website/music2.ly
|
124
|
+
- asciidoc/examples/website/README.txt
|
96
125
|
- asciidoc/examples/website/manpage.html
|
126
|
+
- asciidoc/examples/website/xhtml11.css
|
97
127
|
- asciidoc/examples/website/latex-backend.html
|
128
|
+
- asciidoc/examples/website/newlists.txt
|
129
|
+
- asciidoc/examples/website/manpage.txt
|
98
130
|
- asciidoc/examples/website/downloads.html
|
131
|
+
- asciidoc/examples/website/a2x.1.txt
|
99
132
|
- asciidoc/examples/website/README-website.txt
|
100
133
|
- asciidoc/BUGS
|
101
134
|
- asciidoc/asciidoc.py
|
102
135
|
- asciidoc/common.aap
|
136
|
+
- asciidoc/images
|
137
|
+
- asciidoc/images/icons
|
103
138
|
- asciidoc/images/icons/up.png
|
104
139
|
- asciidoc/images/icons/warning.png
|
105
140
|
- asciidoc/images/icons/note.png
|
@@ -110,6 +145,7 @@ files:
|
|
110
145
|
- asciidoc/images/icons/caution.png
|
111
146
|
- asciidoc/images/icons/tip.png
|
112
147
|
- asciidoc/images/icons/prev.png
|
148
|
+
- asciidoc/images/icons/callouts
|
113
149
|
- asciidoc/images/icons/callouts/10.png
|
114
150
|
- asciidoc/images/icons/callouts/12.png
|
115
151
|
- asciidoc/images/icons/callouts/3.png
|
@@ -129,15 +165,22 @@ files:
|
|
129
165
|
- asciidoc/images/highlighter.png
|
130
166
|
- asciidoc/images/smallnew.png
|
131
167
|
- asciidoc/images/tiger.png
|
168
|
+
- asciidoc/install-sh
|
132
169
|
- asciidoc/CHANGELOG
|
170
|
+
- asciidoc/doc
|
171
|
+
- asciidoc/doc/latexmathml.txt
|
133
172
|
- asciidoc/doc/asciidoc.1.html
|
134
173
|
- asciidoc/doc/source-highlight-filter.pdf
|
135
174
|
- asciidoc/doc/latexmath.txt
|
175
|
+
- asciidoc/doc/faq.html
|
136
176
|
- asciidoc/doc/customers.csv
|
177
|
+
- asciidoc/doc/images
|
137
178
|
- asciidoc/doc/book.css-embedded.html
|
138
179
|
- asciidoc/doc/asciidoc.css.html
|
180
|
+
- asciidoc/doc/asciimathml.txt
|
139
181
|
- asciidoc/doc/article.html
|
140
182
|
- asciidoc/doc/source-highlight-filter.html
|
183
|
+
- asciidoc/doc/docbook-xsl.css
|
141
184
|
- asciidoc/doc/book.txt
|
142
185
|
- asciidoc/doc/asciidoc.1
|
143
186
|
- asciidoc/doc/a2x.1
|
@@ -145,6 +188,7 @@ files:
|
|
145
188
|
- asciidoc/doc/asciidoc-revhistory.xml
|
146
189
|
- asciidoc/doc/article.txt
|
147
190
|
- asciidoc/doc/music-filter.html
|
191
|
+
- asciidoc/doc/latexmathml.html
|
148
192
|
- asciidoc/doc/asciidoc.dict
|
149
193
|
- asciidoc/doc/article.pdf
|
150
194
|
- asciidoc/doc/asciidoc.html
|
@@ -152,9 +196,9 @@ files:
|
|
152
196
|
- asciidoc/doc/asciidoc.css-embedded.html
|
153
197
|
- asciidoc/doc/asciidoc.1.css.html
|
154
198
|
- asciidoc/doc/latex-backend.txt
|
199
|
+
- asciidoc/doc/asciimathml.html
|
155
200
|
- asciidoc/doc/article.css-embedded.html
|
156
201
|
- asciidoc/doc/music-filter.txt
|
157
|
-
- asciidoc/doc/asciimath.txt
|
158
202
|
- asciidoc/doc/book-multi.html
|
159
203
|
- asciidoc/doc/book-multi.txt
|
160
204
|
- asciidoc/doc/asciidoc.1.css-embedded.html
|
@@ -168,42 +212,41 @@ files:
|
|
168
212
|
- asciidoc/doc/book.html
|
169
213
|
- asciidoc/doc/a2x.1.txt
|
170
214
|
- asciidoc/INSTALL.txt
|
215
|
+
- asciidoc/javascripts
|
171
216
|
- asciidoc/javascripts/LaTeXMathML.js
|
172
217
|
- asciidoc/javascripts/toc.js
|
173
218
|
- asciidoc/javascripts/ASCIIMathML.js
|
174
219
|
- asciidoc/BUGS.txt
|
175
220
|
- asciidoc/text.conf
|
176
221
|
- asciidoc/CHANGELOG.txt
|
177
|
-
- asciidoc/
|
222
|
+
- asciidoc/configure.ac
|
178
223
|
- asciidoc/INSTALL
|
179
224
|
- asciidoc/a2x
|
180
225
|
- asciidoc/README
|
181
226
|
- asciidoc/COPYING
|
182
227
|
- asciidoc/COPYRIGHT
|
228
|
+
- asciidoc/docbook-xsl
|
183
229
|
- asciidoc/docbook-xsl/fo.xsl
|
184
230
|
- asciidoc/docbook-xsl/manpage.xsl
|
185
231
|
- asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt
|
186
232
|
- asciidoc/docbook-xsl/chunked.xsl
|
187
233
|
- asciidoc/docbook-xsl/htmlhelp.xsl
|
234
|
+
- asciidoc/docbook-xsl/text.xsl
|
188
235
|
- asciidoc/docbook-xsl/common.xsl
|
189
|
-
- asciidoc/docbook-xsl/shaded-literallayout.patch
|
190
236
|
- asciidoc/docbook-xsl/xhtml.xsl
|
191
237
|
- asciidoc/html4.conf
|
238
|
+
- asciidoc/dblatex
|
192
239
|
- asciidoc/dblatex/asciidoc-dblatex.xsl
|
193
240
|
- asciidoc/dblatex/asciidoc-dblatex.sty
|
194
241
|
- asciidoc/dblatex/dblatex-readme.txt
|
195
|
-
- asciidoc/linuxdoc.conf
|
196
242
|
- asciidoc/lang-es.conf
|
197
|
-
- asciidoc/install.sh
|
198
243
|
- asciidoc/xhtml11.conf
|
244
|
+
- asciidoc/Makefile.in
|
199
245
|
- asciidoc/README.txt
|
200
|
-
- asciidoc/t.conf
|
201
246
|
- asciidoc/xhtml11-quirks.conf
|
202
247
|
- asciidoc/docbook.conf
|
203
|
-
- asciidoc/math.conf
|
204
248
|
- asciidoc/asciidoc.conf
|
205
249
|
- asciidoc/latex.conf
|
206
|
-
- asciidoc/xhtml-deprecated-css.conf
|
207
250
|
has_rdoc: false
|
208
251
|
homepage: http://github.com/FooBarWidget/mizuho/tree/master
|
209
252
|
post_install_message:
|
data/asciidoc/doc/asciimath.txt
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
ASCIIMathML Formulae
|
2
|
-
====================
|
3
|
-
|
4
|
-
http://www1.chapman.edu/~jipsen/mathml/asciimath.html[ASCIIMathML] is
|
5
|
-
a clever JavaScript written by Peter Jipsen that transforms
|
6
|
-
mathematical formulae written in plain text to standard mathematical
|
7
|
-
notation on an HTML page. See 'Appendix I' in the AsciiDoc User Guide
|
8
|
-
for more details.
|
9
|
-
|
10
|
-
The AsciiDoc `xhtml11` backend supports ASCIIMathML -- it links the
|
11
|
-
ASCIIMathML script and escapes ASCIIMathML delimiters and special
|
12
|
-
characters to yield valid XHTML. To use ASCIIMathML:
|
13
|
-
|
14
|
-
1. Include the `-a asciimath` command-line option when you run
|
15
|
-
`asciidoc(1)`.
|
16
|
-
2. Enclose ASCIIMathML formulas inside double-dollar passthroughs.
|
17
|
-
|
18
|
-
Here's the link:asciimath.txt[AsciiDoc source] that generated this
|
19
|
-
page.
|
20
|
-
|
21
|
-
.NOTE
|
22
|
-
- If the formulas don't appear to be correct you probably need to
|
23
|
-
install the correct math fonts (see the
|
24
|
-
http://www1.chapman.edu/~jipsen/mathml/asciimath.html[ASCIIMathML]
|
25
|
-
website for details).
|
26
|
-
- See the link:latexmath.html[LaTeXMathML page] if you prefer to use
|
27
|
-
LaTeX math formulas.
|
28
|
-
|
29
|
-
A list of formulas with a mixture of formatting:
|
30
|
-
|
31
|
-
- $$`[[a,b],[c,d]]((n),(k))`$$
|
32
|
-
- $$`x/x={(1,if x!=0),(text{undefined},if x=0):}`$$
|
33
|
-
- $$`d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h`$$
|
34
|
-
- Red [red]$$`sum_(i=1)\^n i=(n(n+1))/2`$$ and [blue]*bold
|
35
|
-
$$`int_0\^(pi/2) sinx\ dx=1`$$*
|
36
|
-
- [,,1.5]## 1.5 times normal size $$`(a,b]={x in RR : a < x <= b}`$$##
|
37
|
-
- A [,,2]##big## [blue]##blue## formula [blue,,2]$$`x^2+y_1+z_12^34`$$.
|
38
|
-
- [green,yellow,4]$$`x^2+y_1+z_12^34`$$
|
39
|
-
|
40
|
-
*********************************************************************
|
41
|
-
The first three terms factor to give
|
42
|
-
[red]$$$(x+b/(2a))^2=(b^2)/(4a^2)-c/a$$$. Now we take square roots on
|
43
|
-
both sides and get [red]$$$x+b/(2a)=+-sqrt((b^2)/(4a^2)-c/a)$$$.
|
44
|
-
Finally we move the [red]$$$b/(2a)$$$ to the right and simplify to get
|
45
|
-
the two solutions: [red]*$$`x_(1,2)=(-b+-sqrt(b^2-4ac))/(2a)`$$*.
|
46
|
-
*********************************************************************
|
47
|
-
|
@@ -1,32 +0,0 @@
|
|
1
|
-
diff -u fo.ORIG/param.xsl fo/param.xsl
|
2
|
-
--- fo.ORIG/param.xsl 2005-11-30 19:22:15.992409173 +1300
|
3
|
-
+++ fo/param.xsl 2005-11-30 11:25:40.000000000 +1300
|
4
|
-
@@ -669,6 +669,7 @@
|
5
|
-
</xsl:attribute-set>
|
6
|
-
<xsl:param name="segmentedlist.as.table" select="0"/>
|
7
|
-
<xsl:param name="shade.verbatim" select="0"/>
|
8
|
-
+<xsl:param name="shade.literallayout" select="0"/>
|
9
|
-
|
10
|
-
<xsl:attribute-set name="shade.verbatim.style">
|
11
|
-
<xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
|
12
|
-
diff -u fo.ORIG/verbatim.xsl fo/verbatim.xsl
|
13
|
-
--- fo.ORIG/verbatim.xsl 2005-11-30 19:22:15.944415115 +1300
|
14
|
-
+++ fo/verbatim.xsl 2005-11-30 11:26:12.000000000 +1300
|
15
|
-
@@ -105,7 +105,7 @@
|
16
|
-
<xsl:choose>
|
17
|
-
<xsl:when test="@class='monospaced'">
|
18
|
-
<xsl:choose>
|
19
|
-
- <xsl:when test="$shade.verbatim != 0">
|
20
|
-
+ <xsl:when test="$shade.literallayout != 0">
|
21
|
-
<fo:block id="{$id}"
|
22
|
-
white-space-collapse='false'
|
23
|
-
white-space-treatment='preserve'
|
24
|
-
@@ -128,7 +128,7 @@
|
25
|
-
</xsl:when>
|
26
|
-
<xsl:otherwise>
|
27
|
-
<xsl:choose>
|
28
|
-
- <xsl:when test="$shade.verbatim != 0">
|
29
|
-
+ <xsl:when test="$shade.literallayout != 0">
|
30
|
-
<fo:block id="{$id}"
|
31
|
-
wrap-option='no-wrap'
|
32
|
-
white-space-collapse='false'
|