review 5.9.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/ruby-tex.yml +10 -1
- data/.github/workflows/ruby-win.yml +1 -1
- data/.github/workflows/ruby.yml +3 -4
- data/.rubocop.yml +19 -1
- data/Gemfile +2 -0
- data/NEWS.ja.md +78 -3
- data/NEWS.md +92 -17
- data/Rakefile +2 -0
- data/bin/review +2 -0
- data/bin/review-catalog-converter +2 -0
- data/bin/review-check +2 -0
- data/bin/review-checkdep +3 -1
- data/bin/review-compile +3 -1
- data/bin/review-epub2html +2 -0
- data/bin/review-epubmaker +2 -0
- data/bin/review-idgxmlmaker +2 -0
- data/bin/review-index +2 -0
- data/bin/review-init +2 -0
- data/bin/review-pdfmaker +2 -0
- data/bin/review-preproc +2 -0
- data/bin/review-textmaker +2 -0
- data/bin/review-update +2 -0
- data/bin/review-validate +2 -0
- data/bin/review-vol +2 -0
- data/bin/review-webmaker +2 -0
- data/doc/config.yml.sample +1 -1
- data/doc/config.yml.sample-simple +2 -2
- data/doc/format.ja.md +1 -0
- data/doc/format.md +11 -10
- data/doc/makeindex.md +1 -1
- data/doc/pdfmaker.md +1 -1
- data/doc/preproc.md +1 -1
- data/doc/quickstart.md +2 -2
- data/doc/writing_vertical.md +1 -1
- data/lib/review/book/base.rb +7 -2
- data/lib/review/book/bib.rb +2 -0
- data/lib/review/book/book_unit.rb +3 -0
- data/lib/review/book/cache.rb +56 -0
- data/lib/review/book/chapter.rb +3 -1
- data/lib/review/book/image_finder.rb +5 -1
- data/lib/review/book/index/item.rb +2 -0
- data/lib/review/book/index.rb +2 -0
- data/lib/review/book/page_metric.rb +2 -0
- data/lib/review/book/part.rb +2 -0
- data/lib/review/book/volume.rb +2 -0
- data/lib/review/book.rb +2 -0
- data/lib/review/builder.rb +4 -2
- data/lib/review/call_hook.rb +2 -0
- data/lib/review/catalog.rb +2 -0
- data/lib/review/compiler.rb +8 -4
- data/lib/review/configure.rb +2 -0
- data/lib/review/converter.rb +2 -0
- data/lib/review/epub2html.rb +2 -0
- data/lib/review/epubbuilder.rb +2 -0
- data/lib/review/epubmaker/content.rb +2 -0
- data/lib/review/epubmaker/epubcommon.rb +13 -11
- data/lib/review/epubmaker/epubv2.rb +2 -0
- data/lib/review/epubmaker/epubv3.rb +3 -1
- data/lib/review/epubmaker/producer.rb +2 -0
- data/lib/review/epubmaker/reviewheaderlistener.rb +5 -2
- data/lib/review/epubmaker/zip_exporter.rb +3 -0
- data/lib/review/epubmaker.rb +11 -4
- data/lib/review/exception.rb +2 -0
- data/lib/review/extentions/hash.rb +2 -0
- data/lib/review/extentions/object.rb +2 -0
- data/lib/review/extentions/string.rb +2 -0
- data/lib/review/extentions.rb +2 -0
- data/lib/review/highlighter.rb +147 -0
- data/lib/review/htmlbuilder.rb +15 -13
- data/lib/review/htmltoc.rb +2 -0
- data/lib/review/htmlutils.rb +15 -78
- data/lib/review/i18n.rb +2 -0
- data/lib/review/idgxmlbuilder.rb +10 -8
- data/lib/review/idgxmlmaker.rb +3 -1
- data/lib/review/img_graph.rb +2 -0
- data/lib/review/img_math.rb +10 -6
- data/lib/review/index_builder.rb +10 -0
- data/lib/review/init.rb +2 -0
- data/lib/review/latexbox.rb +3 -1
- data/lib/review/latexbuilder.rb +26 -17
- data/lib/review/latexindex.rb +2 -0
- data/lib/review/latexutils.rb +2 -0
- data/lib/review/lineinput.rb +8 -0
- data/lib/review/location.rb +10 -6
- data/lib/review/loggable.rb +2 -0
- data/lib/review/logger.rb +3 -1
- data/lib/review/makerhelper.rb +2 -0
- data/lib/review/markdownbuilder.rb +2 -0
- data/lib/review/md2inaobuilder.rb +2 -0
- data/lib/review/pdfmaker.rb +15 -3
- data/lib/review/plaintextbuilder.rb +9 -4
- data/lib/review/preprocessor/directive.rb +2 -0
- data/lib/review/preprocessor/line.rb +2 -0
- data/lib/review/preprocessor/repository.rb +2 -0
- data/lib/review/preprocessor.rb +2 -0
- data/lib/review/rstbuilder.rb +3 -1
- data/lib/review/sec_counter.rb +11 -8
- data/lib/review/snapshot_location.rb +30 -0
- data/lib/review/template.rb +2 -0
- data/lib/review/textbuilder.rb +2 -0
- data/lib/review/textmaker.rb +2 -0
- data/lib/review/textutils.rb +2 -0
- data/lib/review/tocprinter.rb +4 -2
- data/lib/review/topbuilder.rb +7 -2
- data/lib/review/update.rb +2 -0
- data/lib/review/version.rb +3 -1
- data/lib/review/volumeprinter.rb +2 -0
- data/lib/review/webmaker.rb +2 -0
- data/lib/review/webtocprinter.rb +3 -1
- data/lib/review/yamlloader.rb +2 -0
- data/lib/review.rb +2 -0
- data/review.gemspec +10 -3
- data/samples/debug-book/.gitignore +154 -0
- data/samples/debug-book/Gemfile +4 -0
- data/samples/debug-book/Rakefile +3 -0
- data/samples/debug-book/advanced_features.re +209 -0
- data/samples/debug-book/catalog.yml +12 -0
- data/samples/debug-book/comprehensive.re +73 -0
- data/samples/debug-book/config.yml +461 -0
- data/samples/debug-book/edge_cases_test.re +290 -0
- data/samples/debug-book/extreme_features.re +305 -0
- data/samples/debug-book/images/cover-a5.pdf +0 -0
- data/samples/debug-book/images/cover.jpg +0 -0
- data/samples/debug-book/lib/tasks/review.rake +146 -0
- data/samples/debug-book/multicontent_test.re +286 -0
- data/samples/debug-book/review-jlreq.cls +393 -0
- data/samples/debug-book/sty/README.md +118 -0
- data/samples/debug-book/sty/gentombow.sty +769 -0
- data/samples/debug-book/sty/jsbook.cls +2072 -0
- data/samples/debug-book/sty/jumoline.sty +310 -0
- data/samples/debug-book/sty/plistings.sty +326 -0
- data/samples/debug-book/sty/review-base.sty +444 -0
- data/samples/debug-book/sty/review-custom.sty +1 -0
- data/samples/debug-book/sty/review-jlreq.cls +393 -0
- data/samples/debug-book/sty/review-jsbook.cls +545 -0
- data/samples/debug-book/sty/review-style.sty +43 -0
- data/samples/debug-book/sty/review-tcbox.sty +348 -0
- data/samples/debug-book/sty/reviewmacro.sty +20 -0
- data/samples/debug-book/style.css +494 -0
- data/samples/sample-book/src/config.yml +1 -1
- data/templates/latex/review-jlreq/review-jlreq.cls +1 -0
- data/templates/latex/review-jsbook/review-jsbook.cls +1 -0
- metadata +106 -10
- data/.travis.yml +0 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 347c89666bba57322ff0454dee7ce71a24011a05ca1c187dfcedd5a59b7328b6
|
|
4
|
+
data.tar.gz: 7619ad20160f938022b52b7d3d88d48e73f37953b2beaa80a1fac78c0ab7a335
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f58a638fea1e725b9d839dfdb95b4624be72bdad1c6bc1a76bb74c315f0b80c8907641b235550eb7acdd62d0909f164f232f3ca49a9d2977008b9da40af117d
|
|
7
|
+
data.tar.gz: 75876750417454fda383c8a4ade030fb2efe60156bd1b127baaaff9b03d26f05aba77fb1519318835eeac17de09e019f6b725e0896e3f00d0d2f198cd65d4ab2
|
|
@@ -13,10 +13,10 @@ jobs:
|
|
|
13
13
|
strategy:
|
|
14
14
|
fail-fast: false
|
|
15
15
|
matrix:
|
|
16
|
-
ruby: ['3.0', '3.1', '3.2', '3.3']
|
|
16
|
+
ruby: ['3.0', '3.1', '3.2', '3.3', '3.4']
|
|
17
17
|
os: [ubuntu-latest]
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
20
|
- name: Set up Ruby
|
|
21
21
|
uses: ruby/setup-ruby@v1
|
|
22
22
|
with:
|
|
@@ -20,11 +20,19 @@ jobs:
|
|
|
20
20
|
- name: Install TeXLive 2021 in ubuntu
|
|
21
21
|
if: runner.os == 'Linux'
|
|
22
22
|
run: |
|
|
23
|
-
sudo apt-get update -y -qq && sudo apt-get install -y -qq texlive-lang-japanese texlive-fonts-recommended texlive-fonts-extra texlive-luatex texlive-extra-utils texlive-latex-extra dvipng poppler-utils
|
|
23
|
+
sudo apt-get update -y -qq && sudo apt-get install -y -qq texlive-lang-japanese texlive-fonts-recommended texlive-fonts-extra texlive-luatex texlive-extra-utils texlive-latex-extra dvipng poppler-utils libfuse2
|
|
24
24
|
- name: Set up Ruby
|
|
25
25
|
uses: ruby/setup-ruby@v1
|
|
26
26
|
with:
|
|
27
27
|
ruby-version: ${{ matrix.ruby }}
|
|
28
|
+
- name: use vendor's imagemagick
|
|
29
|
+
run: |
|
|
30
|
+
export PATH=${GITHUB_WORKSPACE}/vendor/imagemagick:${PATH}
|
|
31
|
+
chmod 755 ${GITHUB_WORKSPACE}/vendor/imagemagick/magick
|
|
32
|
+
ln -s ${GITHUB_WORKSPACE}/vendor/imagemagick/magick ${GITHUB_WORKSPACE}/vendor/imagemagick/compare
|
|
33
|
+
which compare
|
|
34
|
+
magick -version
|
|
35
|
+
compare -version
|
|
28
36
|
- name: fix ImageMagick policy.xml on Linux
|
|
29
37
|
if: runner.os == 'Linux'
|
|
30
38
|
run: sudo sed -i 's/none/read|write/g' /etc/ImageMagick-6/policy.xml
|
|
@@ -34,6 +42,7 @@ jobs:
|
|
|
34
42
|
node-version: 18
|
|
35
43
|
- name: Build and test with Rake
|
|
36
44
|
run: |
|
|
45
|
+
export PATH=${GITHUB_WORKSPACE}/vendor/imagemagick:${PATH}
|
|
37
46
|
gem install bundler --no-document
|
|
38
47
|
bundle install --retry 3
|
|
39
48
|
bundle exec rake
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -13,19 +13,18 @@ jobs:
|
|
|
13
13
|
strategy:
|
|
14
14
|
fail-fast: false
|
|
15
15
|
matrix:
|
|
16
|
-
ruby: ['3.0', '3.1', '3.2', '3.3']
|
|
16
|
+
ruby: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
|
|
17
17
|
os: [ubuntu-latest, macOS-latest]
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
20
|
- name: Set up Ruby
|
|
21
21
|
uses: ruby/setup-ruby@v1
|
|
22
22
|
with:
|
|
23
23
|
ruby-version: ${{ matrix.ruby }}
|
|
24
|
+
bundler-cache: true
|
|
24
25
|
- name: fix ImageMagick policy.xml on Linux
|
|
25
26
|
if: runner.os == 'Linux'
|
|
26
27
|
run: sudo sed -i 's/none/read|write/g' /etc/ImageMagick-6/policy.xml
|
|
27
28
|
- name: Build and test with Rake
|
|
28
29
|
run: |
|
|
29
|
-
gem install bundler --no-document
|
|
30
|
-
bundle install --retry 3
|
|
31
30
|
bundle exec rake test
|
data/.rubocop.yml
CHANGED
|
@@ -67,6 +67,10 @@ Style/DocumentDynamicEvalDefinition:
|
|
|
67
67
|
Style/Documentation:
|
|
68
68
|
Enabled: false
|
|
69
69
|
|
|
70
|
+
Style/DoubleNegation:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'test/**/*'
|
|
73
|
+
|
|
70
74
|
Style/FormatString:
|
|
71
75
|
EnforcedStyle: sprintf
|
|
72
76
|
Enabled: true
|
|
@@ -94,8 +98,9 @@ Style/TernaryParentheses:
|
|
|
94
98
|
Enabled: false
|
|
95
99
|
|
|
96
100
|
Style/FrozenStringLiteralComment:
|
|
97
|
-
EnforcedStyle: never
|
|
98
101
|
Enabled: true
|
|
102
|
+
Exclude:
|
|
103
|
+
- 'samples/**/*'
|
|
99
104
|
|
|
100
105
|
Style/SafeNavigation:
|
|
101
106
|
Enabled: false
|
|
@@ -203,6 +208,12 @@ Style/CombinableLoops:
|
|
|
203
208
|
Style/FetchEnvVar:
|
|
204
209
|
Enabled: false
|
|
205
210
|
|
|
211
|
+
Style/MultipleComparison:
|
|
212
|
+
Enabled: false
|
|
213
|
+
|
|
214
|
+
Style/EmptyStringInsideInterpolation:
|
|
215
|
+
Enabled: false
|
|
216
|
+
|
|
206
217
|
### Layout
|
|
207
218
|
|
|
208
219
|
Layout/BlockAlignment:
|
|
@@ -290,6 +301,9 @@ Naming/FileName:
|
|
|
290
301
|
Naming/HeredocDelimiterNaming:
|
|
291
302
|
Enabled: false
|
|
292
303
|
|
|
304
|
+
Naming/MethodName:
|
|
305
|
+
Enabled: false
|
|
306
|
+
|
|
293
307
|
Naming/MethodParameterName:
|
|
294
308
|
Enabled: false
|
|
295
309
|
|
|
@@ -299,6 +313,9 @@ Naming/VariableNumber:
|
|
|
299
313
|
Exclude:
|
|
300
314
|
- test/*
|
|
301
315
|
|
|
316
|
+
Naming/PredicateMethod:
|
|
317
|
+
Enabled: false
|
|
318
|
+
|
|
302
319
|
#### Security
|
|
303
320
|
|
|
304
321
|
#### Gemspec
|
|
@@ -310,3 +327,4 @@ Gemspec/DevelopmentDependencies:
|
|
|
310
327
|
EnforcedStyle: gemspec
|
|
311
328
|
Exclude:
|
|
312
329
|
- samples/syntax-book/Gemfile
|
|
330
|
+
- samples/debug-book/Gemfile
|
data/Gemfile
CHANGED
data/NEWS.ja.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
+
# Version 5.11.0
|
|
2
|
+
## バグ修正
|
|
3
|
+
* ruby-zip v3 系でのエラーに対処しました ([#1941], [#1942])
|
|
4
|
+
* LATEXBuilder: `@<href>` インライン命令で `#...` の内部アンカーリンクが壊れるのを修正しました ([#1955])
|
|
5
|
+
* review-jsbook と新しい TeXLive 2026 以降の組み合わせにおいて、ビルドエラーが発生する問題を修正しました ([#1960], [#1961])
|
|
6
|
+
|
|
7
|
+
## 機能強化
|
|
8
|
+
* Ruby 3.4 に対応しました ([#1933], [#1939])
|
|
9
|
+
* PLAINTEXTBuilder および TOPBuilder において `//firstlinenum` を利用できるようになりました ([#1931])
|
|
10
|
+
|
|
11
|
+
## ドキュメント
|
|
12
|
+
* 各ドキュメントのタイプミスを修正しました ([#1928])
|
|
13
|
+
* `format.md` を更新しました ([#1948])
|
|
14
|
+
|
|
15
|
+
## その他
|
|
16
|
+
* Travis CI の設定を削除しました([#1943])
|
|
17
|
+
* テストの手法およびそれに関連する実装を改善しました ([#1945], [#1953], [#1954], [#1957], [#1958])
|
|
18
|
+
* RuboCop 1.80.1 の指摘を反映しました ([#1946])
|
|
19
|
+
* イミュータブルな位置情報を取得するための `ReVIEW::SnapshotLocation` を追加しました ([#1949])
|
|
20
|
+
* 文字列から `ReVIEW::LineInput` オブジェクトを作成できる `ReVIEW::LineInput.from_string` メソッドを追加しました ([#1950])
|
|
21
|
+
* ハイライト関連の処理を行うクラス `ReVIEW::Highlighter` を追加しました ([#1951])
|
|
22
|
+
* IndexBuilder において `@<ref>` および `@<labelref>` を処理対象にしました ([#1952])
|
|
23
|
+
|
|
24
|
+
## コントリビューターのみなさん
|
|
25
|
+
* [@kachick](https://github.com/kachick)
|
|
26
|
+
* [@kurank](https://github.com/kurank)
|
|
27
|
+
* [@y-yagi](https://github.com/y-yagi)
|
|
28
|
+
* [@munepi](https://github.com/munepi)
|
|
29
|
+
|
|
30
|
+
[#1928]: https://github.com/kmuto/review/pull/1928
|
|
31
|
+
[#1931]: https://github.com/kmuto/review/pull/1931
|
|
32
|
+
[#1933]: https://github.com/kmuto/review/issues/1933
|
|
33
|
+
[#1939]: https://github.com/kmuto/review/pull/1939
|
|
34
|
+
[#1941]: https://github.com/kmuto/review/pull/1941
|
|
35
|
+
[#1942]: https://github.com/kmuto/review/pull/1942
|
|
36
|
+
[#1943]: https://github.com/kmuto/review/pull/1943
|
|
37
|
+
[#1945]: https://github.com/kmuto/review/pull/1945
|
|
38
|
+
[#1946]: https://github.com/kmuto/review/pull/1946
|
|
39
|
+
[#1948]: https://github.com/kmuto/review/pull/1948
|
|
40
|
+
[#1949]: https://github.com/kmuto/review/pull/1949
|
|
41
|
+
[#1950]: https://github.com/kmuto/review/pull/1950
|
|
42
|
+
[#1951]: https://github.com/kmuto/review/pull/1951
|
|
43
|
+
[#1952]: https://github.com/kmuto/review/pull/1952
|
|
44
|
+
[#1953]: https://github.com/kmuto/review/pull/1953
|
|
45
|
+
[#1954]: https://github.com/kmuto/review/pull/1954
|
|
46
|
+
[#1955]: https://github.com/kmuto/review/pull/1955
|
|
47
|
+
[#1957]: https://github.com/kmuto/review/pull/1957
|
|
48
|
+
[#1958]: https://github.com/kmuto/review/pull/1958
|
|
49
|
+
[#1960]: https://github.com/kmuto/review/issues/1960
|
|
50
|
+
[#1961]: https://github.com/kmuto/review/pull/1961
|
|
51
|
+
|
|
52
|
+
# Version 5.10.0
|
|
53
|
+
## バグ修正
|
|
54
|
+
* サブディレクトリとカスタムページを両方指定するとエラーが発生するバグを修正しました([#1913],[#1914])
|
|
55
|
+
* EPUBBuilder: ビルド時間が長い問題を解決しました([#1915],[#1916],[#1919])
|
|
56
|
+
* ImageMagickのcompareのmetricに`SSIM`を使うように変更し、環境によってテストが失敗する問題を修正しました([#1917],[#1921])
|
|
57
|
+
* EPUBMaker: `verify_target_images`が有効な場合、coverimageを暗黙に取り込むよう修正しました([#1918],[#1923])
|
|
58
|
+
|
|
59
|
+
## 機能強化
|
|
60
|
+
* Ruby 3.4で`csv` gemと`nkf` gemがdefault gemではなくなる警告に対応しました([#1911])
|
|
61
|
+
|
|
62
|
+
## コントリビューターのみなさん
|
|
63
|
+
* [@fabon-f](https://github.com/fabon-f)
|
|
64
|
+
|
|
65
|
+
[#1911]: https://github.com/kmuto/review/pull/1911
|
|
66
|
+
[#1913]: https://github.com/kmuto/review/issues/1913
|
|
67
|
+
[#1914]: https://github.com/kmuto/review/pull/1914
|
|
68
|
+
[#1915]: https://github.com/kmuto/review/issues/1915
|
|
69
|
+
[#1916]: https://github.com/kmuto/review/issues/1916
|
|
70
|
+
[#1917]: https://github.com/kmuto/review/issues/1917
|
|
71
|
+
[#1918]: https://github.com/kmuto/review/issues/1918
|
|
72
|
+
[#1919]: https://github.com/kmuto/review/pull/1919
|
|
73
|
+
[#1921]: https://github.com/kmuto/review/pull/1921
|
|
74
|
+
[#1923]: https://github.com/kmuto/review/pull/1923
|
|
75
|
+
|
|
1
76
|
# Version 5.9.0
|
|
2
77
|
## バグ修正
|
|
3
78
|
* LATEXBuilder: `@<code>`, `@<tt>`, `@<tti>`, `@<ttb>`での空白幅が適切になるよう修正しました。またPDF栞の扱いを改善しました([#1906],[#1907])。
|
|
@@ -948,7 +1023,7 @@
|
|
|
948
1023
|
* CSS 組版向けに EPUB ファイルを単一 HTML ファイルに変換する `review-epub2html` コマンドを追加しました ([#1098])
|
|
949
1024
|
|
|
950
1025
|
## 非互換の変更
|
|
951
|
-
* PDFMaker: `texcommand`、`
|
|
1026
|
+
* PDFMaker: `texcommand`、`dvicommand`、`makeindex_command` に空白文字入りのパスを指定できるようにしました。これに伴い、これらのパラメータはコマンドオプションを取ることはできなくなりました。コマンドオプションは本来の `texoptions`、`dvioptions`、`makeindex_options` のパラメータに指定してください ([#1091])
|
|
952
1027
|
* PDFMaker: book.re というファイルで生じるビルドの失敗を修正しました。これまではベースファイルとして `book.tex` という名前のファイルを内部で作成していましたが、`__REVIEW_BOOK__.tex` という名前に変更しました ([#1081])
|
|
953
1028
|
* PDFMaker: jsbook ベーススタイルにおいて、geometry を読み込まないようにしました ([#912])
|
|
954
1029
|
* PDFMaker: jsbook ベーススタイルにおいて、ページ番号を見開きの左右に振るようにしました ([#1032])
|
|
@@ -1093,7 +1168,7 @@
|
|
|
1093
1168
|
|
|
1094
1169
|
## 新機能
|
|
1095
1170
|
* プレインテキストを出力する review-textmaker コマンドを用意しました ([#926])
|
|
1096
|
-
* LaTeX 向けに、図版の
|
|
1171
|
+
* LaTeX 向けに、図版の BoundingBox の採取手段を変更する `pdfmaker/bbox` パラメータを追加しました ([#947])
|
|
1097
1172
|
* 新機能:空行を入れる命令 `//blankline` を追加しました ([#942])
|
|
1098
1173
|
|
|
1099
1174
|
## 非互換の変更
|
|
@@ -1970,7 +2045,7 @@
|
|
|
1970
2045
|
|
|
1971
2046
|
### HTMLBuilder
|
|
1972
2047
|
|
|
1973
|
-
* pygmentsによる
|
|
2048
|
+
* pygmentsによるhighlightingをconfig.ymlで"pygments: true"と指定した場合のみ有効になるようにしました。
|
|
1974
2049
|
* EPUB3での脚注について、epub:type="noteref"とepub:type="footnote"が指定されるようになりました。
|
|
1975
2050
|
|
|
1976
2051
|
### LATEXBuilder
|
data/NEWS.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
+
# Version 5.11.0
|
|
2
|
+
## Bug fixes
|
|
3
|
+
* Fixed errors occurring with ruby-zip v3.x ([#1941], [#1942]).
|
|
4
|
+
* LATEXBuilder: Fixed an issue where internal anchor links starting with `#...` in `@<href>` op would break ([#1955]).
|
|
5
|
+
* Fixed a build error when using review-jsbook in combination with TeXLive 2026 or later ([#1960], [#1961]).
|
|
6
|
+
|
|
7
|
+
## Enhancements
|
|
8
|
+
* Added support for Ruby 3.4 ([#1933], [#1939]).
|
|
9
|
+
* Enabled support for `//firstlinenum` in PLAINTEXTBuilder and TOPBuilder ([#1931]).
|
|
10
|
+
|
|
11
|
+
## Docs
|
|
12
|
+
* Fixed typos across various documents ([#1928]).
|
|
13
|
+
* Updated `format.md` ([#1948]).
|
|
14
|
+
|
|
15
|
+
## Others
|
|
16
|
+
* Removed Travis CI configuration ([#1943]).
|
|
17
|
+
* Improved testing methods and related implementations ([#1945], [#1953], [#1954], [#1957], [#1958]).
|
|
18
|
+
* Applied suggestions from RuboCop 1.80.1 ([#1946]).
|
|
19
|
+
* Added `ReVIEW::SnapshotLocation` for retrieving immutable location information ([#1949]).
|
|
20
|
+
* Added `ReVIEW::LineInput.from_string` method to create `ReVIEW::LineInput` objects from strings ([#1950]).
|
|
21
|
+
* Added `ReVIEW::Highlighter` class to handle syntax highlighting processes ([#1951]).
|
|
22
|
+
* IndexBuilder: Added support for processing `@<ref>` and `@<labelref>` ([#1952]).
|
|
23
|
+
|
|
24
|
+
## Contributors
|
|
25
|
+
* [@kachick](https://github.com/kachick)
|
|
26
|
+
* [@kurank](https://github.com/kurank)
|
|
27
|
+
* [@y-yagi](https://github.com/y-yagi)
|
|
28
|
+
* [@munepi](https://github.com/munepi)
|
|
29
|
+
|
|
30
|
+
[#1928]: https://github.com/kmuto/review/pull/1928
|
|
31
|
+
[#1931]: https://github.com/kmuto/review/pull/1931
|
|
32
|
+
[#1933]: https://github.com/kmuto/review/issues/1933
|
|
33
|
+
[#1939]: https://github.com/kmuto/review/pull/1939
|
|
34
|
+
[#1941]: https://github.com/kmuto/review/pull/1941
|
|
35
|
+
[#1942]: https://github.com/kmuto/review/pull/1942
|
|
36
|
+
[#1943]: https://github.com/kmuto/review/pull/1943
|
|
37
|
+
[#1945]: https://github.com/kmuto/review/pull/1945
|
|
38
|
+
[#1946]: https://github.com/kmuto/review/pull/1946
|
|
39
|
+
[#1948]: https://github.com/kmuto/review/pull/1948
|
|
40
|
+
[#1949]: https://github.com/kmuto/review/pull/1949
|
|
41
|
+
[#1950]: https://github.com/kmuto/review/pull/1950
|
|
42
|
+
[#1951]: https://github.com/kmuto/review/pull/1951
|
|
43
|
+
[#1952]: https://github.com/kmuto/review/pull/1952
|
|
44
|
+
[#1953]: https://github.com/kmuto/review/pull/1953
|
|
45
|
+
[#1954]: https://github.com/kmuto/review/pull/1954
|
|
46
|
+
[#1955]: https://github.com/kmuto/review/pull/1955
|
|
47
|
+
[#1957]: https://github.com/kmuto/review/pull/1957
|
|
48
|
+
[#1958]: https://github.com/kmuto/review/pull/1958
|
|
49
|
+
[#1960]: https://github.com/kmuto/review/issues/1960
|
|
50
|
+
[#1961]: https://github.com/kmuto/review/pull/1961
|
|
51
|
+
|
|
52
|
+
# Version 5.10.0
|
|
53
|
+
## Bug Fixes
|
|
54
|
+
* Fixed an issue where specifying both a subdirectory and a custom page would cause an error ([#1913], [#1914]).
|
|
55
|
+
* EPUBBuilder: Resolved an issue with long build times. ([#1915], [#1916], [#1919]).
|
|
56
|
+
* EPUBMaker: When `verify_target_images` is enabled, modified to implicitly include coverimage ([#1918], [#1923]).
|
|
57
|
+
* Changed the metric option of ImageMagick's compare command to use `SSIM` ([#1917], [#1921]).
|
|
58
|
+
|
|
59
|
+
## Enhancements
|
|
60
|
+
* Resolved warnings about the `csv` and `nkf` gems no longer being default gems in Ruby 3.4 ([#1911]).
|
|
61
|
+
|
|
62
|
+
## Contributors
|
|
63
|
+
* [@fabon-f](https://github.com/fabon-f)
|
|
64
|
+
|
|
65
|
+
[#1911]: https://github.com/kmuto/review/pull/1911
|
|
66
|
+
[#1913]: https://github.com/kmuto/review/issues/1913
|
|
67
|
+
[#1914]: https://github.com/kmuto/review/pull/1914
|
|
68
|
+
[#1915]: https://github.com/kmuto/review/issues/1915
|
|
69
|
+
[#1916]: https://github.com/kmuto/review/issues/1916
|
|
70
|
+
[#1917]: https://github.com/kmuto/review/issues/1917
|
|
71
|
+
[#1918]: https://github.com/kmuto/review/issues/1918
|
|
72
|
+
[#1919]: https://github.com/kmuto/review/pull/1919
|
|
73
|
+
[#1921]: https://github.com/kmuto/review/pull/1921
|
|
74
|
+
[#1923]: https://github.com/kmuto/review/pull/1923
|
|
75
|
+
|
|
1
76
|
# Version 5.9.0
|
|
2
77
|
## Bug Fixes
|
|
3
78
|
* LATEXBuilder: fix the spacing for `@<code>`, `@<tt>`, `@<tti>`, `@<ttb>` to be more appropriate. Also improved handling of PDF bookmarks ([#1906], [#1907]).
|
|
@@ -255,7 +330,7 @@
|
|
|
255
330
|
|
|
256
331
|
## Bug Fixes
|
|
257
332
|
* fixed WebMaker, review-vol and review-index errors when `contentdir` is defined ([#1633])
|
|
258
|
-
* WebMaker: fixed `images/html`
|
|
333
|
+
* WebMaker: fixed `images/html` folder not being found ([#1623])
|
|
259
334
|
* PDFMaker: fixed chapterlink in term list ([#1619])
|
|
260
335
|
* PDFMaker: fixed errors when index contains `{`, `}`, or `|` ([#1611])
|
|
261
336
|
* review-vol: valid error messages will be displayed when invalid headings are found ([#1604])
|
|
@@ -285,7 +360,7 @@
|
|
|
285
360
|
* added a test of TeX compilation to GitHub Actions ([#1643])
|
|
286
361
|
* refactored codes according to Rubocop 1.10 ([#1593], [#1598], [#1613], [#1636], [#1647], [#1669])
|
|
287
362
|
* fixed duplicate IDs of syntax-book sample ([#1646])
|
|
288
|
-
* refactored the way to reference relative
|
|
363
|
+
* refactored the way to reference relative paths ([#1639])
|
|
289
364
|
* refactored `ReVIEW::LineInput` class ([#1638])
|
|
290
365
|
* update Copyright to 2021 ([#1632])
|
|
291
366
|
* added Ruby 3.0 to the test platform ([#1622])
|
|
@@ -362,7 +437,7 @@
|
|
|
362
437
|
|
|
363
438
|
## Bug Fixes
|
|
364
439
|
* PDFMaker: fixed a problem with multiple same-named image files with different extensions that would cause them to be misaligned ([#1483])
|
|
365
|
-
* PDFMaker: fixed a problem that
|
|
440
|
+
* PDFMaker: fixed a problem that caused an error when the author name (`aut`) was empty ([#1517])
|
|
366
441
|
* PDFMaker: fixed a problem that caused an error if `//indepimage`'s image file didn't exist and ID contained characters to be TeX-escaped ([#1527])
|
|
367
442
|
* PDFMaker: fixed a problem with characters to be TeX-escaped in the `bookttilename` and `aut` parameters causing incorrect PDF metainformation ([#1533])
|
|
368
443
|
* WebMaker: fixed to avoid nil in HTML template ([#1545])
|
|
@@ -372,7 +447,7 @@
|
|
|
372
447
|
## Enhancements
|
|
373
448
|
* fix warning message to output more detailed information of item ([#1523])
|
|
374
449
|
* PDFMaker: make `@<hd>` op a hyperlink (when `media=ebook`) ([#1530])
|
|
375
|
-
* use `cgi/escape` first and `cgi/util` as fallback. remove
|
|
450
|
+
* use `cgi/escape` first and `cgi/util` as fallback. remove original implementation in `ReVIEW::HTMLUtils.escape()` ([#1536])
|
|
376
451
|
* suppress warning with same `@<icon>` ([#1541])
|
|
377
452
|
* fix an error handling when a badly encoded file is received ([#1544])
|
|
378
453
|
* introduce IndexBuilder. IndexBuilder first scans the entire project files and provides indexes for each builder ([#1384], [#1552])
|
|
@@ -475,7 +550,7 @@
|
|
|
475
550
|
|
|
476
551
|
# Version 4.1.0
|
|
477
552
|
## New Features
|
|
478
|
-
* add `table_row_separator` to specify a separator that separates table rows.
|
|
553
|
+
* add `table_row_separator` to specify a separator that separates table rows. Acceptable value: tabs (means `\t+`, default), `singletab` (means `\t`), spaces (means `\s+`), verticalbar (means `\s*\|\s*`) ([#1420])
|
|
479
554
|
* PDFMaker, EPUBMaker, WEBMaker, TEXTMaker, IDGXMLMaker: add `-y` (`--only`) option to specify the files to convert instead of all files ([#1428])
|
|
480
555
|
* add `--without-config-comment` option to review-init command to exclude comments from config.yml ([#1453])
|
|
481
556
|
* PDFMaker: add `use_original_image_size` in `pdfmaker` section. If this parameter is set to true, images in `//image`, `//indepimage`, and `//imgtable` will be placed in actual size, not textwidth ([#1461])
|
|
@@ -622,7 +697,7 @@
|
|
|
622
697
|
* refactor mkdchap* and mkpart* ([#1383])
|
|
623
698
|
* don't update rubygems in Travis CI ([#1389])
|
|
624
699
|
* refactor around Index ([#1390])
|
|
625
|
-
* add
|
|
700
|
+
* add configuration for review-jlreq to sample documents ([#1391])
|
|
626
701
|
* definition list should start with spaces ([#1398])
|
|
627
702
|
|
|
628
703
|
## Contributors
|
|
@@ -947,7 +1022,7 @@
|
|
|
947
1022
|
* add `review-epub2html` to produce single HTML file from EPUB file for CSS typesetting ([#1098])
|
|
948
1023
|
|
|
949
1024
|
## Breaking Changes
|
|
950
|
-
* PDFMaker: allow a path with space character on `texcommand`, `
|
|
1025
|
+
* PDFMaker: allow a path with space character on `texcommand`, `dvicommand`, and `makeindex_command`. Due to this change, these parameters no longer take command options. use `texoptions`, `dvioptions`, and `makeindex_options` to specify options ([#1091])
|
|
951
1026
|
* PDFMaker: the file used internally has been changed from `book.tex` to `__REVIEW_BOOK__.tex` ([#1081])
|
|
952
1027
|
* PDFMaker: dropped geometry.sty from jsbook style ([#912])
|
|
953
1028
|
* PDFMaker: use twocolumn option for jsbook style ([#1032])
|
|
@@ -967,7 +1042,7 @@
|
|
|
967
1042
|
|
|
968
1043
|
## Docs
|
|
969
1044
|
* Move sample documents to /samples folder ([#1073])
|
|
970
|
-
* Add descriptions
|
|
1045
|
+
* Add descriptions about hooks and parameters of indexing into `config.yml.sample` ([#1097])
|
|
971
1046
|
* Fix typo in quickstart.md ([#1079])
|
|
972
1047
|
|
|
973
1048
|
## Contributors
|
|
@@ -1011,7 +1086,7 @@
|
|
|
1011
1086
|
* When the value of review_version is 3 or more, `@<m>` no longer add a space before and after formula ([#943])
|
|
1012
1087
|
* the function of automatic detection of highlight target language by identifier in `//list`, `//listnum` is removed from HTMLBuilder ([#1016])
|
|
1013
1088
|
* LATEXBuilder: restructured `layout.tex.erb` ([#950])
|
|
1014
|
-
* LATEXBuilder: add a new
|
|
1089
|
+
* LATEXBuilder: add a new environment `reviewlistblock` in LaTeX ([#916])
|
|
1015
1090
|
* LATEXBuilder: attach `plistings` package and suport it instead of jlisting for `listings` ([#635])
|
|
1016
1091
|
* LATEXBuilder: remove underline in anchor for printing use ([#808])
|
|
1017
1092
|
* LATEXBuilder: use more abstract name like `\reviewbold` instead of `\textbf` ([#792])
|
|
@@ -1092,7 +1167,7 @@
|
|
|
1092
1167
|
## New Features
|
|
1093
1168
|
|
|
1094
1169
|
* add a new maker command `review-textmaker` to output plain text files ([#926])
|
|
1095
|
-
* LATEXBuilder: add a new parameter `pdfmaker/bbox` for settings of
|
|
1170
|
+
* LATEXBuilder: add a new parameter `pdfmaker/bbox` for settings of BoundingBox ([#947])
|
|
1096
1171
|
* add a new command `//blankline` ([#942])
|
|
1097
1172
|
|
|
1098
1173
|
## Breaking Changes
|
|
@@ -1107,7 +1182,7 @@
|
|
|
1107
1182
|
* fix column closing ([#894])
|
|
1108
1183
|
* fix internal errors in `@<hd>` ([#896])
|
|
1109
1184
|
* LATEXBuilder: fix to ignore empty caption ([#922])
|
|
1110
|
-
* fix invalid
|
|
1185
|
+
* fix invalid command errors in `//graph` when using gnuplot ([#931])
|
|
1111
1186
|
* fix errors of `review` command in Windows ([#940])
|
|
1112
1187
|
* EPUBMaker: fix error of removing temporary files in Windows ([#946])
|
|
1113
1188
|
|
|
@@ -1172,7 +1247,7 @@
|
|
|
1172
1247
|
* use built-in Logger class for warns and errors ([#705])
|
|
1173
1248
|
* EPUBMaker: warn of large images because of rejecting ebook stores ([#819])
|
|
1174
1249
|
* LATEXBuilder: add new inline command `@<pageref>` ([#836])
|
|
1175
|
-
* support inline
|
|
1250
|
+
* support inline notation `| |` and `$ $` instead of `{}` to suppress escaping `}` ([#876])
|
|
1176
1251
|
|
|
1177
1252
|
## Breaking Changes
|
|
1178
1253
|
|
|
@@ -1187,7 +1262,7 @@
|
|
|
1187
1262
|
|
|
1188
1263
|
* fix misrecognition of HeadlineIndex ([#121])
|
|
1189
1264
|
* TOPBuilder: fix metric parameter in `//image` and `//indepimage` ([#805])
|
|
1190
|
-
* fix
|
|
1265
|
+
* fix referring columns in other chapters ([#817])
|
|
1191
1266
|
* use execution date when `date` in config.yml is empty ([#824])
|
|
1192
1267
|
* fix I18N messages of `listref`, `imgref`, and `tableref` in frontmatters and backmatters ([#830])
|
|
1193
1268
|
* WebMaker: fix booktitle using Hash ([#831])
|
|
@@ -1211,7 +1286,7 @@
|
|
|
1211
1286
|
|
|
1212
1287
|
## Others
|
|
1213
1288
|
|
|
1214
|
-
* fix coding rules to
|
|
1289
|
+
* fix coding rules to suppress rubocop v0.50.0 ([#823])
|
|
1215
1290
|
|
|
1216
1291
|
## Contributors
|
|
1217
1292
|
|
|
@@ -1316,7 +1391,7 @@
|
|
|
1316
1391
|
* PDFMaker: support index `@<idx>`, `@<hidx>` ([#261],[#660],[#669],[#740])
|
|
1317
1392
|
* add RSTBuilder ([#733],[#738])
|
|
1318
1393
|
* add `//embed{...//}` and `@<embed>{...}` ([#730],[#751],[#757],[#758])
|
|
1319
|
-
* HTMLBuilder, IDGXMLBuilder, LATEXBuilder:
|
|
1394
|
+
* HTMLBuilder, IDGXMLBuilder, LATEXBuilder: support `//firstlinenum` for `//listnum` and `//emlistnum` ([#685],[#688])
|
|
1320
1395
|
* review-compile: `--nolfinxml` is deprecated ([#683],[#708])
|
|
1321
1396
|
* HTMLBuilder: Enclose references (`@<img>`, `@<table>`, and `@<list>`) with `<span>`. Class names are 'imgref', 'tableref', and 'listref'. ([#696],[#697])
|
|
1322
1397
|
* HTMLBuilder: support Rouge ([#684],[#710],[#711])
|
|
@@ -1525,7 +1600,7 @@
|
|
|
1525
1600
|
* PDFMaker: Migrate platex to uplatex ([#541])
|
|
1526
1601
|
* EPUBMaker: Support ebpaj format. ([#251], [#429])
|
|
1527
1602
|
* EPUBMaker: Add `direction` in default setting ([#508])
|
|
1528
|
-
* EPUBMaker: Allow `
|
|
1603
|
+
* EPUBMaker: Allow `pronunciation` of booktitle and author ([#507])
|
|
1529
1604
|
* review-preproc: allow monkeypatch in review-preproc ([#494])
|
|
1530
1605
|
* HTMLBuilder: Disable hyperlink with `@<href>` with epubmaker/externallink: false in config.yml ([#509], [#544])
|
|
1531
1606
|
* EPUBMaker: Add custom prefix and `<meta>` element in OPF ([#513])
|
|
@@ -1977,7 +2052,7 @@ To support language parameter for syntax highlighting, if you use review-ext.rb
|
|
|
1977
2052
|
|
|
1978
2053
|
### HTMLBuilder
|
|
1979
2054
|
|
|
1980
|
-
* Use pygments
|
|
2055
|
+
* Use pygments highlighting only if "pygments: true" is defined.
|
|
1981
2056
|
* Support epub:type="noteref" and epub:type="footnote" in EPUB3
|
|
1982
2057
|
|
|
1983
2058
|
### LATEXBuilder
|
data/Rakefile
CHANGED
data/bin/review
CHANGED
data/bin/review-check
CHANGED
data/bin/review-checkdep
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
2
4
|
#
|
|
3
5
|
# Copyright (c) 2007-2017 Minero Aoki, Kenshi Muto
|
|
4
6
|
# 1999-2007 Minero Aoki
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
|
|
12
14
|
$LOAD_PATH.unshift(File.realpath('../lib', __dir__))
|
|
13
15
|
|
|
14
|
-
PREDEF_FILE = 'PREDEF'
|
|
16
|
+
PREDEF_FILE = 'PREDEF'
|
|
15
17
|
|
|
16
18
|
def main
|
|
17
19
|
@provided = parse_predefined
|
data/bin/review-compile
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
2
4
|
#
|
|
3
5
|
# Copyright (c) 2008-2019 Kenshi Muto, Masayoshi Takahashi, KADO Masanori, Minero Aoki
|
|
4
6
|
# Copyright (c) 1999-2007 Minero Aoki
|
|
@@ -18,7 +20,7 @@ require 'yaml'
|
|
|
18
20
|
|
|
19
21
|
include ReVIEW::Loggable
|
|
20
22
|
|
|
21
|
-
DEFAULT_CONFIG_FILENAME = 'config.yml'
|
|
23
|
+
DEFAULT_CONFIG_FILENAME = 'config.yml'
|
|
22
24
|
|
|
23
25
|
def main
|
|
24
26
|
Signal.trap(:INT) { exit 1 }
|
data/bin/review-epub2html
CHANGED
data/bin/review-epubmaker
CHANGED
data/bin/review-idgxmlmaker
CHANGED
data/bin/review-index
CHANGED
data/bin/review-init
CHANGED
data/bin/review-pdfmaker
CHANGED
data/bin/review-preproc
CHANGED
data/bin/review-textmaker
CHANGED
data/bin/review-update
CHANGED
data/bin/review-validate
CHANGED
data/bin/review-vol
CHANGED