review 4.0.0 → 4.1.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/ruby-win.yml +39 -0
- data/.github/workflows/ruby.yml +27 -0
- data/.rubocop.yml +10 -7
- data/Dockerfile +21 -5
- data/NEWS.ja.md +101 -1
- data/NEWS.md +102 -2
- data/README.md +10 -7
- data/appveyor.yml +0 -20
- data/bin/review-compile +1 -1
- data/bin/review-validate +1 -1
- data/doc/config.yml.sample +12 -1
- data/doc/config.yml.sample-simple +1 -0
- data/doc/format.ja.md +16 -4
- data/doc/format.md +2 -1
- data/doc/quickstart.ja.md +40 -23
- data/doc/quickstart.md +33 -15
- data/lib/review/book/base.rb +8 -7
- data/lib/review/book/index.rb +50 -56
- data/lib/review/book/index/item.rb +1 -1
- data/lib/review/builder.rb +26 -4
- data/lib/review/compiler.rb +6 -3
- data/lib/review/configure.rb +5 -3
- data/lib/review/epubmaker.rb +15 -2
- data/lib/review/extentions/string.rb +0 -4
- data/lib/review/htmlbuilder.rb +4 -15
- data/lib/review/idgxmlbuilder.rb +10 -19
- data/lib/review/idgxmlmaker.rb +10 -3
- data/lib/review/init.rb +8 -1
- data/lib/review/latexbuilder.rb +13 -6
- data/lib/review/pdfmaker.rb +24 -9
- data/lib/review/rstbuilder.rb +2 -2
- data/lib/review/textmaker.rb +7 -1
- data/lib/review/tocparser.rb +6 -2
- data/lib/review/version.rb +1 -1
- data/lib/review/webmaker.rb +8 -1
- data/review.gemspec +2 -2
- data/samples/sample-book/src/.gitignore +1 -0
- data/samples/sample-book/src/config-ebook.yml +4 -0
- data/samples/sample-book/src/config-jlreq-ebook.yml +4 -0
- data/samples/sample-book/src/config.yml +1 -1
- data/samples/sample-book/src/lib/tasks/review.rake +10 -6
- data/samples/syntax-book/ch01.re +4 -2
- data/samples/syntax-book/ch02.re +8 -16
- data/samples/syntax-book/config-jlreq-lualatex.yml +4 -0
- data/samples/syntax-book/config-print.yml +3 -0
- data/samples/syntax-book/config.yml +1 -1
- data/samples/syntax-book/lib/tasks/review.rake +23 -8
- data/templates/latex/config.erb +6 -6
- data/templates/latex/review-jlreq/review-base.sty +14 -4
- data/templates/latex/review-jlreq/review-jlreq.cls +10 -1
- data/templates/latex/review-jlreq/review-style.sty +1 -1
- data/templates/latex/review-jsbook/review-base.sty +10 -0
- data/templates/latex/review-jsbook/review-jsbook.cls +1 -1
- data/templates/latex/review-jsbook/review-style.sty +1 -1
- data/test/assets/test_template.tex +6 -6
- data/test/assets/test_template_backmatter.tex +6 -6
- data/test/test_book.rb +8 -0
- data/test/test_book_chapter.rb +4 -2
- data/test/test_catalog.rb +1 -0
- data/test/test_epubmaker_cmd.rb +12 -5
- data/test/test_helper.rb +11 -6
- data/test/test_htmlbuilder.rb +80 -8
- data/test/test_idgxmlbuilder.rb +57 -2
- data/test/test_idgxmlmaker_cmd.rb +46 -0
- data/test/test_image_finder.rb +52 -70
- data/test/test_index.rb +12 -12
- data/test/test_latexbuilder.rb +171 -8
- data/test/test_latexbuilder_v2.rb +9 -7
- data/test/test_pdfmaker_cmd.rb +99 -5
- data/test/test_textmaker_cmd.rb +54 -0
- data/test/test_topbuilder.rb +59 -0
- data/vendor/jsclasses/LICENSE +1 -1
- data/vendor/jsclasses/jis/jsarticle.cls +53 -14
- data/vendor/jsclasses/jis/jsbook.cls +53 -14
- data/vendor/jsclasses/jis/jsclasses.dtx +84 -25
- data/vendor/jsclasses/jis/jslogo.dtx +4 -4
- data/vendor/jsclasses/jis/jslogo.sty +3 -3
- data/vendor/jsclasses/jis/jspf.cls +52 -13
- data/vendor/jsclasses/jis/jsreport.cls +53 -14
- data/vendor/jsclasses/jis/kiyou.cls +53 -14
- data/vendor/jsclasses/jis/okumacro.dtx +4 -5
- data/vendor/jsclasses/jis/okumacro.sty +3 -4
- data/vendor/jsclasses/jsarticle.cls +53 -14
- data/vendor/jsclasses/jsbook.cls +53 -14
- data/vendor/jsclasses/jsclasses.dtx +84 -25
- data/vendor/jsclasses/jsclasses.pdf +0 -0
- data/vendor/jsclasses/jslogo.dtx +4 -4
- data/vendor/jsclasses/jslogo.pdf +0 -0
- data/vendor/jsclasses/jslogo.sty +3 -3
- data/vendor/jsclasses/jspf.cls +52 -13
- data/vendor/jsclasses/jsreport.cls +53 -14
- data/vendor/jsclasses/kiyou.cls +53 -14
- data/vendor/jsclasses/okumacro.dtx +4 -5
- data/vendor/jsclasses/okumacro.pdf +0 -0
- data/vendor/jsclasses/okumacro.sty +3 -4
- metadata +15 -6
- data/samples/syntax-book/review-ext.rb +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 364df2692f5e92ca2eaf1b327861324d6d964b1534d468c951476eb5603f1275
|
|
4
|
+
data.tar.gz: 57b1f560b2a08559596f6eb55d3f5af942bb5712447470b506c1f2ac780287eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53298e1df89dc374b4809a8c4b7602885dc911df397fd1271a2504c030649e059a3f876c499a0d0c358c56d16e7dc3d50183b36b06dfff6e4f41d0853497f76d
|
|
7
|
+
data.tar.gz: 2ce2cd48f28475c89d5305c0097031d19cfdbe11d3b0d8e9f16213fe1ef1b977324fe5a1996706b69b7204789270535f5cfac0254b015a9a7a8d0efd496c5ffa
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: TestWin
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: windows-latest
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v1
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: actions/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
|
20
|
+
- name: Build and test with Rake
|
|
21
|
+
shell: bash
|
|
22
|
+
run: |
|
|
23
|
+
gem install bundler --no-document
|
|
24
|
+
bundle install --retry 3
|
|
25
|
+
bundle exec ruby test/run_test.rb --max-diff-target-string-size=10000 --verbose=v
|
|
26
|
+
- name: Test with epubcheck-ruby
|
|
27
|
+
shell: bash
|
|
28
|
+
run: |
|
|
29
|
+
gem install -N epubcheck-ruby
|
|
30
|
+
ruby bin/review-init hello
|
|
31
|
+
cd hello
|
|
32
|
+
ruby ../bin/review-epubmaker config.yml
|
|
33
|
+
epubcheck book.epub
|
|
34
|
+
cd ..
|
|
35
|
+
ruby bin/review-init hello2 --epub-version 2
|
|
36
|
+
cd hello2
|
|
37
|
+
ruby ../bin/review-epubmaker config.yml
|
|
38
|
+
epubcheck book.epub
|
|
39
|
+
cd ..
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ${{ matrix.os }}
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
ruby: [2.4, 2.5, 2.6, 2.7]
|
|
13
|
+
os: [ubuntu-latest, macOS-latest]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: eregon/use-ruby-action@master
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
|
20
|
+
- name: fix ImageMagick policy.xml on Linux
|
|
21
|
+
if: runner.os == 'Linux'
|
|
22
|
+
run: sudo sed -i 's/none/read|write/g' /etc/ImageMagick-6/policy.xml
|
|
23
|
+
- name: Build and test with Rake
|
|
24
|
+
run: |
|
|
25
|
+
gem install bundler --no-document
|
|
26
|
+
bundle install --retry 3
|
|
27
|
+
bundle exec rake
|
data/.rubocop.yml
CHANGED
|
@@ -40,6 +40,9 @@ Lint/UnusedMethodArgument:
|
|
|
40
40
|
Lint/UselessAssignment:
|
|
41
41
|
Enabled: true
|
|
42
42
|
|
|
43
|
+
Lint/ErbNewArguments:
|
|
44
|
+
Enabled: false
|
|
45
|
+
|
|
43
46
|
#### Performance
|
|
44
47
|
|
|
45
48
|
Performance/RegexpMatch:
|
|
@@ -141,7 +144,7 @@ Style/MutableConstant:
|
|
|
141
144
|
#Style/MultipleComparison:
|
|
142
145
|
# Enabled: true
|
|
143
146
|
|
|
144
|
-
Style/
|
|
147
|
+
Style/RedundantInterpolation:
|
|
145
148
|
Enabled: true
|
|
146
149
|
|
|
147
150
|
Performance/RedundantMerge:
|
|
@@ -301,7 +304,7 @@ Style/TrailingCommaInHashLiteral:
|
|
|
301
304
|
Style/WordArray:
|
|
302
305
|
MinSize: 10
|
|
303
306
|
|
|
304
|
-
Style/
|
|
307
|
+
Style/RedundantPercentQ:
|
|
305
308
|
Enabled: false
|
|
306
309
|
|
|
307
310
|
Style/WhileUntilModifier:
|
|
@@ -316,7 +319,7 @@ Layout/BlockAlignment:
|
|
|
316
319
|
Enabled: true
|
|
317
320
|
|
|
318
321
|
Layout/EndAlignment:
|
|
319
|
-
Enabled:
|
|
322
|
+
Enabled: true
|
|
320
323
|
|
|
321
324
|
Layout/MultilineMethodCallBraceLayout:
|
|
322
325
|
Enabled: true
|
|
@@ -362,10 +365,10 @@ Layout/IndentationConsistency:
|
|
|
362
365
|
Layout/IndentationWidth:
|
|
363
366
|
Enabled: true
|
|
364
367
|
|
|
365
|
-
Layout/
|
|
368
|
+
Layout/FirstHashElementIndentation:
|
|
366
369
|
Enabled: true
|
|
367
370
|
|
|
368
|
-
Layout/
|
|
371
|
+
Layout/HeredocIndentation:
|
|
369
372
|
Enabled: false
|
|
370
373
|
|
|
371
374
|
Layout/LeadingCommentSpace:
|
|
@@ -412,7 +415,7 @@ Layout/SpaceInsideStringInterpolation:
|
|
|
412
415
|
EnforcedStyle: no_space
|
|
413
416
|
Enabled: true
|
|
414
417
|
|
|
415
|
-
Layout/
|
|
418
|
+
Layout/TrailingEmptyLines:
|
|
416
419
|
Enabled: true
|
|
417
420
|
|
|
418
421
|
Layout/TrailingWhitespace:
|
|
@@ -492,7 +495,7 @@ Naming/MemoizedInstanceVariableName:
|
|
|
492
495
|
Naming/MethodName:
|
|
493
496
|
Enabled: true
|
|
494
497
|
|
|
495
|
-
Naming/
|
|
498
|
+
Naming/MethodParameterName:
|
|
496
499
|
Enabled: false
|
|
497
500
|
|
|
498
501
|
# Use snake_case for variable names.
|
data/Dockerfile
CHANGED
|
@@ -9,13 +9,29 @@
|
|
|
9
9
|
#
|
|
10
10
|
# cf. https://github.com/vvakame/docker-review/blob/master/Dockerfile
|
|
11
11
|
|
|
12
|
-
FROM debian:
|
|
12
|
+
FROM debian:buster
|
|
13
13
|
MAINTAINER takahashim
|
|
14
14
|
|
|
15
|
-
RUN apt-get update \
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
RUN apt-get update && \
|
|
16
|
+
apt-get install -y --no-install-recommends \
|
|
17
|
+
locales git-core curl ca-certificates && \
|
|
18
|
+
apt-get clean && \
|
|
19
|
+
rm -rf /var/lib/apt/lists/*
|
|
20
|
+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
21
|
+
RUN locale-gen en_US.UTF-8 && update-locale en_US.UTF-8
|
|
22
|
+
|
|
23
|
+
RUN apt-get update && \
|
|
24
|
+
apt-get install -y --no-install-recommends \
|
|
25
|
+
texlive-lang-japanese texlive-fonts-recommended texlive-latex-extra lmodern fonts-lmodern cm-super tex-gyre fonts-texgyre texlive-pictures texlive-plain-generic \
|
|
26
|
+
ghostscript gsfonts \
|
|
27
|
+
zip ruby-zip \
|
|
28
|
+
ruby-nokogiri mecab ruby-mecab mecab-ipadic-utf8 poppler-data \
|
|
29
|
+
mecab-jumandic- mecab-jumandic-utf8- \
|
|
30
|
+
texlive-extra-utils poppler-utils && \
|
|
31
|
+
apt-get clean && \
|
|
32
|
+
rm -rf /var/lib/apt/lists/*
|
|
33
|
+
RUN kanji-config-updmap-sys ipaex
|
|
34
|
+
|
|
19
35
|
RUN gem install review rake bundler --no-rdoc --no-ri
|
|
20
36
|
|
|
21
37
|
VOLUME ["/work"]
|
data/NEWS.ja.md
CHANGED
|
@@ -1,9 +1,109 @@
|
|
|
1
|
+
# Version 4.1.0
|
|
2
|
+
## 新機能
|
|
3
|
+
* 表のセル区切りの文字を `table_row_separator` パラメータで変更できるようにしました。指定可能な値は tabs (1個以上のタブ、デフォルト)、singletab (1文字のタブ文字区切り)、spaces (1文字以上のスペースまたはタブ文字の区切り)、 verticalbar ("0個以上の空白 | 0個以上の空白" の区切り) です ([#1420])
|
|
4
|
+
* PDFMaker, EPUBMaker, WEBMaker, TEXTMaker, IDGXMLMaker: 全ファイルでなく変換対象ファイルを指定するための `-y`(または`--only`)オプションを追加しました ([#1428], [#1467])
|
|
5
|
+
* config.yml のコメント行を含めないようにする `--without-config-comment` オプションを review-init に追加しました ([#1453])
|
|
6
|
+
* PDFMaker: `pdfmaker` セクションに `use_original_image_size` パラメータを新設しました。デフォルトでは `//image`, `//indepimage`, `//imgtable` で挿入する画像において、metrics の指定がないときには版面の横幅に合うよう拡縮しますが、`use_original_image_size` パラメータを true に設定すると、拡縮なしで原寸のまま配置します ([#1461])
|
|
7
|
+
|
|
8
|
+
## 非互換の変更
|
|
9
|
+
* PDFMaker: config.yml の `image_scale2width` パラメータを、直下から `pdfmaker` セクションの下に属するように変更しました ([#1462])
|
|
10
|
+
|
|
11
|
+
## バグ修正
|
|
12
|
+
* PDFMaker: Re:VIEW 3 系のプロジェクトとの後方互換処理の誤りを修正しました ([#1414])
|
|
13
|
+
* PDFMaker: review-jlreq を LuaLaTeX でコンパイルしたときのエラーを修正しました ([#1416])
|
|
14
|
+
* PDFMaker: 索引が目次に含まれない問題を修正しました ([#1418])
|
|
15
|
+
* RSTBuilder: メソッドの引数の誤りで変換に失敗する問題を修正しました ([#1426])
|
|
16
|
+
* IDGXMLBuilder: 表に関する警告を出すときの誤りを修正しました ([#1427])
|
|
17
|
+
* IDGXMLMaker: フィルタプログラムにエラーが発生したときの処理の誤りを修正しました ([#1429])
|
|
18
|
+
* PDFMaker: `media=ebook` のときに、見出し等に `@<code>` や `@<tt>` のようなコード書体の命令を使うとビルドに失敗する問題を修正しました ([#1432], [#1465])
|
|
19
|
+
* PDFMaker: MeCab がインストールされていないときにエラーになるのを警告に変更しました ([#1445])
|
|
20
|
+
* IDGXMLBuilder: `//imgtable` が正しく動作しなかったのを修正しました ([#1448])
|
|
21
|
+
* PDFMaker: 索引が1つも登録されていない状態で makeindex を有効にするとエラーになるのを修正しました ([#1467])
|
|
22
|
+
* PDFMaker: 説明箇条書き (`:`) の見出しに脚注を入れると消えてしまうのを修正しました ([#1476])
|
|
23
|
+
* review-index: `@<w>` が見出しに使われているときにエラーになるのを修正しました ([#1484])
|
|
24
|
+
|
|
25
|
+
## 機能強化
|
|
26
|
+
* PDFMaker: 問題報告の解析に役立つよう、提供する cls、sty ファイルについてバージョンを付けるようにしました ([#1163])
|
|
27
|
+
* Dockerfile を更新しました ([#1412])
|
|
28
|
+
* IDGXMLMaker: フィルタプログラムの標準エラー出力を警告扱いで出力するようにしました ([#1443])
|
|
29
|
+
* .gitignore ファイルに 〜-idgxml フォルダ を追加しました ([#1448])
|
|
30
|
+
* `//source` 命令は全ビルダでオプションを省略できるようになりました ([#1447])
|
|
31
|
+
* Ruby 2.7 をテスト対象に加えました ([#1468])
|
|
32
|
+
* `word_files` パラメータは配列で複数の単語 CSV ファイルを受け付けるようになりました ([#1469])
|
|
33
|
+
* EPUBMaker: 見出しが1つもない .re ファイルについて警告を出すようにしました。EPUB においてはファイル内に見出しが必ず1つは必要です。見出しを入れたくないときには、`=[notoc]` (目次に入れない) や `=[nodisp]` (目次に入れず表示もしない) を使用してください ([#1474])
|
|
34
|
+
|
|
35
|
+
## ドキュメント
|
|
36
|
+
* 奥付に関係する `contact` (連絡先)および `colophon_order` (項目の掲載順序)についてのドキュメントを設定ファイルサンプル `config.yml.sample` に追加しました ([#1425])
|
|
37
|
+
* quickstart.ja.md, quickstart.md を Re:VIEW 4 の内容に更新しました ([#1442])
|
|
38
|
+
* サンプル syntax-book を更新しました ([#1448], [#1449])
|
|
39
|
+
* README.md を更新しました ([#1455], [#1458])
|
|
40
|
+
* 図版のビルダ固有オプション `::` の記法を format.ja.md, format.md に記載しました ([#1421])
|
|
41
|
+
|
|
42
|
+
## その他
|
|
43
|
+
* Rubocop 0.78.0 の指摘に対応しました ([#1424], [#1430])
|
|
44
|
+
* LaTeX の実行環境がある場合、PDF のビルドテストをより厳密に実行するようにしました ([#1433])
|
|
45
|
+
* ビルドテストを Travis CI から GitHub Actions に切り替えました ([#1431], [#1436], [#1437])
|
|
46
|
+
* IDGXMLBuilder のコードリストの処理をリファクタリングしました ([#1438], [#1439])
|
|
47
|
+
* サンプル syntax-book に入っていた review-ext.rb はもう不要なので削除しました ([#1446])
|
|
48
|
+
* IDGXMLMaker, TextMaker のテストを追加しました ([#1448])
|
|
49
|
+
* Index 関連の処理をリファクタリングしました ([#1456], [#1457], [#1459])
|
|
50
|
+
* jsclasses パッケージを 2020/02/02 バージョンに更新しました ([#1478])
|
|
51
|
+
|
|
52
|
+
## コントリビューターのみなさん
|
|
53
|
+
* [@turky](https://github.com/turky)
|
|
54
|
+
|
|
55
|
+
[#1163]: https://github.com/kmuto/review/issues/1163
|
|
56
|
+
[#1412]: https://github.com/kmuto/review/pull/1412
|
|
57
|
+
[#1414]: https://github.com/kmuto/review/issues/1414
|
|
58
|
+
[#1416]: https://github.com/kmuto/review/issues/1416
|
|
59
|
+
[#1418]: https://github.com/kmuto/review/issues/1418
|
|
60
|
+
[#1420]: https://github.com/kmuto/review/issues/1420
|
|
61
|
+
[#1421]: https://github.com/kmuto/review/issues/1421
|
|
62
|
+
[#1424]: https://github.com/kmuto/review/pull/1424
|
|
63
|
+
[#1425]: https://github.com/kmuto/review/pull/1425
|
|
64
|
+
[#1426]: https://github.com/kmuto/review/pull/1426
|
|
65
|
+
[#1427]: https://github.com/kmuto/review/pull/1427
|
|
66
|
+
[#1428]: https://github.com/kmuto/review/pull/1428
|
|
67
|
+
[#1429]: https://github.com/kmuto/review/pull/1429
|
|
68
|
+
[#1430]: https://github.com/kmuto/review/pull/1430
|
|
69
|
+
[#1431]: https://github.com/kmuto/review/pull/1431
|
|
70
|
+
[#1432]: https://github.com/kmuto/review/issues/1432
|
|
71
|
+
[#1433]: https://github.com/kmuto/review/pull/1433
|
|
72
|
+
[#1436]: https://github.com/kmuto/review/pull/1436
|
|
73
|
+
[#1437]: https://github.com/kmuto/review/issues/1437
|
|
74
|
+
[#1438]: https://github.com/kmuto/review/pull/1438
|
|
75
|
+
[#1439]: https://github.com/kmuto/review/pull/1439
|
|
76
|
+
[#1442]: https://github.com/kmuto/review/issues/1442
|
|
77
|
+
[#1443]: https://github.com/kmuto/review/pull/1443
|
|
78
|
+
[#1445]: https://github.com/kmuto/review/pull/1445
|
|
79
|
+
[#1446]: https://github.com/kmuto/review/pull/1446
|
|
80
|
+
[#1447]: https://github.com/kmuto/review/issues/1447
|
|
81
|
+
[#1448]: https://github.com/kmuto/review/pull/1448
|
|
82
|
+
[#1449]: https://github.com/kmuto/review/pull/1449
|
|
83
|
+
[#1453]: https://github.com/kmuto/review/pull/1453
|
|
84
|
+
[#1455]: https://github.com/kmuto/review/pull/1455
|
|
85
|
+
[#1456]: https://github.com/kmuto/review/pull/1456
|
|
86
|
+
[#1457]: https://github.com/kmuto/review/pull/1457
|
|
87
|
+
[#1458]: https://github.com/kmuto/review/pull/1458
|
|
88
|
+
[#1459]: https://github.com/kmuto/review/pull/1459
|
|
89
|
+
[#1461]: https://github.com/kmuto/review/issues/1461
|
|
90
|
+
[#1462]: https://github.com/kmuto/review/issues/1462
|
|
91
|
+
[#1465]: https://github.com/kmuto/review/pull/1465
|
|
92
|
+
[#1466]: https://github.com/kmuto/review/pull/1466
|
|
93
|
+
[#1467]: https://github.com/kmuto/review/pull/1467
|
|
94
|
+
[#1468]: https://github.com/kmuto/review/pull/1468
|
|
95
|
+
[#1469]: https://github.com/kmuto/review/issues/1469
|
|
96
|
+
[#1474]: https://github.com/kmuto/review/issues/1474
|
|
97
|
+
[#1476]: https://github.com/kmuto/review/issues/1476
|
|
98
|
+
[#1478]: https://github.com/kmuto/review/issues/1478
|
|
99
|
+
[#1484]: https://github.com/kmuto/review/pull/1484
|
|
100
|
+
|
|
1
101
|
# Version 4.0.0
|
|
2
102
|
## 新機能
|
|
3
103
|
* IDGXML ファイルをまとめて生成する、review-idgxmlmaker を導入しました ([#1337])
|
|
4
104
|
* review-textmaker は、imgmath パラメータが有効になっている場合に、数式を画像化するようになりました ([#1338])
|
|
5
105
|
* review-init に `-w` オプションを指定することで、Web ブラウザ上で TeX のレイアウトができるウィザードモードを用意しました。なお、この機能は実験的であり、将来別のものに置き換える可能性もあります ([#1403])
|
|
6
|
-
* 実験的実装として、複数行から段落を結合する際に、前後の文字の種類に基づいて空白文字の挿入を行う機能を追加しました。この機能を利用するには、unicode-eaw gem をインストールした上で、config.yml に `join_lines_by_lang: true` を追加してください [#1362]
|
|
106
|
+
* 実験的実装として、複数行から段落を結合する際に、前後の文字の種類に基づいて空白文字の挿入を行う機能を追加しました。この機能を利用するには、unicode-eaw gem をインストールした上で、config.yml に `join_lines_by_lang: true` を追加してください ([#1362])
|
|
7
107
|
|
|
8
108
|
## 非互換の変更
|
|
9
109
|
* 通常の利用では使われることがないので、review-init の実行時に空の layouts フォルダを作成するのをやめました ([#1340])
|
data/NEWS.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
|
1
|
+
# Version 4.1.0
|
|
2
|
+
## New Features
|
|
3
|
+
* add `table_row_separator` to specify a separator that separates table rows. Accceptable value: tabs (means `\t+`, default), `singletab` (means `\t`), spaces (means `\s+`), verticalbar (means `\s*\|\s*`) ([#1420])
|
|
4
|
+
* PDFMaker, EPUBMaker, WEBMaker, TEXTMaker, IDGXMLMaker: add `-y` (`--only`) option to specify the files to convert instead of all files ([#1428])
|
|
5
|
+
* add `--without-config-comment` option to review-init command to exclude comments from config.yml ([#1453])
|
|
6
|
+
* 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])
|
|
7
|
+
|
|
8
|
+
## Breaking Changes
|
|
9
|
+
* PDFMaker: `image_scale2width` parameter has been moved under `pdfmaker` section ([#1462])
|
|
10
|
+
|
|
11
|
+
## Bug Fixes
|
|
12
|
+
* PDFMaker: fix backward compatibility error with Re:VIEW 3 ([#1414])
|
|
13
|
+
* PDFMaker: fix an error when compiling review-jlreq with LuaLaTeX ([#1416])
|
|
14
|
+
* PDFMaker: fix index not being included in the table of contents ([#1418])
|
|
15
|
+
* RSTBuilder: fix conversion failure due to incorrect method argument handling ([#1426])
|
|
16
|
+
* IDGXMLBuilder: there was an error in the warning handling for the table ([#1427])
|
|
17
|
+
* IDGXMLMaker: there was an error in the processing when an error occurred in the filter program ([#1429])
|
|
18
|
+
* PDFMaker: fix a build failure when using inline operators such as `@<code>` or `@<tt>` for heading with `media=ebook` mode ([#1432], [#1465])
|
|
19
|
+
* PDFMaker: raise just warning instead of error, when MeCab isn't installed ([#1445])
|
|
20
|
+
* IDGXMLBuilder: fix `//imgtable` to work correctly ([#1448])
|
|
21
|
+
* PDFMaker: fix an error when makeindex is true but no index is registered ([#1467])
|
|
22
|
+
* PDFMaker: fix missing footnotes in a description list ([#1476])
|
|
23
|
+
* review-index: fix an error when `@<w>` exists in headlines ([#1484])
|
|
24
|
+
|
|
25
|
+
## Enhancements
|
|
26
|
+
* PDFMaker: add version to .cls/.sty files ([#1163])
|
|
27
|
+
* update Dockerfile ([#1412])
|
|
28
|
+
* IDGXMLMaker: show the contents of stderr from the filter program ([#1443])
|
|
29
|
+
* add *-idgxml folder entry to .gitignore ([#1448])
|
|
30
|
+
* `//source` can now omit options in all builders ([#1447])
|
|
31
|
+
* add Ruby 2.7 to the test targets ([#1468])
|
|
32
|
+
* allow a setting of multiple word\_file ([#1469])
|
|
33
|
+
* EPUBMaker: warn when there is no heading in .re file ([#1474])
|
|
34
|
+
|
|
35
|
+
## Docs
|
|
36
|
+
* add the description about `contact` and `colophon_order` to `config.yml.sample` ([#1425])
|
|
37
|
+
* update quickstart.ja.md and quickstart.md to Re:VIEW 4 ([#1442])
|
|
38
|
+
* update syntax-book sample document ([#1448], [#1449])
|
|
39
|
+
* update README.md ([#1455], [#1458])
|
|
40
|
+
* update format.ja.md and format.md. add the description about `::` notation which sets builder-specific options to images ([#1421])
|
|
41
|
+
|
|
42
|
+
## Others
|
|
43
|
+
* refactor codes with Rubocop 0.78.0 ([#1424], [#1430])
|
|
44
|
+
* run PDF build test more strictly when there is LaTeX runtime environment ([#1433])
|
|
45
|
+
* switch the build test suite from Travis CI to GitHub Actions ([#1431], [#1436], [#1437])
|
|
46
|
+
* IDGXMLBuilder: refactor code list methods ([#1438], [#1439])
|
|
47
|
+
* remove unnecessary review-ext.rb from syntax-book ([#1446])
|
|
48
|
+
* add tests for IDGXMLMaker and TextMaker ([#1448])
|
|
49
|
+
* refactor around Index ([#1456], [#1457], [#1459])
|
|
50
|
+
* update jsclasses to version 2020/02/02 ([#1478])
|
|
51
|
+
|
|
52
|
+
## Contributors
|
|
53
|
+
* [@turky](https://github.com/turky)
|
|
54
|
+
|
|
55
|
+
[#1163]: https://github.com/kmuto/review/issues/1163
|
|
56
|
+
[#1412]: https://github.com/kmuto/review/pull/1412
|
|
57
|
+
[#1414]: https://github.com/kmuto/review/issues/1414
|
|
58
|
+
[#1416]: https://github.com/kmuto/review/issues/1416
|
|
59
|
+
[#1418]: https://github.com/kmuto/review/issues/1418
|
|
60
|
+
[#1420]: https://github.com/kmuto/review/issues/1420
|
|
61
|
+
[#1421]: https://github.com/kmuto/review/issues/1421
|
|
62
|
+
[#1424]: https://github.com/kmuto/review/pull/1424
|
|
63
|
+
[#1425]: https://github.com/kmuto/review/pull/1425
|
|
64
|
+
[#1426]: https://github.com/kmuto/review/pull/1426
|
|
65
|
+
[#1427]: https://github.com/kmuto/review/pull/1427
|
|
66
|
+
[#1428]: https://github.com/kmuto/review/pull/1428
|
|
67
|
+
[#1429]: https://github.com/kmuto/review/pull/1429
|
|
68
|
+
[#1430]: https://github.com/kmuto/review/pull/1430
|
|
69
|
+
[#1431]: https://github.com/kmuto/review/pull/1431
|
|
70
|
+
[#1432]: https://github.com/kmuto/review/issues/1432
|
|
71
|
+
[#1433]: https://github.com/kmuto/review/pull/1433
|
|
72
|
+
[#1436]: https://github.com/kmuto/review/pull/1436
|
|
73
|
+
[#1437]: https://github.com/kmuto/review/issues/1437
|
|
74
|
+
[#1438]: https://github.com/kmuto/review/pull/1438
|
|
75
|
+
[#1439]: https://github.com/kmuto/review/pull/1439
|
|
76
|
+
[#1442]: https://github.com/kmuto/review/issues/1442
|
|
77
|
+
[#1443]: https://github.com/kmuto/review/pull/1443
|
|
78
|
+
[#1445]: https://github.com/kmuto/review/pull/1445
|
|
79
|
+
[#1446]: https://github.com/kmuto/review/pull/1446
|
|
80
|
+
[#1447]: https://github.com/kmuto/review/issues/1447
|
|
81
|
+
[#1448]: https://github.com/kmuto/review/pull/1448
|
|
82
|
+
[#1449]: https://github.com/kmuto/review/pull/1449
|
|
83
|
+
[#1453]: https://github.com/kmuto/review/pull/1453
|
|
84
|
+
[#1455]: https://github.com/kmuto/review/pull/1455
|
|
85
|
+
[#1456]: https://github.com/kmuto/review/pull/1456
|
|
86
|
+
[#1457]: https://github.com/kmuto/review/pull/1457
|
|
87
|
+
[#1458]: https://github.com/kmuto/review/pull/1458
|
|
88
|
+
[#1459]: https://github.com/kmuto/review/pull/1459
|
|
89
|
+
[#1461]: https://github.com/kmuto/review/issues/1461
|
|
90
|
+
[#1462]: https://github.com/kmuto/review/issues/1462
|
|
91
|
+
[#1465]: https://github.com/kmuto/review/pull/1465
|
|
92
|
+
[#1466]: https://github.com/kmuto/review/pull/1466
|
|
93
|
+
[#1467]: https://github.com/kmuto/review/pull/1467
|
|
94
|
+
[#1468]: https://github.com/kmuto/review/pull/1468
|
|
95
|
+
[#1469]: https://github.com/kmuto/review/issues/1469
|
|
96
|
+
[#1474]: https://github.com/kmuto/review/issues/1474
|
|
97
|
+
[#1476]: https://github.com/kmuto/review/issues/1476
|
|
98
|
+
[#1478]: https://github.com/kmuto/review/issues/1478
|
|
99
|
+
[#1484]: https://github.com/kmuto/review/pull/1484
|
|
100
|
+
|
|
1
101
|
# Version 4.0.0
|
|
2
102
|
## New Features
|
|
3
103
|
* introduce review-idgxmlmaker which generates IDGXML files at once ([#1337])
|
|
@@ -8,7 +108,7 @@
|
|
|
8
108
|
## Breaking Changes
|
|
9
109
|
* review-init no longer creates empty `layouts` folder ([#1340])
|
|
10
110
|
* PDFMaker: fix a problem that white space characters disappeared in `@<code>`, `@<tt>`, `@<tti>`, and `@<ttb>`. Also the string is automatically wrapped ([#1348])
|
|
11
|
-
* `//texequation
|
|
111
|
+
* `//texequation`, `//embed` and `//graph` that don't allow inline op no longer escape inline op in strings. And don't put extra line break ([#1371], [#1374])
|
|
12
112
|
* PDFMaker: change the default table placement from `htp` to `H` for use in columns (`\floatplacement{table}` value in review-style.sty) [#1385]
|
|
13
113
|
* PDFMaker: the space between Japanese/Western characters in the code lists is changed to 0 from 1/4 character ([#1401])
|
|
14
114
|
* change the default value of `toc` parameter from null (false, don't create a table of contents) to true (create a table of contents) ([#1405])
|
|
@@ -622,7 +722,7 @@
|
|
|
622
722
|
|
|
623
723
|
## Enhancements
|
|
624
724
|
|
|
625
|
-
* allow block `{
|
|
725
|
+
* allow block `{ ... //}` in `//indepimage`. ([#802])
|
|
626
726
|
* warn when images are not found in `//indepimage`([#803])
|
|
627
727
|
* LATEXBuilder: allow caption in `//source` ([#834])
|
|
628
728
|
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Re:VIEW
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/review)
|
|
4
|
-
[](https://github.com/kmuto/review/actions)
|
|
5
5
|
[](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.
|
|
@@ -22,15 +22,17 @@ Re:VIEW uses its original format('Re:VIEW format') as source files. See doc/for
|
|
|
22
22
|
|
|
23
23
|
## Commands
|
|
24
24
|
|
|
25
|
-
There are
|
|
25
|
+
There are commands generate files directly.
|
|
26
26
|
|
|
27
27
|
* review-epubmaker: generate EPUB file.
|
|
28
28
|
* review-pdfmaker: generate PDF file using LaTeX (TeXLive).
|
|
29
29
|
* review-textmaker: generate text files.
|
|
30
30
|
* review-webmaker: generate Web pages.
|
|
31
|
+
* review-idgxmlmaker: generate InDesign XML files.
|
|
31
32
|
|
|
32
33
|
And some useful commands.
|
|
33
34
|
|
|
35
|
+
* review-init: create a project.
|
|
34
36
|
* review-compile: compile Re:VIEW format files.
|
|
35
37
|
* review-vol: figure out size of Re:VIEW files.
|
|
36
38
|
* review-index: generate index with various format.
|
|
@@ -60,10 +62,11 @@ $ echo "export PATH=PATH_OF_REVIEW/bin:$PATH" >> ~/.profile
|
|
|
60
62
|
$ review-init hello
|
|
61
63
|
$ cd hello
|
|
62
64
|
$ (... add and edit *.re file, config.yml and catalog.yml ...)
|
|
63
|
-
$ rake epub
|
|
64
|
-
$ rake pdf
|
|
65
|
-
$ rake text
|
|
66
|
-
$ rake web
|
|
65
|
+
$ rake epub ## generating EPUB
|
|
66
|
+
$ rake pdf ## generating PDF (Requirement TeXLive)
|
|
67
|
+
$ rake text ## generating texts
|
|
68
|
+
$ rake web ## generating Web pages
|
|
69
|
+
$ rake idgxml ## generating InDesign XML files
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
For further information, see [doc/quickstart.md](https://github.com/kmuto/review/blob/master/doc/quickstart.md)
|
|
@@ -112,4 +115,4 @@ Exception:
|
|
|
112
115
|
|
|
113
116
|
## Copyright
|
|
114
117
|
|
|
115
|
-
Copyright (c) 2006-
|
|
118
|
+
Copyright (c) 2006-2020 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
|