review 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/.rubocop.yml +293 -6
  4. data/.rubocop_todo.yml +3 -608
  5. data/.travis.yml +6 -13
  6. data/README.md +5 -3
  7. data/Rakefile +6 -6
  8. data/bin/review-catalog-converter +2 -2
  9. data/bin/review-check +1 -1
  10. data/bin/review-compile +1 -2
  11. data/bin/review-init +6 -3
  12. data/bin/review-validate +3 -3
  13. data/bin/review-vol +2 -1
  14. data/doc/NEWS.ja.md +138 -25
  15. data/doc/NEWS.md +137 -25
  16. data/doc/config.yml.sample +2 -2
  17. data/doc/config.yml.sample-simple +1 -1
  18. data/doc/format.ja.md +86 -5
  19. data/doc/format.md +67 -2
  20. data/doc/makeindex.ja.md +95 -0
  21. data/doc/makeindex.md +97 -0
  22. data/doc/sample.css +214 -0
  23. data/lib/epubmaker.rb +6 -6
  24. data/lib/epubmaker/epubcommon.rb +19 -47
  25. data/lib/epubmaker/epubv2.rb +3 -1
  26. data/lib/epubmaker/epubv3.rb +4 -26
  27. data/lib/epubmaker/producer.rb +46 -46
  28. data/lib/epubmaker/zip_exporter.rb +86 -0
  29. data/lib/review/book/base.rb +13 -15
  30. data/lib/review/book/chapter.rb +2 -1
  31. data/lib/review/book/compilable.rb +9 -9
  32. data/lib/review/book/image_finder.rb +13 -13
  33. data/lib/review/book/index.rb +2 -2
  34. data/lib/review/book/volume.rb +2 -2
  35. data/lib/review/builder.rb +57 -1
  36. data/lib/review/catalog.rb +2 -2
  37. data/lib/review/compiler.rb +15 -7
  38. data/lib/review/configure.rb +11 -0
  39. data/lib/review/epubmaker.rb +403 -401
  40. data/lib/review/ewbbuilder.rb +16 -16
  41. data/lib/review/htmlbuilder.rb +42 -58
  42. data/lib/review/htmltoc.rb +1 -1
  43. data/lib/review/htmlutils.rb +50 -4
  44. data/lib/review/i18n.rb +2 -2
  45. data/lib/review/idgxmlbuilder.rb +30 -47
  46. data/lib/review/latexbuilder.rb +86 -41
  47. data/lib/review/latexutils.rb +19 -19
  48. data/lib/review/markdownbuilder.rb +16 -4
  49. data/lib/review/md2inaobuilder.rb +0 -9
  50. data/lib/review/pdfmaker.rb +91 -48
  51. data/lib/review/preprocessor.rb +1 -1
  52. data/lib/review/rstbuilder.rb +763 -0
  53. data/lib/review/sec_counter.rb +7 -9
  54. data/lib/review/tocparser.rb +3 -3
  55. data/lib/review/tocprinter.rb +5 -5
  56. data/lib/review/topbuilder.rb +48 -56
  57. data/lib/review/version.rb +1 -1
  58. data/lib/review/webmaker.rb +6 -7
  59. data/review.gemspec +1 -0
  60. data/templates/latex/layout.tex.erb +27 -2
  61. data/test/assets/test_template.tex +10 -1
  62. data/test/book_test_helper.rb +1 -2
  63. data/test/run_test.rb +10 -0
  64. data/test/sample-book/src/style.css +215 -0
  65. data/test/sample-book/src/vendor/jumoline/lppl.txt +416 -0
  66. data/test/test_book.rb +0 -1
  67. data/test/test_catalog.rb +1 -0
  68. data/test/test_converter.rb +1 -1
  69. data/test/test_epub3maker.rb +44 -51
  70. data/test/test_epubmaker.rb +82 -38
  71. data/test/test_epubmaker_cmd.rb +1 -1
  72. data/test/test_extentions_hash.rb +8 -1
  73. data/test/test_htmlbuilder.rb +411 -18
  74. data/test/test_i18n.rb +17 -0
  75. data/test/test_idgxmlbuilder.rb +88 -3
  76. data/test/test_image_finder.rb +18 -0
  77. data/test/test_index.rb +2 -0
  78. data/test/test_latexbuilder.rb +96 -8
  79. data/test/test_makerhelper.rb +2 -2
  80. data/test/test_markdownbuilder.rb +22 -1
  81. data/test/test_md2inaobuilder.rb +0 -5
  82. data/test/test_pdfmaker.rb +54 -36
  83. data/test/test_pdfmaker_cmd.rb +1 -1
  84. data/test/test_rstbuilder.rb +356 -0
  85. data/test/test_textutils.rb +14 -4
  86. data/test/test_topbuilder.rb +23 -4
  87. data/test/test_zip_exporter.rb +113 -0
  88. metadata +28 -2
data/.travis.yml CHANGED
@@ -2,24 +2,17 @@ language: ruby
2
2
  sudo: false
3
3
 
4
4
  before_install:
5
+ - gem update --system
5
6
  - gem update bundler
6
7
 
7
8
  rvm:
8
- - 2.0.0
9
- - 2.1.*
10
- - 2.2.*
11
- - 2.3.1
9
+ - 2.0
10
+ - 2.1
11
+ - 2.2
12
+ - 2.3.3
13
+ - 2.4.0
12
14
  ## - ruby-head
13
15
 
14
- addons:
15
- apt_packages:
16
- - libgmp3-dev
17
-
18
16
  branches:
19
17
  only:
20
18
  - master
21
-
22
- script:
23
- - bundle exec rake test
24
- - bundle exec rubocop
25
-
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Re:VIEW
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/review.png)](http://badge.fury.io/rb/review)
4
- [![Build Status](https://secure.travis-ci.org/kmuto/review.png)](http://travis-ci.org/kmuto/review)
3
+ [![Gem Version](https://badge.fury.io/rb/review.svg)](http://badge.fury.io/rb/review)
4
+ [![Build Status](https://secure.travis-ci.org/kmuto/review.svg)](http://travis-ci.org/kmuto/review)
5
5
  [![Build status](https://ci.appveyor.com/api/projects/status/github/kmuto/review?svg=true)](https://ci.appveyor.com/project/kmuto/review)
6
6
 
7
7
  Re:VIEW is an easy-to-use digital publishing system for paper books and ebooks.
@@ -93,6 +93,8 @@ For further information, see [doc/quickstart.md](https://github.com/kmuto/review
93
93
 
94
94
  LGPL. See [COPYING](https://github.com/kmuto/review/blob/master/COPYING) file.
95
95
 
96
+ * jumoline.sty (test/sample-book/src/vendor/jumoline): The LaTeX Project Public License. See [LPPL](https://github.com/kmuto/review/blob/master/test/sample-book/src/vendor/jumoline/lppl.txt) file.
97
+
96
98
  ## Copyright
97
99
 
98
- Copyright (c) 2006-2016 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
100
+ Copyright (c) 2006-2017 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
data/Rakefile CHANGED
@@ -3,14 +3,15 @@ begin
3
3
  Bundler::GemHelper.install_tasks
4
4
  rescue LoadError
5
5
  # ignore if bundler does not exist
6
+ warn "Bundler not found"
6
7
  end
7
8
 
8
9
  require 'rubygems'
9
- require 'rake/testtask'
10
10
  require 'rake/clean'
11
11
 
12
12
  task :default => [:test, :rubocop]
13
13
 
14
+ desc "Check with rubocop"
14
15
  task :rubocop do
15
16
  begin
16
17
  require 'rubocop/rake_task'
@@ -20,11 +21,8 @@ task :rubocop do
20
21
  end
21
22
  end
22
23
 
23
- Rake::TestTask.new("test") do |t|
24
- t.libs << "test"
25
- t.test_files = Dir.glob("test/**/test_*.rb")
26
- t.verbose = true
27
- t.warning = false
24
+ task :test do
25
+ ruby("test/run_test.rb")
28
26
  end
29
27
 
30
28
  begin
@@ -37,6 +35,7 @@ begin
37
35
  t.verbose = true
38
36
  end
39
37
  rescue LoadError
38
+ warn "rcov not found"
40
39
  end
41
40
 
42
41
  begin
@@ -49,4 +48,5 @@ begin
49
48
  rdoc.rdoc_files.include('lib/**/*.rb')
50
49
  end
51
50
  rescue LoadError
51
+ warn "rdoc not found"
52
52
  end
@@ -38,7 +38,7 @@ def main
38
38
 
39
39
  # confirmation
40
40
  if File.exist?("#{dir}/catalog.yml")
41
- while true
41
+ loop do
42
42
  print "The catalog.yml already exists. Do you want to overwrite it? [y/n]"
43
43
  case gets
44
44
  when /^[yY]/
@@ -68,7 +68,7 @@ def main
68
68
  # postdef
69
69
  if File.exist?("#{dir}/POSTDEF")
70
70
  postdef = File.open("#{dir}/POSTDEF").read
71
- while true
71
+ loop do
72
72
  print "Do you want to convert POSTDEF into APPENDIX? [y/n]"
73
73
  case gets
74
74
  when /^[yY]/
data/bin/review-check CHANGED
@@ -134,7 +134,7 @@ def each_paragraph(f)
134
134
  when /\A\#@ok\((.*)\)/
135
135
  @review_utils_word_ok = $1
136
136
  when /\A\#@/
137
- ;
137
+ # do nothing
138
138
  when %r[\A//caption\{(.*?)//\}]
139
139
  yield [$1], f.filename, f.lineno
140
140
  when %r<\A//\w.*\{\s*\z>
data/bin/review-compile CHANGED
@@ -53,7 +53,6 @@ def _main
53
53
  opts.on('-c', '--check', 'Check manuscript') { check_only = true }
54
54
  opts.on('--level=LVL', 'Section level to append number.') {|lvl| config["secnolevel"] = lvl.to_i }
55
55
  opts.on('--toclevel=LVL', 'Section level to append number.') {|lvl| config["toclevel"] = lvl.to_i }
56
- opts.on('--nolfinxml', 'Do not insert LF in XML. (idgxml)') { config["nolf"] = true }
57
56
  opts.on('--structuredxml', 'Produce XML with structured sections. (idgxml)') { config["structuredxml"] = true }
58
57
  opts.on('--table=WIDTH', 'Default table width. (idgxml)') {|tbl| config["tableopt"] = tbl }
59
58
  opts.on('--listinfo', 'Append listinfo tag to lists to indicate begin/end. (idgxml)') { config["listinfo"] = true }
@@ -73,7 +72,7 @@ def _main
73
72
  end
74
73
  opts.on('--target=FMT', 'Target format.') {|fmt| target = fmt } unless target
75
74
  opts.on('--footnotetext',
76
- 'Use footnotetext and footnotemark instead of footnote (latex)') {
75
+ 'Use footnotetext and footnotemark instead of footnote (latex)') {
77
76
  config["footnotetext"] = true
78
77
  }
79
78
  opts.on('--draft', 'use draft mode(inline comment)') { config["draft"] = true }
data/bin/review-init CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (c) 2013-2014 Masanori Kado
3
+ # Copyright (c) 2013-2017 Masanori Kado, Masayoshi Takahashi, Kenshi Muto
4
4
  #
5
5
  # This program is free software.
6
6
  # You can distribute or modify this program under the terms of
@@ -112,7 +112,7 @@ end
112
112
 
113
113
  def generate_config(dir)
114
114
  today = Time.now.strftime("%Y-%m-%d")
115
- content = File.read(@review_dir + "/doc/config.yml.sample")
115
+ content = File.read(@review_dir + "/doc/config.yml.sample", {:encoding => 'utf-8'})
116
116
  content.gsub!(/^#\s*coverimage:.*$/, 'coverimage: cover.jpg')
117
117
  content.gsub!(/^#\s*date:.*$/, "date: #{today}")
118
118
  content.gsub!(/^#\s*history:.*$/, %Q|history: [["#{today}"]]|)
@@ -132,7 +132,10 @@ end
132
132
  def generate_texmacro(dir)
133
133
  texmacrodir = dir + '/sty'
134
134
  FileUtils.mkdir_p texmacrodir
135
- FileUtils.cp @review_dir + "/test/sample-book/src/sty/reviewmacro.sty", texmacrodir
135
+ FileUtils.cp [
136
+ @review_dir + "/test/sample-book/src/sty/reviewmacro.sty",
137
+ @review_dir + "/test/sample-book/src/sty/jumoline.sty"
138
+ ], texmacrodir
136
139
  end
137
140
 
138
141
  def generate_rakefile(dir)
data/bin/review-validate CHANGED
@@ -18,9 +18,9 @@ ARGF.each {|line|
18
18
  ln += 1
19
19
  if line =~ /\A\/\/([a-z]+)\{\s*\Z/ || line =~ /\A\/\/([a-z]+)\[.+?\{\s*\Z/
20
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
21
+ new_block = $1
22
+ puts "#{ln}: block #{new_block} started, but previous block #{block} didn't close yet." unless block.nil?
23
+ block = new_block
24
24
  elsif line =~ /\A\/\/\}/
25
25
  puts "#{ln}: block ended, but not opened." if block.nil?
26
26
  block = nil
data/bin/review-vol CHANGED
@@ -58,7 +58,8 @@ def main
58
58
  if part_sensitive
59
59
  sep = ""
60
60
  book.each_part do |part|
61
- print sep; sep = "\n"
61
+ print sep
62
+ sep = "\n"
62
63
  puts "Part #{part.number} #{part.name}" if part.number
63
64
  part.each_chapter do |chap|
64
65
  print_chapter_volume chap
data/doc/NEWS.ja.md CHANGED
@@ -1,3 +1,116 @@
1
+ # Version 2.2.0
2
+
3
+ ## 新機能
4
+
5
+ * PDFMaker: 索引`@<idx>`, `@<hidx>`をサポートしました ([#261],[#660],[#669],[#740])
6
+ * RSTBuilder を追加しました ([#733],[#738])
7
+ * 直接埋め込み用の `//embed{...//}` と `@<embed>{...}` を追加しました ([#730],[#751],[#757],[#758])
8
+ * HTMLBuilder, IDGXMLBuilder, LATEXBuilder: `//listnum` と `//emlistnum` で使える `//firstlinenum` コマンドを追加しました([#685],[#688])
9
+ * review-compile: `--nolfinxml` は不要になりました ([#683],[#708])
10
+ * HTMLBuilder: 参照用インライン (`@<img>`, `@<table>`, `@<list>`) を `<span>`で囲うようにしました. class属性は 'imgref', 'tableref', 'listref'です. ([#696],[#697])
11
+ * HTMLBuilder: コードハイライト用ライブラリとしてRougeをサポートするようにしました ([#684],[#710],[#711])
12
+
13
+ ## 非互換の変更
14
+
15
+ * LATEXBuilder: `//source`の生成するマクロを修正しました ([#681])
16
+ * インライン内でのエスケープのルールのバグを修正しました ([#731])
17
+ * `\}` -> `}`
18
+ * `\\` -> `\`
19
+ * `\x` -> `\x` (`x` != `\`かつ`x` != `}`の場合)
20
+
21
+ ## バグ修正
22
+
23
+ * draftモードでのコメント機能を整理しました ([#360],[#717])
24
+ * i18n機能の引数の数が想定と異なっている場合の挙動を修正しました ([#667],[#723])
25
+ * support builder option for `//tsize` and `//latextsize` ([#716],[#719],[#720])
26
+ * html, idgxml, markdownでのul_item() メソッドを削除しました. ([#726],[#727])
27
+ * PDFMaker: 設定ファイルのimagedirの値を反映するようにしました ([#756],[#759])
28
+ * HTMLBuilder, LATEXBuilder, IDGXMLBuilder: コラム内での引数のインラインを処理するようにしました
29
+ * review-init: エンコーディングを正しく指定するようにしました. ([#761])
30
+ * EPUBMaker, PDFMaker: PDFとEPUBのsubtitleを修正しました ([#742],[#745],[#747])
31
+ * TOPBuilder: `@<list>`のリンク切れを修正しました ([#763])
32
+
33
+ ## 機能強化
34
+
35
+ * LATEXBuilder: jumoline.styを有効にしました
36
+ * IDGXMLBuilder, HTMLBuilder: エラーや警告が生成された文書内に出力されないようにしました ([#706],[#753])
37
+ * image_finder.rb: シンボリックリンクのディレクトリにも対応するようにしました ([#743])
38
+ * TOPBuilder: 見出しの処理を修正しました ([#729])
39
+ * 設定ファイルでのhistoryの日付をフリーフォーマットでも対応するようにしました ([#693])
40
+ * HTMLBuilder: リストのid属性を出力するようにしました ([#724])
41
+ * rubyzipがない場合、zipのテストをスキップするようにしました ([#713],[#714])
42
+ * convertコマンドがない場合のテストを修正しました ([#712],[#718])
43
+ * TOPBuilder: `@<bib>` と `//bibpaper` に対応しました ([#763])
44
+ * TOPBuilder: `[notoc]` と `[nodisp]` に対応しました ([#763])
45
+
46
+
47
+ ## ドキュメント
48
+
49
+ * 索引用のドキュメント makeindex.(ja.)md を追加しました
50
+
51
+ ## その他
52
+
53
+ * rubocopの設定を見直して警告の抑制をしました
54
+
55
+ ## コントリビューターのみなさん
56
+
57
+ * [@kuroda](https://github.com/kuroda)
58
+ * [@olleolleolle](https://github.com/olleolleolle)
59
+ * [@shirou](https://github.com/shirou)
60
+ * [@m-shibata](https://github.com/m-shibata)
61
+ * [@kenkiku1021](https://github.com/kenkiku1021)
62
+
63
+ [#261]: https://github.com/kmuto/review/issues/261
64
+ [#360]: https://github.com/kmuto/review/issues/360
65
+ [#660]: https://github.com/kmuto/review/issues/660
66
+ [#667]: https://github.com/kmuto/review/issues/667
67
+ [#669]: https://github.com/kmuto/review/issues/669
68
+ [#681]: https://github.com/kmuto/review/issues/681
69
+ [#682]: https://github.com/kmuto/review/issues/682
70
+ [#683]: https://github.com/kmuto/review/issues/683
71
+ [#684]: https://github.com/kmuto/review/issues/684
72
+ [#685]: https://github.com/kmuto/review/issues/685
73
+ [#686]: https://github.com/kmuto/review/issues/686
74
+ [#688]: https://github.com/kmuto/review/issues/688
75
+ [#693]: https://github.com/kmuto/review/issues/693
76
+ [#696]: https://github.com/kmuto/review/issues/696
77
+ [#697]: https://github.com/kmuto/review/issues/697
78
+ [#706]: https://github.com/kmuto/review/issues/706
79
+ [#708]: https://github.com/kmuto/review/issues/708
80
+ [#710]: https://github.com/kmuto/review/issues/710
81
+ [#711]: https://github.com/kmuto/review/issues/711
82
+ [#712]: https://github.com/kmuto/review/issues/712
83
+ [#713]: https://github.com/kmuto/review/issues/713
84
+ [#714]: https://github.com/kmuto/review/issues/714
85
+ [#716]: https://github.com/kmuto/review/issues/716
86
+ [#717]: https://github.com/kmuto/review/issues/717
87
+ [#718]: https://github.com/kmuto/review/issues/718
88
+ [#719]: https://github.com/kmuto/review/issues/719
89
+ [#720]: https://github.com/kmuto/review/issues/720
90
+ [#723]: https://github.com/kmuto/review/issues/723
91
+ [#724]: https://github.com/kmuto/review/issues/724
92
+ [#726]: https://github.com/kmuto/review/issues/726
93
+ [#727]: https://github.com/kmuto/review/issues/727
94
+ [#729]: https://github.com/kmuto/review/issues/729
95
+ [#730]: https://github.com/kmuto/review/issues/730
96
+ [#731]: https://github.com/kmuto/review/issues/731
97
+ [#733]: https://github.com/kmuto/review/issues/733
98
+ [#738]: https://github.com/kmuto/review/issues/738
99
+ [#740]: https://github.com/kmuto/review/issues/740
100
+ [#742]: https://github.com/kmuto/review/issues/742
101
+ [#743]: https://github.com/kmuto/review/issues/743
102
+ [#745]: https://github.com/kmuto/review/issues/745
103
+ [#747]: https://github.com/kmuto/review/issues/747
104
+ [#751]: https://github.com/kmuto/review/issues/751
105
+ [#753]: https://github.com/kmuto/review/issues/753
106
+ [#756]: https://github.com/kmuto/review/issues/756
107
+ [#757]: https://github.com/kmuto/review/issues/757
108
+ [#758]: https://github.com/kmuto/review/issues/758
109
+ [#759]: https://github.com/kmuto/review/issues/759
110
+ [#761]: https://github.com/kmuto/review/issues/761
111
+ [#763]: https://github.com/kmuto/review/issues/763
112
+
113
+
1
114
  # Version 2.1.0 の主な変更点
2
115
 
3
116
  ## 新機能
@@ -54,31 +167,31 @@
54
167
  * [@munepi](https://github.com/munepi)
55
168
  * [@znz](https://github.com/znz)
56
169
 
57
- [#675]: https://github.com/kmuto/review/issues/
58
- [#671]: https://github.com/kmuto/review/issues/
59
- [#666]: https://github.com/kmuto/review/issues/
60
- [#663]: https://github.com/kmuto/review/issues/
61
- [#662]: https://github.com/kmuto/review/issues/
62
- [#653]: https://github.com/kmuto/review/issues/
63
- [#650]: https://github.com/kmuto/review/issues/
64
- [#648]: https://github.com/kmuto/review/issues/
65
- [#645]: https://github.com/kmuto/review/issues/
66
- [#642]: https://github.com/kmuto/review/issues/
67
- [#641]: https://github.com/kmuto/review/issues/
68
- [#640]: https://github.com/kmuto/review/issues/
69
- [#638]: https://github.com/kmuto/review/issues/
70
- [#636]: https://github.com/kmuto/review/issues/
71
- [#634]: https://github.com/kmuto/review/issues/
72
- [#633]: https://github.com/kmuto/review/issues/
73
- [#632]: https://github.com/kmuto/review/issues/
74
- [#630]: https://github.com/kmuto/review/issues/
75
- [#629]: https://github.com/kmuto/review/issues/
76
- [#628]: https://github.com/kmuto/review/issues/
77
- [#627]: https://github.com/kmuto/review/issues/
78
- [#626]: https://github.com/kmuto/review/issues/
79
- [#625]: https://github.com/kmuto/review/issues/
80
- [#618]: https://github.com/kmuto/review/issues/
81
- [#617]: https://github.com/kmuto/review/issues/
170
+ [#675]: https://github.com/kmuto/review/issues/675
171
+ [#671]: https://github.com/kmuto/review/issues/671
172
+ [#666]: https://github.com/kmuto/review/issues/666
173
+ [#663]: https://github.com/kmuto/review/issues/663
174
+ [#662]: https://github.com/kmuto/review/issues/662
175
+ [#653]: https://github.com/kmuto/review/issues/653
176
+ [#650]: https://github.com/kmuto/review/issues/650
177
+ [#648]: https://github.com/kmuto/review/issues/648
178
+ [#645]: https://github.com/kmuto/review/issues/645
179
+ [#642]: https://github.com/kmuto/review/issues/642
180
+ [#641]: https://github.com/kmuto/review/issues/641
181
+ [#640]: https://github.com/kmuto/review/issues/640
182
+ [#638]: https://github.com/kmuto/review/issues/638
183
+ [#636]: https://github.com/kmuto/review/issues/636
184
+ [#634]: https://github.com/kmuto/review/issues/634
185
+ [#633]: https://github.com/kmuto/review/issues/633
186
+ [#632]: https://github.com/kmuto/review/issues/632
187
+ [#630]: https://github.com/kmuto/review/issues/630
188
+ [#629]: https://github.com/kmuto/review/issues/629
189
+ [#628]: https://github.com/kmuto/review/issues/628
190
+ [#627]: https://github.com/kmuto/review/issues/627
191
+ [#626]: https://github.com/kmuto/review/issues/626
192
+ [#625]: https://github.com/kmuto/review/issues/625
193
+ [#618]: https://github.com/kmuto/review/issues/618
194
+ [#617]: https://github.com/kmuto/review/issues/617
82
195
 
83
196
  # Version 2.0.0の主な変更点
84
197
 
data/doc/NEWS.md CHANGED
@@ -1,3 +1,115 @@
1
+ # Version 2.2.0
2
+
3
+ ## New Features
4
+
5
+ * PDFMaker: support index `@<idx>`, `@<hidx>` ([#261],[#660],[#669],[#740])
6
+ * add RSTBuilder ([#733],[#738])
7
+ * add `//embed{...//}` and `@<embed>{...}` ([#730],[#751],[#757],[#758])
8
+ * HTMLBuilder, IDGXMLBuilder, LATEXBuilder: suppot `//firstlinenum` for `//listnum` and `//emlistnum` ([#685],[#688])
9
+ * review-compile: `--nolfinxml` is deprecated ([#683],[#708])
10
+ * HTMLBuilder: Enclose references (`@<img>`, `@<table>`, and `@<list>`) with `<span>`. Class names are 'imgref', 'tableref', and 'listref'. ([#696],[#697])
11
+ * HTMLBuilder: support Rouge ([#684],[#710],[#711])
12
+
13
+ ## Breaking Changes
14
+
15
+ * LATEXBuilder: fix //source ([#681])
16
+ * fix escaping in inline ([#731])
17
+ * `\}` -> `}`
18
+ * `\\` -> `\`
19
+ * `\x` -> `\x` (when `x` != `\` and `x` != `}`)
20
+
21
+ ## Bug Fixes
22
+
23
+ * support comment for draft mode ([#360],[#717])
24
+ * i18n accepts mismatched number of arguments ([#667],[#723])
25
+ * support builder option for `//tsize` and `//latextsize` ([#716],[#719],[#720])
26
+ * remove ul_item() of html, idgxml, and markdown. ([#726],[#727])
27
+ * PDFMaker: reflect imagedir config ([#756],[#759])
28
+ * HTMLBuilder, LATEXBuilder, IDGXMLBuilder: use compile_inline in column tag
29
+ * review-init: Specify source file encoding on generating config. ([#761])
30
+ * EPUBMaker, PDFMaker: support subtitle for PDF and EPUB ([#742],[#745],[#747])
31
+ * TOPBuilder: fix `@<list>` ([#763])
32
+
33
+ ## Enhancements
34
+
35
+ * LATEXBuilder: enable jumoline.sty by default
36
+ * IDGXMLBuilder, HTMLBuilder: removes errors and warnings in published document ([#753])
37
+ * image_finder.rb: support symlinked directory ([#743])
38
+ * TOPBuilder: refactor headline ([#729])
39
+ * allow free format in history of config.yml ([#693])
40
+ * HTMLBuilder: put list's id into the attribute of div.caption-code ([#724])
41
+ * without rubyzip, skip zip test ([#713],[#714])
42
+ * suppress output on checking convert command ([#712],[#718])
43
+ * TOPBuilder: support `@<bib>` and `//bibpaper` ([#763])
44
+ * TOPBuilder: support `[notoc]` and `[nodisp]` ([#763])
45
+
46
+ ## Docs
47
+
48
+ * add makeindex.(ja.)md
49
+
50
+ ## Others
51
+
52
+ * fix `.rubocop.yml` and suppress warnings
53
+
54
+ ## Contributors
55
+
56
+ * [@kuroda](https://github.com/kuroda)
57
+ * [@olleolleolle](https://github.com/olleolleolle)
58
+ * [@shirou](https://github.com/shirou)
59
+ * [@m-shibata](https://github.com/m-shibata)
60
+ * [@kenkiku1021](https://github.com/kenkiku1021)
61
+
62
+ [#261]: https://github.com/kmuto/review/issues/261
63
+ [#360]: https://github.com/kmuto/review/issues/360
64
+ [#660]: https://github.com/kmuto/review/issues/660
65
+ [#667]: https://github.com/kmuto/review/issues/667
66
+ [#669]: https://github.com/kmuto/review/issues/669
67
+ [#681]: https://github.com/kmuto/review/issues/681
68
+ [#682]: https://github.com/kmuto/review/issues/682
69
+ [#683]: https://github.com/kmuto/review/issues/683
70
+ [#684]: https://github.com/kmuto/review/issues/684
71
+ [#685]: https://github.com/kmuto/review/issues/685
72
+ [#686]: https://github.com/kmuto/review/issues/686
73
+ [#688]: https://github.com/kmuto/review/issues/688
74
+ [#693]: https://github.com/kmuto/review/issues/693
75
+ [#696]: https://github.com/kmuto/review/issues/696
76
+ [#697]: https://github.com/kmuto/review/issues/697
77
+ [#706]: https://github.com/kmuto/review/issues/706
78
+ [#708]: https://github.com/kmuto/review/issues/708
79
+ [#710]: https://github.com/kmuto/review/issues/710
80
+ [#711]: https://github.com/kmuto/review/issues/711
81
+ [#712]: https://github.com/kmuto/review/issues/712
82
+ [#713]: https://github.com/kmuto/review/issues/713
83
+ [#714]: https://github.com/kmuto/review/issues/714
84
+ [#716]: https://github.com/kmuto/review/issues/716
85
+ [#717]: https://github.com/kmuto/review/issues/717
86
+ [#718]: https://github.com/kmuto/review/issues/718
87
+ [#719]: https://github.com/kmuto/review/issues/719
88
+ [#720]: https://github.com/kmuto/review/issues/720
89
+ [#723]: https://github.com/kmuto/review/issues/723
90
+ [#724]: https://github.com/kmuto/review/issues/724
91
+ [#726]: https://github.com/kmuto/review/issues/726
92
+ [#727]: https://github.com/kmuto/review/issues/727
93
+ [#729]: https://github.com/kmuto/review/issues/729
94
+ [#730]: https://github.com/kmuto/review/issues/730
95
+ [#731]: https://github.com/kmuto/review/issues/731
96
+ [#733]: https://github.com/kmuto/review/issues/733
97
+ [#738]: https://github.com/kmuto/review/issues/738
98
+ [#740]: https://github.com/kmuto/review/issues/740
99
+ [#742]: https://github.com/kmuto/review/issues/742
100
+ [#743]: https://github.com/kmuto/review/issues/743
101
+ [#745]: https://github.com/kmuto/review/issues/745
102
+ [#747]: https://github.com/kmuto/review/issues/747
103
+ [#751]: https://github.com/kmuto/review/issues/751
104
+ [#753]: https://github.com/kmuto/review/issues/753
105
+ [#756]: https://github.com/kmuto/review/issues/756
106
+ [#757]: https://github.com/kmuto/review/issues/757
107
+ [#758]: https://github.com/kmuto/review/issues/758
108
+ [#759]: https://github.com/kmuto/review/issues/759
109
+ [#761]: https://github.com/kmuto/review/issues/761
110
+ [#763]: https://github.com/kmuto/review/issues/763
111
+
112
+
1
113
  # Version 2.1.0
2
114
 
3
115
  ## New Features
@@ -55,31 +167,31 @@
55
167
  * [@munepi](https://github.com/munepi)
56
168
  * [@znz](https://github.com/znz)
57
169
 
58
- [#675]: https://github.com/kmuto/review/issues/
59
- [#671]: https://github.com/kmuto/review/issues/
60
- [#666]: https://github.com/kmuto/review/issues/
61
- [#663]: https://github.com/kmuto/review/issues/
62
- [#662]: https://github.com/kmuto/review/issues/
63
- [#653]: https://github.com/kmuto/review/issues/
64
- [#650]: https://github.com/kmuto/review/issues/
65
- [#648]: https://github.com/kmuto/review/issues/
66
- [#645]: https://github.com/kmuto/review/issues/
67
- [#642]: https://github.com/kmuto/review/issues/
68
- [#641]: https://github.com/kmuto/review/issues/
69
- [#640]: https://github.com/kmuto/review/issues/
70
- [#638]: https://github.com/kmuto/review/issues/
71
- [#636]: https://github.com/kmuto/review/issues/
72
- [#634]: https://github.com/kmuto/review/issues/
73
- [#633]: https://github.com/kmuto/review/issues/
74
- [#632]: https://github.com/kmuto/review/issues/
75
- [#630]: https://github.com/kmuto/review/issues/
76
- [#629]: https://github.com/kmuto/review/issues/
77
- [#628]: https://github.com/kmuto/review/issues/
78
- [#627]: https://github.com/kmuto/review/issues/
79
- [#626]: https://github.com/kmuto/review/issues/
80
- [#625]: https://github.com/kmuto/review/issues/
81
- [#618]: https://github.com/kmuto/review/issues/
82
- [#617]: https://github.com/kmuto/review/issues/
170
+ [#675]: https://github.com/kmuto/review/issues/675
171
+ [#671]: https://github.com/kmuto/review/issues/671
172
+ [#666]: https://github.com/kmuto/review/issues/666
173
+ [#663]: https://github.com/kmuto/review/issues/663
174
+ [#662]: https://github.com/kmuto/review/issues/662
175
+ [#653]: https://github.com/kmuto/review/issues/653
176
+ [#650]: https://github.com/kmuto/review/issues/650
177
+ [#648]: https://github.com/kmuto/review/issues/648
178
+ [#645]: https://github.com/kmuto/review/issues/645
179
+ [#642]: https://github.com/kmuto/review/issues/642
180
+ [#641]: https://github.com/kmuto/review/issues/641
181
+ [#640]: https://github.com/kmuto/review/issues/640
182
+ [#638]: https://github.com/kmuto/review/issues/638
183
+ [#636]: https://github.com/kmuto/review/issues/636
184
+ [#634]: https://github.com/kmuto/review/issues/634
185
+ [#633]: https://github.com/kmuto/review/issues/633
186
+ [#632]: https://github.com/kmuto/review/issues/632
187
+ [#630]: https://github.com/kmuto/review/issues/630
188
+ [#629]: https://github.com/kmuto/review/issues/629
189
+ [#628]: https://github.com/kmuto/review/issues/628
190
+ [#627]: https://github.com/kmuto/review/issues/627
191
+ [#626]: https://github.com/kmuto/review/issues/626
192
+ [#625]: https://github.com/kmuto/review/issues/625
193
+ [#618]: https://github.com/kmuto/review/issues/618
194
+ [#617]: https://github.com/kmuto/review/issues/617
83
195
 
84
196
 
85
197
  # Version 2.0.0