review-peg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +36 -0
  3. data/.rubocop.yml +47 -0
  4. data/.rubocop_todo.yml +605 -0
  5. data/.travis.yml +18 -0
  6. data/COPYING +515 -0
  7. data/ChangeLog +2449 -0
  8. data/Dockerfile +22 -0
  9. data/Gemfile +6 -0
  10. data/README.rdoc +81 -0
  11. data/Rakefile +51 -0
  12. data/bin/review-catalog-converter-peg +129 -0
  13. data/bin/review-check-peg +169 -0
  14. data/bin/review-checkdep-peg +63 -0
  15. data/bin/review-compile-peg +202 -0
  16. data/bin/review-epubmaker-legacy-peg +1024 -0
  17. data/bin/review-epubmaker-peg +44 -0
  18. data/bin/review-index-peg +110 -0
  19. data/bin/review-init-peg +151 -0
  20. data/bin/review-pdfmaker-peg +18 -0
  21. data/bin/review-preproc-peg +131 -0
  22. data/bin/review-validate-peg +51 -0
  23. data/bin/review-vol-peg +100 -0
  24. data/debian/README.Debian +12 -0
  25. data/debian/README.source +5 -0
  26. data/debian/changelog +5 -0
  27. data/debian/compat +1 -0
  28. data/debian/control +22 -0
  29. data/debian/copyright +62 -0
  30. data/debian/docs +6 -0
  31. data/debian/manpage.1.ex +59 -0
  32. data/debian/patches/path.diff +91 -0
  33. data/debian/patches/series +1 -0
  34. data/debian/review.install +13 -0
  35. data/debian/review.links +4 -0
  36. data/debian/rules +13 -0
  37. data/debian/source/format +1 -0
  38. data/doc/NEWS.ja.md +350 -0
  39. data/doc/NEWS.md +354 -0
  40. data/doc/catalog.ja.md +53 -0
  41. data/doc/catalog.md +52 -0
  42. data/doc/format.ja.md +734 -0
  43. data/doc/format.md +746 -0
  44. data/doc/format_idg.ja.md +203 -0
  45. data/doc/quickstart.ja.md +222 -0
  46. data/doc/quickstart.md +252 -0
  47. data/doc/ruby-uuid/README +11 -0
  48. data/doc/ruby-uuid/README.ja +34 -0
  49. data/doc/sample.css +108 -0
  50. data/doc/sample.yml +238 -0
  51. data/lib/epubmaker.rb +24 -0
  52. data/lib/epubmaker/content.rb +93 -0
  53. data/lib/epubmaker/epubcommon.rb +424 -0
  54. data/lib/epubmaker/epubv2.rb +139 -0
  55. data/lib/epubmaker/epubv3.rb +222 -0
  56. data/lib/epubmaker/producer.rb +330 -0
  57. data/lib/lineinput.rb +107 -0
  58. data/lib/review.rb +3 -0
  59. data/lib/review/book.rb +43 -0
  60. data/lib/review/book/base.rb +401 -0
  61. data/lib/review/book/chapter.rb +100 -0
  62. data/lib/review/book/compilable.rb +184 -0
  63. data/lib/review/book/image_finder.rb +71 -0
  64. data/lib/review/book/index.rb +413 -0
  65. data/lib/review/book/page_metric.rb +47 -0
  66. data/lib/review/book/part.rb +54 -0
  67. data/lib/review/book/volume.rb +67 -0
  68. data/lib/review/builder.rb +452 -0
  69. data/lib/review/catalog.rb +52 -0
  70. data/lib/review/compiler.rb +5183 -0
  71. data/lib/review/compiler/literals_1_9.kpeg +22 -0
  72. data/lib/review/compiler/literals_1_9.rb +435 -0
  73. data/lib/review/configure.rb +64 -0
  74. data/lib/review/epubbuilder.rb +18 -0
  75. data/lib/review/epubmaker.rb +480 -0
  76. data/lib/review/ewbbuilder.rb +381 -0
  77. data/lib/review/exception.rb +21 -0
  78. data/lib/review/extentions.rb +4 -0
  79. data/lib/review/extentions/array.rb +25 -0
  80. data/lib/review/extentions/object.rb +9 -0
  81. data/lib/review/extentions/string.rb +33 -0
  82. data/lib/review/htmlbuilder.rb +1166 -0
  83. data/lib/review/htmllayout.rb +41 -0
  84. data/lib/review/htmltoc.rb +45 -0
  85. data/lib/review/htmlutils.rb +90 -0
  86. data/lib/review/i18n.rb +96 -0
  87. data/lib/review/i18n.yml +169 -0
  88. data/lib/review/idgxmlbuilder.rb +1233 -0
  89. data/lib/review/inaobuilder.rb +357 -0
  90. data/lib/review/latexbuilder.rb +941 -0
  91. data/lib/review/latexindex.rb +35 -0
  92. data/lib/review/latexutils.rb +95 -0
  93. data/lib/review/layout.tex.erb +340 -0
  94. data/lib/review/lineinput.rb +17 -0
  95. data/lib/review/location.rb +24 -0
  96. data/lib/review/makerhelper.rb +67 -0
  97. data/lib/review/markdownbuilder.rb +339 -0
  98. data/lib/review/node.rb +288 -0
  99. data/lib/review/pdfmaker.rb +332 -0
  100. data/lib/review/preprocessor.rb +530 -0
  101. data/lib/review/review.kpeg +745 -0
  102. data/lib/review/sec_counter.rb +69 -0
  103. data/lib/review/template.rb +21 -0
  104. data/lib/review/textbuilder.rb +17 -0
  105. data/lib/review/textutils.rb +16 -0
  106. data/lib/review/tocparser.rb +348 -0
  107. data/lib/review/tocprinter.rb +205 -0
  108. data/lib/review/topbuilder.rb +796 -0
  109. data/lib/review/unfold.rb +138 -0
  110. data/lib/review/version.rb +3 -0
  111. data/lib/uuid.rb +312 -0
  112. data/review.gemspec +32 -0
  113. data/templates/html/layout-html5.html.erb +17 -0
  114. data/templates/html/layout-xhtml1.html.erb +20 -0
  115. data/templates/ncx/epubv2.ncx.erb +11 -0
  116. data/templates/opf/epubv2.opf.erb +21 -0
  117. data/templates/opf/epubv3.opf.erb +18 -0
  118. data/templates/xml/container.xml.erb +6 -0
  119. data/test/CHAPS +2 -0
  120. data/test/assets/test.xml.erb +3 -0
  121. data/test/assets/test_template.tex +255 -0
  122. data/test/assets/test_template_backmatter.tex +32 -0
  123. data/test/bib.re +13 -0
  124. data/test/book_test_helper.rb +35 -0
  125. data/test/sample-book/README.md +7 -0
  126. data/test/sample-book/src/Rakefile +58 -0
  127. data/test/sample-book/src/_cover.html +3 -0
  128. data/test/sample-book/src/catalog.yml +10 -0
  129. data/test/sample-book/src/ch01.re +71 -0
  130. data/test/sample-book/src/ch02.re +3 -0
  131. data/test/sample-book/src/config.yml +186 -0
  132. data/test/sample-book/src/images/ch01-imgsample.jpg +0 -0
  133. data/test/sample-book/src/images/cover.jpg +0 -0
  134. data/test/sample-book/src/preface.re +15 -0
  135. data/test/sample-book/src/sty/jumoline.sty +310 -0
  136. data/test/sample-book/src/sty/reviewmacro.sty +39 -0
  137. data/test/sample-book/src/style.css +251 -0
  138. data/test/sample-book/src/vendor/jumoline/README +29 -0
  139. data/test/sample-book/src/vendor/jumoline/jumoline.dtx +2988 -0
  140. data/test/sample-book/src/vendor/jumoline/jumoline.ins +6 -0
  141. data/test/test.re +43 -0
  142. data/test/test_book.rb +556 -0
  143. data/test/test_book_chapter.rb +280 -0
  144. data/test/test_book_part.rb +54 -0
  145. data/test/test_builder.rb +80 -0
  146. data/test/test_catalog.rb +119 -0
  147. data/test/test_catalog_converter_cmd.rb +73 -0
  148. data/test/test_compiler.rb +92 -0
  149. data/test/test_configure.rb +50 -0
  150. data/test/test_epub3maker.rb +529 -0
  151. data/test/test_epubmaker.rb +569 -0
  152. data/test/test_epubmaker_cmd.rb +40 -0
  153. data/test/test_helper.rb +92 -0
  154. data/test/test_htmlbuilder.rb +1114 -0
  155. data/test/test_htmltoc.rb +32 -0
  156. data/test/test_htmlutils.rb +50 -0
  157. data/test/test_i18n.rb +180 -0
  158. data/test/test_idgxmlbuilder.rb +608 -0
  159. data/test/test_image_finder.rb +82 -0
  160. data/test/test_inaobuilder.rb +245 -0
  161. data/test/test_index.rb +174 -0
  162. data/test/test_latexbuilder.rb +732 -0
  163. data/test/test_lineinput.rb +182 -0
  164. data/test/test_makerhelper.rb +66 -0
  165. data/test/test_markdownbuilder.rb +125 -0
  166. data/test/test_pdfmaker.rb +171 -0
  167. data/test/test_pdfmaker_cmd.rb +40 -0
  168. data/test/test_preprocessor.rb +23 -0
  169. data/test/test_review_ext.rb +31 -0
  170. data/test/test_template.rb +26 -0
  171. data/test/test_textutils.rb +32 -0
  172. data/test/test_topbuilder.rb +291 -0
  173. data/test/test_uuid.rb +157 -0
  174. metadata +357 -0
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env ruby
2
+ # Copyright (c) 2010-2014 Kenshi Muto
3
+ #
4
+ # This program is free software
5
+ # You can distribute or modify this program under the terms of
6
+ # the GNU LGPL, Lesser General Public License version 2.1.
7
+ # For details of the GNU LGPL, see the file "COPYING".
8
+ #
9
+
10
+ # simple validator for Re:VIEW
11
+
12
+ block = nil
13
+ maxcolcount = 0
14
+ colcount = 0
15
+ ln = 0
16
+
17
+ ARGF.each {|line|
18
+ ln += 1
19
+ if line =~ /\A\/\/([a-z]+).+\{/
20
+ # block
21
+ _block = $1
22
+ puts "#{ln}: block #{_block} started, but previous block #{block} didn't close yet." unless block.nil?
23
+ block = _block
24
+ elsif line =~ /\A\/\/\}/
25
+ puts "#{ln}: block seen ended, but not opened." if block.nil?
26
+ block = nil
27
+ maxcolcount = 0
28
+ colcount = 0
29
+ elsif line =~ /\A(\d+\.)\s+/
30
+ # number
31
+ unless ["list", "emlist", "listnum", "emlistnum", "cmd", "image", "table"].include?(block)
32
+ puts "#{ln}: found $1 without the head space. Is it correct?"
33
+ end
34
+ elsif line =~ /\A\*\s+/
35
+ # itemize
36
+ unless ["list", "emlist", "listnum", "emlistnum", "cmd", "image", "table"].include?(block)
37
+ puts "#{ln}: found '*' without the head space. Is it correct?"
38
+ end
39
+ elsif line =~ /\A\s+(\d+\.)\s+/ && line =~ /\A\s+\*\s+/
40
+ unless ["list", "emlist", "listnum", "emlistnum", "cmd", "image", "table"].include?(block)
41
+ puts "#{ln}: found itemized list or numbered list in #{block}. Is it correct?"
42
+ end
43
+ elsif block == "table"
44
+ if line !~ /\A\-\-\-\-\-/
45
+ # table
46
+ colcount = line.split("\t").size
47
+ maxcolcount = colcount if maxcolcount == 0
48
+ puts "#{ln}: the number of table columns seems mismatch. (#{maxcolcount} != #{colcount})" if colcount != maxcolcount
49
+ end
50
+ end
51
+ }
@@ -0,0 +1,100 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # $Id: review-vol 3901 2008-02-11 20:04:59Z aamine $
4
+ #
5
+ # Copyright (c) 2003-2014 Minero Aoki
6
+ #
7
+ # This program is free software.
8
+ # You can distribute or modify this program under the terms of
9
+ # the GNU LGPL, Lesser General Public License version 2.1.
10
+ # For details of the GNU LGPL, see the file "COPYING".
11
+ #
12
+
13
+ require 'pathname'
14
+
15
+ bindir = Pathname.new(__FILE__).realpath.dirname
16
+ $LOAD_PATH.unshift((bindir + '../lib').realpath)
17
+
18
+ require 'review'
19
+ require 'optparse'
20
+
21
+ include ReVIEW::TextUtils
22
+
23
+ def main
24
+ @config = ReVIEW::Configure.values
25
+
26
+ part_sensitive = false
27
+ basedir = nil
28
+ yamlfile = nil
29
+ opts = OptionParser.new
30
+ opts.version = ReVIEW::VERSION
31
+ opts.on('--yaml=YAML', 'Read configurations from YAML file.') do |yaml|
32
+ yamlfile = yaml
33
+ end
34
+ opts.on('-P', '--part-sensitive', 'Prints volume of each parts.') {
35
+ part_sensitive = true
36
+ }
37
+ opts.on('--directory=DIR', 'Compile all chapters in DIR.') {|path|
38
+ basedir = path
39
+ }
40
+ opts.on('--help', 'Print this message and quit') {
41
+ puts opts.help
42
+ exit 0
43
+ }
44
+ begin
45
+ opts.parse!
46
+ rescue OptionParser::ParseError => err
47
+ $stderr.puts err.message
48
+ $stderr.puts opts.help
49
+ exit 1
50
+ end
51
+
52
+ book = basedir ? ReVIEW::Book.load(basedir) : ReVIEW::Book::Base.load
53
+ book.config = @config
54
+ if yamlfile
55
+ book.load_config(yamlfile)
56
+ end
57
+
58
+ if part_sensitive
59
+ sep = ""
60
+ book.each_part do |part|
61
+ print sep; sep = "\n"
62
+ puts "Part #{part.number} #{part.name}" if part.number
63
+ part.each_chapter do |chap|
64
+ print_chapter_volume chap
65
+ end
66
+ puts ' --------------------'
67
+ print_volume part.volume
68
+ end
69
+ puts '============================='
70
+ print_volume book.volume #puts "Total #{book.volume}"
71
+ else
72
+ book.each_chapter do |chap|
73
+ print_chapter_volume chap
74
+ end
75
+ puts '============================='
76
+ print_volume book.volume #puts "Total #{book.volume}"
77
+ end
78
+ rescue ReVIEW::ApplicationError, Errno::ENOENT => err
79
+ raise if $DEBUG
80
+ $stderr.puts "#{File.basename($0)}: #{err.message}"
81
+ exit 1
82
+ end
83
+
84
+ def print_chapter_volume(chap)
85
+ vol = chap.volume
86
+ title = chap.title
87
+ printf "%s %3dKB %6dC %5dL %3dP %s %-s\n",
88
+ chapnumstr(chap.number), vol.kbytes, vol.chars, vol.lines, vol.page,
89
+ "#{chap.name} ".ljust(25, '.'), title
90
+ end
91
+
92
+ def print_volume(vol)
93
+ printf " %3dKB %6dC %5dL %3dP\n", vol.kbytes, vol.chars, vol.lines, vol.page
94
+ end
95
+
96
+ def chapnumstr(n)
97
+ n ? sprintf('%2d.', n) : ' '
98
+ end
99
+
100
+ main
@@ -0,0 +1,12 @@
1
+ review for Debian
2
+ -----------------
3
+
4
+ review-epubmaker, is EPUB builder, needs zip package. If you'd like to
5
+ use MathML in HTML, install libmathml-ruby also.
6
+ review-pdfmaker, is PDF builder, needs ptexlive environment.
7
+ Although ptexlive isn't packaged yet, you can take experimental packages
8
+ from http://www1.pm.tokushima-u.ac.jp/~kohda/tex/ptexlive.html
9
+ Plus, review-pdfmaker uses additional style;
10
+ - jumoline.sty: http://www.para.media.kyoto-u.ac.jp/latex/jumoline.tar.gz
11
+
12
+ -- Kenshi Muto <kmuto@debian.org> Tue, 23 Nov 2010 17:35:59 +0900
@@ -0,0 +1,5 @@
1
+ review for Debian
2
+ -----------------
3
+
4
+ Rakefile focuses test and gem, not Debian packaging.
5
+ Test needs some gem files are not yet included in Debian pool.
data/debian/changelog ADDED
@@ -0,0 +1,5 @@
1
+ review (1.0+20120212) unstable; urgency=low
2
+
3
+ * Initial Release. (closes: #XXXX)
4
+
5
+ -- Kenshi Muto <kmuto@debian.org> Sun, 12 Feb 2012 15:38:55 +0900
data/debian/compat ADDED
@@ -0,0 +1 @@
1
+ 7
data/debian/control ADDED
@@ -0,0 +1,22 @@
1
+ Source: review
2
+ Section: text
3
+ Priority: optional
4
+ Maintainer: Kenshi Muto <kmuto@debian.org>
5
+ Build-Depends: debhelper (>= 7.0.50~), quilt (>= 0.46-7~)
6
+ Standards-Version: 3.9.1
7
+ Homepage: http://github.com/kmuto/review
8
+ Vcs-Git: git://github.com/kmuto/review.git
9
+
10
+ Package: review
11
+ Architecture: all
12
+ Depends: ${shlibs:Depends}, ${misc:Depends}, ruby
13
+ Recommends: zip
14
+ Suggests: ptex-bin, okumura-clsfiles, libmathml-ruby
15
+ Description: easy-to-use digital publishing system for Japanese books and ebooks
16
+ Re:VIEW is a digital publishing system for books and ebooks.
17
+ It is aimed professional Japanese editorial use.
18
+ .
19
+ Re:VIEW generates HTML, LaTeX, plain text, and Adobe InDesign XML
20
+ from a text file with simple and extensible tags.
21
+ .
22
+ This package provides the builders for EPUB and PDF.
data/debian/copyright ADDED
@@ -0,0 +1,62 @@
1
+ This work was packaged for Debian by:
2
+
3
+ Kenshi Muto <kmuto@debian.org> on Tue, 23 Nov 2010 17:35:59 +0900
4
+
5
+ It was downloaded from:
6
+
7
+ git://github.com/kmuto/review
8
+
9
+ Upstream Author(s):
10
+
11
+ Minero Aoki, Kenshi Muto,
12
+ Masayoshi Takahashi, and
13
+ Masanori KADO <kdmsnr@gmail.com>.
14
+
15
+ Copyright:
16
+
17
+ Copyright (C) 2006-2012 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
18
+ Masanori KADO.
19
+
20
+ For lib/uuid.rb:
21
+ Copyright(c) 2005 URABE, Shyouhei
22
+
23
+ License:
24
+
25
+ This program is free software: you can redistribute it and/or modify
26
+ it under the terms of the GNU Lesser General Public License as published by
27
+ the Free Software Foundation, version 2.1 of the License.
28
+
29
+ This package is distributed in the hope that it will be useful,
30
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
31
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
+ GNU Lesser General Public License for more details.
33
+
34
+ You should have received a copy of the GNU Lesser General Public License
35
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
36
+
37
+ On Debian systems, the complete text of the GNU Lesser General
38
+ Public License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".
39
+
40
+ lib/uuid.rb:
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ of this code, to deal in the code without restriction, including without
43
+ limitation the rights to use, copy, modify, merge, publish, distribute,
44
+ sublicense, and/or sell copies of the code, and to permit persons to whom the
45
+ code is furnished to do so, subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be
48
+ included in all copies or substantial portions of the code.
49
+
50
+ THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
+ AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
+ OUT OF OR IN CONNECTION WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE
56
+ CODE.
57
+
58
+ The Debian packaging is:
59
+
60
+ Copyright (C) 2010 Kenshi Muto <kmuto@debian.org>
61
+
62
+ and is licensed under the GNU Lesser GPL version 2.1, see above.
data/debian/docs ADDED
@@ -0,0 +1,6 @@
1
+ README.rdoc
2
+ ChangeLog
3
+ doc/format.rdoc
4
+ doc/quickstart.rdoc
5
+ doc/sample.css
6
+ doc/sample.yml
@@ -0,0 +1,59 @@
1
+ .\" Hey, EMACS: -*- nroff -*-
2
+ .\" First parameter, NAME, should be all caps
3
+ .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4
+ .\" other parameters are allowed: see man(7), man(1)
5
+ .TH REVIEW SECTION "November 23, 2010"
6
+ .\" Please adjust this date whenever revising the manpage.
7
+ .\"
8
+ .\" Some roff macros, for reference:
9
+ .\" .nh disable hyphenation
10
+ .\" .hy enable hyphenation
11
+ .\" .ad l left justify
12
+ .\" .ad b justify to both left and right margins
13
+ .\" .nf disable filling
14
+ .\" .fi enable filling
15
+ .\" .br insert line break
16
+ .\" .sp <n> insert n+1 empty lines
17
+ .\" for manpage-specific macros, see man(7)
18
+ .SH NAME
19
+ review \- program to do something
20
+ .SH SYNOPSIS
21
+ .B review
22
+ .RI [ options ] " files" ...
23
+ .br
24
+ .B bar
25
+ .RI [ options ] " files" ...
26
+ .SH DESCRIPTION
27
+ This manual page documents briefly the
28
+ .B review
29
+ and
30
+ .B bar
31
+ commands.
32
+ .PP
33
+ .\" TeX users may be more comfortable with the \fB<whatever>\fP and
34
+ .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
35
+ .\" respectively.
36
+ \fBreview\fP is a program that...
37
+ .SH OPTIONS
38
+ These programs follow the usual GNU command line syntax, with long
39
+ options starting with two dashes (`-').
40
+ A summary of options is included below.
41
+ For a complete description, see the Info files.
42
+ .TP
43
+ .B \-h, \-\-help
44
+ Show summary of options.
45
+ .TP
46
+ .B \-v, \-\-version
47
+ Show version of program.
48
+ .SH SEE ALSO
49
+ .BR bar (1),
50
+ .BR baz (1).
51
+ .br
52
+ The programs are documented fully by
53
+ .IR "The Rise and Fall of a Fooish Bar" ,
54
+ available via the Info system.
55
+ .SH AUTHOR
56
+ review was written by <upstream author>.
57
+ .PP
58
+ This manual page was written by Kenshi Muto <kmuto@debian.org>,
59
+ for the Debian project (and may be used by others).
@@ -0,0 +1,91 @@
1
+ indicate /usr/share/review as lib path.Index: review-0.6+20101123/bin/review-check
2
+ ===================================================================
3
+ --- review-0.6+20101123.orig/bin/review-check 2010-11-23 21:08:35.525325930 +0900
4
+ +++ review-0.6+20101123/bin/review-check 2010-11-23 21:10:00.049309314 +0900
5
+ @@ -13,7 +13,7 @@
6
+ require 'pathname'
7
+
8
+ bindir = Pathname.new(__FILE__).realpath.dirname
9
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
10
+ +$LOAD_PATH.unshift("/usr/share/review")
11
+
12
+ require 'review/book'
13
+ require 'optparse'
14
+ Index: review-0.6+20101123/bin/review-checkdep
15
+ ===================================================================
16
+ --- review-0.6+20101123.orig/bin/review-checkdep 2010-11-23 21:08:35.537304196 +0900
17
+ +++ review-0.6+20101123/bin/review-checkdep 2010-11-23 21:09:46.932891759 +0900
18
+ @@ -13,7 +13,7 @@
19
+ require 'pathname'
20
+
21
+ bindir = Pathname.new(__FILE__).realpath.dirname
22
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
23
+ +$LOAD_PATH.unshift("/usr/share/review")
24
+
25
+ PREDEF_FILE = 'PREDEF'
26
+
27
+ Index: review-0.6+20101123/bin/review-compile
28
+ ===================================================================
29
+ --- review-0.6+20101123.orig/bin/review-compile 2010-11-23 21:08:35.545307445 +0900
30
+ +++ review-0.6+20101123/bin/review-compile 2010-11-23 21:10:11.464806373 +0900
31
+ @@ -13,7 +13,7 @@
32
+ require 'pathname'
33
+
34
+ bindir = Pathname.new(__FILE__).realpath.dirname
35
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
36
+ +$LOAD_PATH.unshift("/usr/share/review")
37
+
38
+ require 'review/compiler'
39
+ require 'review/book'
40
+ Index: review-0.6+20101123/bin/review-epubmaker
41
+ ===================================================================
42
+ --- review-0.6+20101123.orig/bin/review-epubmaker 2010-11-23 21:08:35.557307851 +0900
43
+ +++ review-0.6+20101123/bin/review-epubmaker 2010-11-23 21:10:24.345309100 +0900
44
+ @@ -18,7 +18,7 @@
45
+ require 'pathname'
46
+
47
+ bindir = Pathname.new(__FILE__).realpath.dirname
48
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
49
+ +$LOAD_PATH.unshift("/usr/share/review")
50
+
51
+ require 'uuid'
52
+
53
+ Index: review-0.6+20101123/bin/review-index
54
+ ===================================================================
55
+ --- review-0.6+20101123.orig/bin/review-index 2010-11-23 21:08:35.565304467 +0900
56
+ +++ review-0.6+20101123/bin/review-index 2010-11-23 21:10:35.780809275 +0900
57
+ @@ -13,7 +13,7 @@
58
+ require 'pathname'
59
+
60
+ bindir = Pathname.new(__FILE__).realpath.dirname
61
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
62
+ +$LOAD_PATH.unshift("/usr/share/review")
63
+
64
+ require 'review/book'
65
+ require 'review/tocparser'
66
+ Index: review-0.6+20101123/bin/review-preproc
67
+ ===================================================================
68
+ --- review-0.6+20101123.orig/bin/review-preproc 2010-11-23 21:08:35.577305709 +0900
69
+ +++ review-0.6+20101123/bin/review-preproc 2010-11-23 21:10:46.252829939 +0900
70
+ @@ -14,7 +14,7 @@
71
+ require 'pathname'
72
+
73
+ bindir = Pathname.new(__FILE__).realpath.dirname
74
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
75
+ +$LOAD_PATH.unshift("/usr/share/review")
76
+
77
+ require 'review/preprocessor'
78
+ require 'review/unfold'
79
+ Index: review-0.6+20101123/bin/review-vol
80
+ ===================================================================
81
+ --- review-0.6+20101123.orig/bin/review-vol 2010-11-23 21:08:35.589305906 +0900
82
+ +++ review-0.6+20101123/bin/review-vol 2010-11-23 21:10:56.212818665 +0900
83
+ @@ -13,7 +13,7 @@
84
+ require 'pathname'
85
+
86
+ bindir = Pathname.new(__FILE__).realpath.dirname
87
+ -$LOAD_PATH.unshift((bindir + '../lib').realpath)
88
+ +$LOAD_PATH.unshift("/usr/share/review")
89
+
90
+ require 'review/book'
91
+ require 'review/exception'
@@ -0,0 +1 @@
1
+ path.diff
@@ -0,0 +1,13 @@
1
+ bin/review-check usr/bin
2
+ bin/review-compile usr/bin
3
+ #bin/review-checkdep usr/bin
4
+ bin/review-epubmaker usr/bin
5
+ bin/review-index usr/bin
6
+ bin/review-pdfmaker usr/bin
7
+ bin/review-preproc usr/bin
8
+ bin/review-validate usr/bin
9
+ bin/review-vol usr/bin
10
+ lib/lineinput.rb usr/share/review
11
+ lib/review.rb usr/share/review
12
+ lib/uuid.rb usr/share/review
13
+ lib/review usr/share/review