review 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -0
  3. data/ChangeLog +100 -0
  4. data/README.rdoc +11 -12
  5. data/Rakefile +6 -2
  6. data/bin/review-check +1 -1
  7. data/bin/review-compile +13 -4
  8. data/bin/review-epubmaker +172 -24
  9. data/bin/review-epubmaker-ng +8 -161
  10. data/bin/review-index +1 -1
  11. data/bin/review-init +17 -5
  12. data/bin/review-pdfmaker +40 -19
  13. data/bin/review-preproc +1 -1
  14. data/bin/review-validate +2 -2
  15. data/bin/review-vol +1 -1
  16. data/debian/control +2 -2
  17. data/doc/format.rdoc +23 -6
  18. data/doc/format_idg.rdoc +3 -3
  19. data/doc/libepubmaker/config.yaml +163 -0
  20. data/doc/quickstart.rdoc +27 -27
  21. data/doc/sample.yaml +10 -5
  22. data/lib/epubmaker.rb +2 -5
  23. data/lib/epubmaker/content.rb +9 -6
  24. data/lib/epubmaker/epubv2.rb +233 -109
  25. data/lib/epubmaker/epubv3.rb +83 -119
  26. data/lib/epubmaker/producer.rb +50 -20
  27. data/lib/epubmaker/resource.rb +22 -8
  28. data/lib/review/book/base.rb +1 -0
  29. data/lib/review/book/chapter.rb +2 -2
  30. data/lib/review/book/compilable.rb +1 -1
  31. data/lib/review/book/index.rb +33 -27
  32. data/lib/review/book/parameters.rb +3 -2
  33. data/lib/review/book/part.rb +1 -1
  34. data/lib/review/builder.rb +10 -42
  35. data/lib/review/compiler.rb +1 -1
  36. data/lib/review/configure.rb +3 -3
  37. data/lib/review/epubmaker.rb +428 -0
  38. data/lib/review/htmlbuilder.rb +45 -95
  39. data/lib/review/htmlutils.rb +2 -0
  40. data/lib/review/i18n.yaml +25 -0
  41. data/lib/review/idgxmlbuilder.rb +11 -9
  42. data/lib/review/inaobuilder.rb +1 -1
  43. data/lib/review/latexbuilder.rb +7 -6
  44. data/lib/review/latexutils.rb +6 -0
  45. data/lib/review/makerhelper.rb +4 -2
  46. data/lib/review/markdownbuilder.rb +8 -0
  47. data/lib/review/sec_counter.rb +71 -0
  48. data/lib/review/topbuilder.rb +0 -1
  49. data/lib/review/version.rb +2 -2
  50. data/review.gemspec +4 -4
  51. data/test/sample-book/README.md +2 -2
  52. data/test/sample-book/src/Rakefile +2 -2
  53. data/test/sample-book/src/config.yml +4 -4
  54. data/test/sample-book/src/images/cover.jpg +0 -0
  55. data/test/sample-book/src/sty/{samplemacro.sty → reviewmacro.sty} +1 -1
  56. data/test/test_book_parameter.rb +1 -1
  57. data/test/test_epubmaker.rb +77 -15
  58. data/test/test_epubmaker_cmd.rb +11 -7
  59. data/test/test_helper.rb +7 -0
  60. data/test/test_htmlbuilder.rb +39 -6
  61. data/test/test_idgxmlbuilder.rb +14 -2
  62. data/test/test_inaobuilder.rb +2 -1
  63. data/test/test_latexbuilder.rb +23 -2
  64. data/test/test_makerhelper.rb +19 -3
  65. data/test/test_markdownbuilder.rb +35 -0
  66. data/test/test_pdfmaker_cmd.rb +11 -7
  67. data/test/test_topbuilder.rb +36 -2
  68. metadata +18 -18
  69. data/VERSION +0 -1
  70. data/doc/libepubmaker/sample.yaml +0 -90
@@ -16,8 +16,7 @@ class IDGXMLBuidlerTest < Test::Unit::TestCase
16
16
  "inencoding" => "UTF-8",
17
17
  "outencoding" => "UTF-8",
18
18
  "nolf" => true,
19
- "tableopt" => "10",
20
- "subdirmode" => nil,
19
+ "tableopt" => "10"
21
20
  }
22
21
  ReVIEW.book.param = @param
23
22
  @compiler = ReVIEW::Compiler.new(@builder)
@@ -519,6 +518,19 @@ EOS
519
518
  ul_helper(src, expect.chomp)
520
519
  end
521
520
 
521
+ def test_ol
522
+ src =<<-EOS
523
+ 3. AAA
524
+ 3. BBB
525
+ EOS
526
+
527
+ expect =<<-EOS
528
+ <?xml version="1.0" encoding="UTF-8"?>
529
+ <doc xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"><ol><li aid:pstyle="ol-item" olnum="1" num="3">AAA</li><li aid:pstyle="ol-item" olnum="2" num="3">BBB</li></ol>
530
+ EOS
531
+ ol_helper(src, expect.chomp)
532
+ end
533
+
522
534
  def test_inline_raw0
523
535
  assert_equal "normal", @builder.inline_raw("normal")
524
536
  end
@@ -12,7 +12,6 @@ class INAOBuidlerTest < Test::Unit::TestCase
12
12
  "secnolevel" => 2, # for IDGXMLBuilder, HTMLBuilder
13
13
  "inencoding" => "UTF-8",
14
14
  "outencoding" => "UTF-8",
15
- "subdirmode" => nil,
16
15
  "stylesheet" => nil, # for HTMLBuilder
17
16
  }
18
17
  ReVIEW.book.param = param
@@ -40,8 +39,10 @@ class INAOBuidlerTest < Test::Unit::TestCase
40
39
 
41
40
  ====[column]コラム見出し
42
41
  本文コラム
42
+
43
43
  ===== コラム小見出し
44
44
  本文コラム
45
+
45
46
  ====[/column]
46
47
 
47
48
  == 箇条書き
@@ -3,6 +3,7 @@ require 'test_helper'
3
3
  require 'review/compiler'
4
4
  require 'review/book'
5
5
  require 'review/latexbuilder'
6
+ require 'review/i18n'
6
7
 
7
8
  class LATEXBuidlerTest < Test::Unit::TestCase
8
9
  include ReVIEW
@@ -14,7 +15,6 @@ class LATEXBuidlerTest < Test::Unit::TestCase
14
15
  "toclevel" => 2,
15
16
  "inencoding" => "UTF-8",
16
17
  "outencoding" => "UTF-8",
17
- "subdirmode" => nil,
18
18
  "stylesheet" => nil, # for EPUBBuilder
19
19
  }
20
20
  ReVIEW.book.param = @param
@@ -196,6 +196,11 @@ class LATEXBuidlerTest < Test::Unit::TestCase
196
196
  assert_equal %Q|test 「1.1.1 te\\textunderscore{}st」 test2|, ret
197
197
  end
198
198
 
199
+ def test_inline_ruby_comma
200
+ ret = @builder.compile_inline("@<ruby>{foo\\, bar\\, buz,フー・バー・バズ}")
201
+ assert_equal "\\ruby{foo, bar, buz}{フー・バー・バズ}", ret
202
+ end
203
+
199
204
  def test_inline_uchar
200
205
  ret = @builder.compile_inline("test @<uchar>{2460} test2")
201
206
  assert_equal %Q|test \\UTF{2460} test2|, ret
@@ -391,7 +396,7 @@ class LATEXBuidlerTest < Test::Unit::TestCase
391
396
  end
392
397
 
393
398
  @builder.bibpaper(["a", "b"], "samplebib", "sample bib @<b>{bold}")
394
- assert_equal %Q|[1] sample bib \\textbf{bold}\n\\label{bib:samplebib}\n\nab\n|, @builder.raw_result
399
+ assert_equal %Q|[1] sample bib \\textbf{bold}\n\\label{bib:samplebib}\n\nab\n\n|, @builder.raw_result
395
400
  end
396
401
 
397
402
  def test_bibpaper_without_body
@@ -571,6 +576,22 @@ EOS
571
576
  ul_helper(src, expect)
572
577
  end
573
578
 
579
+ def test_ol
580
+ src =<<-EOS
581
+ 3. AAA
582
+ 3. BBB
583
+ EOS
584
+
585
+ expect =<<-EOS
586
+
587
+ \\begin{enumerate}
588
+ \\item AAA
589
+ \\item BBB
590
+ \\end{enumerate}
591
+ EOS
592
+ ol_helper(src, expect)
593
+ end
594
+
574
595
  def test_ol_with_bracket
575
596
  src =<<-EOS
576
597
  1. AAA
@@ -30,10 +30,10 @@ class MakerHelperTest < Test::Unit::TestCase
30
30
  image_files = MakerHelper.copy_images_to_dir(@tmpdir1, @tmpdir2)
31
31
 
32
32
  types.each do |type|
33
- assert File.exists?("#{@tmpdir2}/foo.#{type}"), "Copying #{type} file failed"
33
+ assert File.exist?("#{@tmpdir2}/foo.#{type}"), "Copying #{type} file failed"
34
34
  assert image_files.include?("#{@tmpdir1}/foo.#{type}")
35
35
  end
36
- assert File.exists?("#{@tmpdir2}/subdir/foo.png"), "Copying a image file in a subdirectory"
36
+ assert File.exist?("#{@tmpdir2}/subdir/foo.png"), "Copying a image file in a subdirectory"
37
37
  assert image_files.include?("#{@tmpdir1}/subdir/foo.png")
38
38
  end
39
39
 
@@ -43,8 +43,24 @@ class MakerHelperTest < Test::Unit::TestCase
43
43
  image_files = MakerHelper.copy_images_to_dir(@tmpdir1, @tmpdir2,
44
44
  :convert => {:eps => :png})
45
45
 
46
- assert File.exists?("#{@tmpdir2}/foo.eps.png"), "EPS to PNG conversion failed"
46
+ assert File.exist?("#{@tmpdir2}/foo.eps.png"), "EPS to PNG conversion failed"
47
47
  assert image_files.include?("#{@tmpdir1}/foo.eps.png")
48
48
  end
49
49
 
50
+ def test_copy_images_to_dir_with_exts
51
+ types = %w{png gif jpg jpeg svg pdf eps}
52
+ types4epub = %w{png gif jpg jpeg svg}
53
+ types.each do |type|
54
+ touch_file("#{@tmpdir1}/foo.#{type}")
55
+ end
56
+ image_files = MakerHelper.copy_images_to_dir(@tmpdir1, @tmpdir2, :exts=>types4epub)
57
+
58
+ types4epub.each do |type|
59
+ assert image_files.include?("#{@tmpdir1}/foo.#{type}"), "foo.#{type} is not included"
60
+ end
61
+ (types - types4epub).each do |type|
62
+ assert !image_files.include?("#{@tmpdir1}/foo.#{type}"), "foo.#{type} is included"
63
+ end
64
+ end
65
+
50
66
  end
@@ -0,0 +1,35 @@
1
+ # encoding: utf-8
2
+
3
+ require 'test_helper'
4
+ require 'review/compiler'
5
+ require 'review/book'
6
+ require 'review/htmlbuilder'
7
+ require 'review/i18n'
8
+
9
+ class MARKDOWNBuilderTest < Test::Unit::TestCase
10
+ include ReVIEW
11
+
12
+ def setup
13
+ @builder = MARKDOWNBuilder.new()
14
+ @param = {
15
+ "secnolevel" => 2, # for IDGXMLBuilder, HTMLBuilder
16
+ "inencoding" => "UTF-8",
17
+ "outencoding" => "UTF-8",
18
+ "stylesheet" => nil, # for HTMLBuilder
19
+ }
20
+ ReVIEW.book.param = @param
21
+ @compiler = ReVIEW::Compiler.new(@builder)
22
+ @chapter = Book::Chapter.new(Book::Base.new(nil), 1, '-', nil, StringIO.new)
23
+ location = Location.new(nil, nil)
24
+ @builder.bind(@compiler, @chapter, location)
25
+ end
26
+
27
+ def test_inline_em
28
+ assert_equal "test*foo*abc", @builder.compile_inline("test@<em>{foo}abc")
29
+ end
30
+
31
+ def test_inline_strong
32
+ assert_equal "test**foo**abc", @builder.compile_inline("test@<strong>{foo}abc")
33
+ end
34
+
35
+ end
@@ -4,6 +4,7 @@ require 'test_helper'
4
4
  require 'tmpdir'
5
5
  require 'fileutils'
6
6
  require 'yaml'
7
+ require 'rbconfig'
7
8
 
8
9
  REVIEW_PDFMAKER = File.expand_path('../bin/review-pdfmaker', File.dirname(__FILE__))
9
10
 
@@ -23,14 +24,17 @@ class PDFMakerCmdTest < Test::Unit::TestCase
23
24
  end
24
25
 
25
26
  def test_pdfmaker_cmd
26
- config = prepare_samplebook(@tmpdir1)
27
- builddir = @tmpdir1 + "/" + config['bookname'] + '-pdf'
28
- assert ! File.exists?(builddir)
27
+ if RUBY_VERSION !~ /^1.8/
28
+ config = prepare_samplebook(@tmpdir1)
29
+ builddir = @tmpdir1 + "/" + config['bookname'] + '-pdf'
30
+ assert ! File.exist?(builddir)
29
31
 
30
- Dir.chdir(@tmpdir1) do
31
- system("#{REVIEW_PDFMAKER} config.yml 1>/dev/null 2>/dev/null")
32
- end
32
+ ruby_cmd = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
33
+ Dir.chdir(@tmpdir1) do
34
+ system("#{ruby_cmd} -S #{REVIEW_PDFMAKER} config.yml 1>/dev/null 2>/dev/null")
35
+ end
33
36
 
34
- assert File.exists?(builddir)
37
+ assert File.exist?(builddir)
38
+ end
35
39
  end
36
40
  end
@@ -14,8 +14,7 @@ class TOPBuidlerTest < Test::Unit::TestCase
14
14
  @param = {
15
15
  "secnolevel" => 2,
16
16
  "inencoding" => "UTF-8",
17
- "outencoding" => "UTF-8",
18
- "subdirmode" => nil,
17
+ "outencoding" => "UTF-8"
19
18
  }
20
19
  ReVIEW.book.param = @param
21
20
  @compiler = ReVIEW::Compiler.new(@builder)
@@ -93,6 +92,41 @@ class TOPBuidlerTest < Test::Unit::TestCase
93
92
  assert_equal %Q|\n|, ret
94
93
  end
95
94
 
95
+ def test_inline_i
96
+ ret = @builder.compile_inline("test @<i>{inline test} test2")
97
+ assert_equal %Q|test ▲inline test☆ test2|, ret
98
+ end
99
+
100
+ def test_inline_i_and_escape
101
+ ret = @builder.compile_inline("test @<i>{inline<&;\\ test} test2")
102
+ assert_equal %Q|test ▲inline<&;\\ test☆ test2|, ret
103
+ end
104
+
105
+ def test_inline_b
106
+ ret = @builder.compile_inline("test @<b>{inline test} test2")
107
+ assert_equal %Q|test ★inline test☆ test2|, ret
108
+ end
109
+
110
+ def test_inline_b_and_escape
111
+ ret = @builder.compile_inline("test @<b>{inline<&;\\ test} test2")
112
+ assert_equal %Q|test ★inline<&;\\ test☆ test2|, ret
113
+ end
114
+
115
+ def test_inline_tt
116
+ ret = @builder.compile_inline("test @<tt>{inline test} test2@<tt>{\\}}")
117
+ assert_equal %Q|test △inline test☆ test2△}☆|, ret
118
+ end
119
+
120
+ def test_inline_tti
121
+ ret = @builder.compile_inline("test @<tti>{inline test} test2")
122
+ assert_equal %Q|test ▲inline test☆◆→等幅フォントイタ←◆ test2|, ret
123
+ end
124
+
125
+ def test_inline_ttb
126
+ ret = @builder.compile_inline("test @<ttb>{inline test} test2")
127
+ assert_equal %Q|test ★inline test☆◆→等幅フォント太字←◆ test2|, ret
128
+ end
129
+
96
130
  def test_inline_uchar
97
131
  ret = @builder.compile_inline("test @<uchar>{2460} test2")
98
132
  assert_equal %Q|test ① test2|, ret
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: review
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - kmuto
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-29 00:00:00.000000000 Z
12
+ date: 2014-04-02 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rake
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - '='
21
19
  - !ruby/object:Gem::Version
@@ -23,12 +21,11 @@ dependencies:
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - '='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.8.7
31
- description: ReVIEW is a digital publishing system for books and ebooks. It supports
28
+ description: Re:VIEW is a digital publishing system for books and ebooks. It supports
32
29
  InDesign, EPUB and LaTeX.
33
30
  email: kmuto@debian.org
34
31
  executables:
@@ -48,13 +45,12 @@ extra_rdoc_files:
48
45
  - ChangeLog
49
46
  - README.rdoc
50
47
  files:
51
- - .travis.yml
48
+ - ".travis.yml"
52
49
  - COPYING
53
50
  - ChangeLog
54
51
  - Gemfile
55
52
  - README.rdoc
56
53
  - Rakefile
57
- - VERSION
58
54
  - bin/review-check
59
55
  - bin/review-checkdep
60
56
  - bin/review-compile
@@ -82,7 +78,7 @@ files:
82
78
  - debian/source/format
83
79
  - doc/format.rdoc
84
80
  - doc/format_idg.rdoc
85
- - doc/libepubmaker/sample.yaml
81
+ - doc/libepubmaker/config.yaml
86
82
  - doc/quickstart.rdoc
87
83
  - doc/ruby-uuid/README
88
84
  - doc/ruby-uuid/README.ja
@@ -109,6 +105,7 @@ files:
109
105
  - lib/review/compiler.rb
110
106
  - lib/review/configure.rb
111
107
  - lib/review/epubbuilder.rb
108
+ - lib/review/epubmaker.rb
112
109
  - lib/review/ewbbuilder.rb
113
110
  - lib/review/exception.rb
114
111
  - lib/review/extentions.rb
@@ -128,6 +125,7 @@ files:
128
125
  - lib/review/markdownbuilder.rb
129
126
  - lib/review/preprocessor.rb
130
127
  - lib/review/review.tex.erb
128
+ - lib/review/sec_counter.rb
131
129
  - lib/review/textbuilder.rb
132
130
  - lib/review/textutils.rb
133
131
  - lib/review/tocparser.rb
@@ -153,7 +151,7 @@ files:
153
151
  - test/sample-book/src/main.css
154
152
  - test/sample-book/src/preface.re
155
153
  - test/sample-book/src/sty/jumoline.sty
156
- - test/sample-book/src/sty/samplemacro.sty
154
+ - test/sample-book/src/sty/reviewmacro.sty
157
155
  - test/sample-book/src/vendor/jumoline/README
158
156
  - test/sample-book/src/vendor/jumoline/jumoline.dtx
159
157
  - test/sample-book/src/vendor/jumoline/jumoline.ins
@@ -176,6 +174,7 @@ files:
176
174
  - test/test_latexbuilder.rb
177
175
  - test/test_lineinput.rb
178
176
  - test/test_makerhelper.rb
177
+ - test/test_markdownbuilder.rb
179
178
  - test/test_pdfmaker_cmd.rb
180
179
  - test/test_preprocessor.rb
181
180
  - test/test_textutils.rb
@@ -184,28 +183,27 @@ files:
184
183
  homepage: http://github.com/kmuto/review
185
184
  licenses:
186
185
  - LGPL
186
+ metadata: {}
187
187
  post_install_message:
188
188
  rdoc_options: []
189
189
  require_paths:
190
190
  - lib
191
191
  required_ruby_version: !ruby/object:Gem::Requirement
192
- none: false
193
192
  requirements:
194
- - - '>='
193
+ - - ">="
195
194
  - !ruby/object:Gem::Version
196
195
  version: '0'
197
196
  required_rubygems_version: !ruby/object:Gem::Requirement
198
- none: false
199
197
  requirements:
200
- - - '>='
198
+ - - ">="
201
199
  - !ruby/object:Gem::Version
202
200
  version: '0'
203
201
  requirements: []
204
202
  rubyforge_project:
205
- rubygems_version: 1.8.25
203
+ rubygems_version: 2.2.2
206
204
  signing_key:
207
- specification_version: 3
208
- summary: 'ReVIEW: a easy-to-use digital publishing system'
205
+ specification_version: 4
206
+ summary: 'Re:VIEW: a easy-to-use digital publishing system'
209
207
  test_files:
210
208
  - test/CHAPS
211
209
  - test/bib.re
@@ -223,7 +221,7 @@ test_files:
223
221
  - test/sample-book/src/main.css
224
222
  - test/sample-book/src/preface.re
225
223
  - test/sample-book/src/sty/jumoline.sty
226
- - test/sample-book/src/sty/samplemacro.sty
224
+ - test/sample-book/src/sty/reviewmacro.sty
227
225
  - test/sample-book/src/vendor/jumoline/README
228
226
  - test/sample-book/src/vendor/jumoline/jumoline.dtx
229
227
  - test/sample-book/src/vendor/jumoline/jumoline.ins
@@ -246,8 +244,10 @@ test_files:
246
244
  - test/test_latexbuilder.rb
247
245
  - test/test_lineinput.rb
248
246
  - test/test_makerhelper.rb
247
+ - test/test_markdownbuilder.rb
249
248
  - test/test_pdfmaker_cmd.rb
250
249
  - test/test_preprocessor.rb
251
250
  - test/test_textutils.rb
252
251
  - test/test_topbuilder.rb
253
252
  - test/test_uuid.rb
253
+ has_rdoc:
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.0
@@ -1,90 +0,0 @@
1
- # YAMLファイルのサンプル
2
- # このファイルはUTF-8エンコーディングで記述してください
3
-
4
- # ブック名(ファイル名になるもの。ASCII範囲の文字を使用)
5
- bookname: sample
6
- # 記述言語
7
- language: ja
8
- # 書名
9
- title: ReVIEW EPUBのサンプル
10
-
11
- # 固有IDに使用するドメイン。指定しない場合には、時刻に基づくランダムUUIDが入る
12
- # urnid: urn:uid:http://example.com/some-book-title/1.0.2/
13
-
14
- # isbn: ISBN。省略した場合はランダム生成したUUIDが入る
15
-
16
- # 著者名。複数人いる場合はYAMLの配列形式で指定できる
17
- aut: Kenshi Muto
18
-
19
- # 以下はオプション(配列書式で複数指定可能)。a-が付いているものはcreator側、
20
- # 付いていないものはcontributor側(二次協力者)に入る
21
- # a-adp, adp: 異なるメディア向けに作り直した者
22
- # a-ann, ann: 注釈記述者
23
- # a-arr, arr: アレンジした者
24
- # a-art, art: グラフィックデザインおよび芸術家
25
- # a-asn, asn: 関連・かつての所有者・関係者
26
- # a-aqt, aqt: 大きく引用された人物
27
- # a-aft, aft: 後書き・奥付の責任者
28
- # a-aui, aui: 序論・序文・前書きの責任者
29
- # a-ant, ant: 目録責任者
30
- # a-bkp, bkp: メディア制作責任者
31
- # a-clb, clb: 限定参加または補足者
32
- # a-cmm, cmm: 解釈・分析・考察者
33
- # a-dsr, dsr: デザイナ
34
- # a-edt, edt: 編集者
35
- # a-ill, ill: イラストレータ
36
- # a-lyr, lyr: 歌詞作成者
37
- # a-mdc, mdc: メタデータセットの一次的責任者
38
- # a-mus, mus: 音楽家
39
- # a-nrt, nrt: 語り手
40
- # a-oth, oth: その他
41
- # a-pht, pht: 撮影責任者
42
- # a-prt, prt: 出版社
43
- # a-red, red: 項目の枠組起草者
44
- # a-rev, rev: 評論者
45
- # a-spn, spn: 援助者
46
- # a-ths, ths: 監督者
47
- # a-trc, trc: 筆記・タイプ作業者
48
- # a-trl, trl: 翻訳者
49
-
50
- # rights: 権利表記
51
- # date: 刊行日(省略した場合は実行時の日付)
52
- # description: 説明
53
- # subject: 短い説明用タグ。配列で複数指定可
54
- # type: 書籍のカテゴリーなど(複数指定可)
55
- # format: メディアタイプおよび特徴(複数指定可)
56
- # source: 出版物生成の重要なリソース情報(複数指定可)
57
- # relation: 補助的リソース(複数指定可)
58
- # coverage: 内容の範囲や領域(複数指定可)
59
-
60
- # htmlext: HTMLファイルの拡張子(省略した場合はhtml)
61
- # cover: カバーページのファイル名(省略した場合はbookname.xhtmlになる)
62
- #
63
- # coverimage: カバー用画像
64
- #
65
- # CSSファイル(配列で複数指定することも可)
66
- #stylesheet: stylesheet.css
67
-
68
- # 目次として抽出するレベル
69
- toclevel: 3
70
- # セクション番号を表示するレベル
71
- secnolevel: 2
72
- # NCX目次の見出しレベルごとの飾り(配列で設定)
73
- ncxindent:
74
- -
75
- - -
76
-
77
- # EPUB標準の目次以外に目次を作成するか
78
- mytoc:
79
- # mytocがtrueの場合に作成する目次ファイル名(省略するとtoc.xhtml)
80
- # tocfile: toc.xhtml
81
-
82
- # 表紙の後に権利表記ページを作成するか。デフォルトでは作成されない。ファイル名を指定するとそのファイルが使われる(data配列にも指定しておく必要がある)
83
- # titlepage: title.xhtml
84
-
85
- # 奥付を作成するか。デフォルトでは作成されない。trueを指定するとデフォルトの奥付、ファイル名を指定するとそれがcolophon.xhtmlとしてコピーされる(data配列にも指定しておく必要がある)
86
- # colophon: true
87
- # pubhistory: 奥付履歴
88
-
89
- # XHTML生成後に実行するプログラム。$1:HTMLの生成されたディレクトリ $2:ReVIEWファイルのあるディレクトリ $3:起動時指定のyamlファイル名
90
- # posthook: hook.sh