review 5.8.0 → 5.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 368cf93a0b3ae0f5aaecebdef459f759ab45998b9236cfa983294711a4f135b6
4
- data.tar.gz: 9990d2ed06a889cc951c3db58b47431e8ad414842fb4e6868082e2c33dd73139
3
+ metadata.gz: 6140d24dcd1cdbb98fe8f67131bb080c3bd82a397eb2569d11455b7ac954ef9b
4
+ data.tar.gz: 23ca68ed05c615d4535d65ca1120f8180336310a5ea0c157f4001cea8e1e4223
5
5
  SHA512:
6
- metadata.gz: a78a8e4f75a856c15c492a9ef466efd72cad538a6c3378023b6c0dd83ec268e7a99126b16cb3d2ec158035b9f620380a50b759319131227c403b09b27bd8e8b6
7
- data.tar.gz: 7f14b429a757435416de52eb8bed9d05925c1694e647c2165b68c46c835fcea9f0f1e4ea7d908219ceceb3edb179bf130ffe2ef811fe58416d00aba6f0d4e068
6
+ metadata.gz: 4d23fb91a4951a077c2d48ff9cf68227dc91e0bc238e4c0825795b7708da887da3bd1f3467c4cace936f07972a279b14cdd57fa8bb3d176e274a47918a3858a0
7
+ data.tar.gz: '0005176058f24404f388c55c1b5db58daa034b6b1be049b9b4ca8348c2f8a889cef2bfc3df3eaa96b504186014058a5ca90530b5dd3b60453981816b9c580f11'
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: ['2.7', '3.0', '3.1', '3.2']
16
+ ruby: ['3.0', '3.1', '3.2', '3.3']
17
17
  os: [ubuntu-latest]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
@@ -13,11 +13,11 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: ['2.7', '3.2']
17
- os: [ubuntu-20.04]
16
+ ruby: ['3.2']
17
+ os: [ubuntu-22.04]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
20
- - name: Install TeXLive 2020 in ubuntu
20
+ - name: Install TeXLive 2021 in ubuntu
21
21
  if: runner.os == 'Linux'
22
22
  run: |
23
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
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: [ '3.2', '3.1', '3.0', '2.7' ]
16
+ ruby: [ '3.3', '3.2', '3.1', '3.0' ]
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@v2
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: ['2.7', '3.0', '3.1', '3.2']
16
+ ruby: ['3.0', '3.1', '3.2', '3.3']
17
17
  os: [ubuntu-latest, macOS-latest]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  - tmp/*
6
6
  DisplayCopNames: true
7
7
  NewCops: enable
8
- TargetRubyVersion: 2.7
8
+ TargetRubyVersion: 3.0
9
9
 
10
10
  require:
11
11
  - rubocop-performance
@@ -41,6 +41,9 @@ Performance/CollectionLiteralInLoop:
41
41
  Performance/MapCompact:
42
42
  Enabled: false
43
43
 
44
+ Performance/StringIdentifierArgument:
45
+ Enabled: false
46
+
44
47
  #### Style
45
48
 
46
49
  Style/AsciiComments:
data/NEWS.ja.md CHANGED
@@ -1,3 +1,20 @@
1
+ # Version 5.9.0
2
+ ## バグ修正
3
+ * LATEXBuilder: `@<code>`, `@<tt>`, `@<tti>`, `@<ttb>`での空白幅が適切になるよう修正しました。またPDF栞の扱いを改善しました([#1906],[#1907])。
4
+
5
+ ## 機能強化
6
+ * `review-jlreq.cls`のUsers Guideで用紙サイズの指定にJIS B列とISO B列を区別するようにしました([#1904])
7
+ * `config.yml.sample`での誤記を修正しました([#1909])
8
+
9
+ ## コントリビューターのみなさん
10
+ * [@munepi](https://github.com/munepi)
11
+ * [@koshikawa](https://github.com/koshikawa)
12
+
13
+ [#1904]: https://github.com/kmuto/review/pull/1904
14
+ [#1906]: https://github.com/kmuto/review/issues/1906
15
+ [#1907]: https://github.com/kmuto/review/pull/1907
16
+ [#1909]: https://github.com/kmuto/review/pull/1909
17
+
1
18
  # Version 5.8.0
2
19
  ## 新機能
3
20
  * `//graph` 命令でMermaid記法によるグラフ記述ができるようになりました。外部ツールの用意や設定については`doc/format.ja.md`を参照してください ([#1885])
data/NEWS.md CHANGED
@@ -1,3 +1,20 @@
1
+ # Version 5.9.0
2
+ ## Bug Fixes
3
+ * LATEXBuilder: fix the spacing for `@<code>`, `@<tt>`, `@<tti>`, `@<ttb>` to be more appropriate. Also improved handling of PDF bookmarks ([#1906], [#1907]).
4
+
5
+ ## Enhancements
6
+ * differentiated between JIS B and ISO B paper sizes in `review-jlreq.cls` Users Guide ([#1904]).
7
+ * fix typos in `config.yml.sample` ([#1909]).
8
+
9
+ ## Contributors
10
+ * [@munepi](https://github.com/munepi)
11
+ * [@koshikawa](https://github.com/koshikawa)
12
+
13
+ [#1904]: https://github.com/kmuto/review/pull/1904
14
+ [#1906]: https://github.com/kmuto/review/issues/1906
15
+ [#1907]: https://github.com/kmuto/review/pull/1907
16
+ [#1909]: https://github.com/kmuto/review/pull/1909
17
+
1
18
  # Version 5.8.0
2
19
  ## New Features
3
20
  * The `//graph` operator allows graphical description in Mermaid notation. See `doc/format.md` for details on prepairing and setting up external tools ([#1885])
data/README.md CHANGED
@@ -117,4 +117,4 @@ Exception:
117
117
 
118
118
  ## Copyright
119
119
 
120
- Copyright (c) 2006-2023 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
120
+ Copyright (c) 2006-2024 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
@@ -332,7 +332,7 @@ epubmaker:
332
332
  # 画像ファイルの縦x横の最大ピクセル数許容値
333
333
  # image_maxpixels: 4000000
334
334
  #
335
- # Re:VIEWファイル名を使わず、前付にpre01,pre02...、本文にchap01,chap02l...、後付にpost01,post02...という名前付けルールにするか
335
+ # Re:VIEWファイル名を使わず、前付にpre01,pre02...、本文にchap01,chap02...、後付にpost01,post02...という名前付けルールにするか
336
336
  # rename_for_legacy: null
337
337
  #
338
338
  # ePUBアーカイブの非圧縮実行
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2002-2023 Minero Aoki, Kenshi Muto
1
+ # Copyright (c) 2002-2024 Minero Aoki, Kenshi Muto
2
2
  #
3
3
  # This program is free software.
4
4
  # You can distribute or modify this program under the terms of
@@ -133,7 +133,7 @@ module ReVIEW
133
133
  end
134
134
 
135
135
  def target_name
136
- self.class.to_s.gsub(/ReVIEW::/, '').gsub(/Builder/, '').downcase
136
+ self.class.to_s.gsub('ReVIEW::', '').gsub('Builder', '').downcase
137
137
  end
138
138
 
139
139
  def load_words(file)
@@ -405,10 +405,10 @@ module ReVIEW
405
405
  def inline_ruby(arg)
406
406
  base, *ruby = *arg.scan(/(?:(?:(?:\\\\)*\\,)|[^,\\]+)+/)
407
407
  if base
408
- base = base.gsub(/\\,/, ',').strip
408
+ base = base.gsub('\,', ',').strip
409
409
  end
410
410
  if ruby
411
- ruby = ruby.join(',').gsub(/\\,/, ',').strip
411
+ ruby = ruby.join(',').gsub('\,', ',').strip
412
412
  end
413
413
  compile_ruby(base, ruby)
414
414
  end
@@ -420,9 +420,9 @@ module ReVIEW
420
420
 
421
421
  def inline_href(arg)
422
422
  url, label = *arg.scan(/(?:(?:(?:\\\\)*\\,)|[^,\\]+)+/).map(&:lstrip)
423
- url = url.gsub(/\\,/, ',').strip
423
+ url = url.gsub('\,', ',').strip
424
424
  if label
425
- label = label.gsub(/\\,/, ',').strip
425
+ label = label.gsub('\,', ',').strip
426
426
  end
427
427
  compile_href(url, label)
428
428
  end
@@ -640,7 +640,7 @@ module ReVIEW
640
640
  tf.puts content
641
641
  tf.close
642
642
  begin
643
- file_path = send("graph_#{command}".to_sym, id, file_path, content, tf.path)
643
+ file_path = send(:"graph_#{command}", id, file_path, content, tf.path)
644
644
  ensure
645
645
  tf.unlink
646
646
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2009-2022 Minero Aoki, Kenshi Muto
1
+ # Copyright (c) 2009-2024 Minero Aoki, Kenshi Muto
2
2
  # Copyright (c) 2002-2007 Minero Aoki
3
3
  #
4
4
  # This program is free software.
@@ -681,7 +681,7 @@ module ReVIEW
681
681
  end
682
682
  break if words.empty?
683
683
 
684
- result << compile_inline(revert_replace_fence(words.shift.gsub(/\\\}/, '}').gsub(/\\\\/, '\\')))
684
+ result << compile_inline(revert_replace_fence(words.shift.gsub('\\}', '}').gsub('\\\\', '\\')))
685
685
  end
686
686
  result
687
687
  rescue StandardError => e
@@ -35,7 +35,7 @@ module ReVIEW
35
35
  end
36
36
 
37
37
  def encode_args(args)
38
- args.delete_if { |_k, v| v.nil? }.map { |k, v| "#{k}=#{v}" }.join(',')
38
+ args.compact.map { |k, v| "#{k}=#{v}" }.join(',')
39
39
  end
40
40
  end
41
41
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2008-2023 Minero Aoki, Kenshi Muto
1
+ # Copyright (c) 2008-2024 Minero Aoki, Kenshi Muto
2
2
  # 2002-2007 Minero Aoki
3
3
  #
4
4
  # This program is free software.
@@ -532,9 +532,9 @@ module ReVIEW
532
532
  next
533
533
  end
534
534
  if @tablewidth
535
- rows.push(line.gsub(/\t\.\t/, "\tDUMMYCELLSPLITTER\t").gsub(/\t\.\.\t/, "\t.\t").gsub(/\t\.\Z/, "\tDUMMYCELLSPLITTER").gsub(/\t\.\.\Z/, "\t.").gsub(/\A\./, ''))
535
+ rows.push(line.gsub("\t.\t", "\tDUMMYCELLSPLITTER\t").gsub("\t..\t", "\t.\t").gsub(/\t\.\Z/, "\tDUMMYCELLSPLITTER").gsub(/\t\.\.\Z/, "\t.").gsub(/\A\./, ''))
536
536
  else
537
- rows.push(line.gsub(/\t\.\t/, "\t\t").gsub(/\t\.\.\t/, "\t.\t").gsub(/\t\.\Z/, "\t").gsub(/\t\.\.\Z/, "\t.").gsub(/\A\./, ''))
537
+ rows.push(line.gsub("\t.\t", "\t\t").gsub("\t..\t", "\t.\t").gsub(/\t\.\Z/, "\t").gsub(/\t\.\.\Z/, "\t.").gsub(/\A\./, ''))
538
538
  end
539
539
  col2 = rows[rows.length - 1].split(table_row_separator_regexp).length
540
540
  @col = col2 if col2 > @col
data/lib/review/logger.rb CHANGED
@@ -32,7 +32,7 @@ module ReVIEW
32
32
  end
33
33
 
34
34
  def ttylogger?
35
- nil
35
+ false
36
36
  end
37
37
 
38
38
  def success(_log)
@@ -190,19 +190,19 @@ module ReVIEW
190
190
  end
191
191
 
192
192
  def inline_i(str)
193
- "*#{str.gsub(/\*/, '\*')}*"
193
+ "*#{str.gsub('*', '\*')}*"
194
194
  end
195
195
 
196
196
  def inline_em(str)
197
- "*#{str.gsub(/\*/, '\*')}*"
197
+ "*#{str.gsub('*', '\*')}*"
198
198
  end
199
199
 
200
200
  def inline_b(str)
201
- "**#{str.gsub(/\*/, '\*')}**"
201
+ "**#{str.gsub('*', '\*')}**"
202
202
  end
203
203
 
204
204
  def inline_strong(str)
205
- "**#{str.gsub(/\*/, '\*')}**"
205
+ "**#{str.gsub('*', '\*')}**"
206
206
  end
207
207
 
208
208
  def inline_code(str)
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2008-2020 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
1
+ # Copyright (c) 2008-2023 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
2
2
  # KADO Masanori
3
3
  # 2002-2007 Minero Aoki
4
4
  #
@@ -49,7 +49,7 @@ module ReVIEW
49
49
  tail = line1[-1]
50
50
  head = line2[0]
51
51
  if tail.nil? || head.nil?
52
- return nil
52
+ return false
53
53
  end
54
54
 
55
55
  space = true
@@ -1,3 +1,3 @@
1
1
  module ReVIEW
2
- VERSION = '5.8.0'.freeze
2
+ VERSION = '5.9.0'.freeze
3
3
  end
@@ -16,7 +16,9 @@ module ReVIEW
16
16
  YAML.safe_load(f, [Date])
17
17
  rescue Psych::DisallowedClass
18
18
  # < Ruby 2.5
19
+ # rubocop:disable Style/YAMLFileRead
19
20
  YAML.safe_load(File.read(file), [Date])
21
+ # rubocop:enable Style/YAMLFileRead
20
22
  end
21
23
  end
22
24
  end
data/review.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.add_development_dependency('playwright-runner')
29
29
  gem.add_development_dependency('pygments.rb')
30
30
  gem.add_development_dependency('rake')
31
- gem.add_development_dependency('rubocop', '~> 1.45.1')
31
+ gem.add_development_dependency('rubocop', '~> 1.59.0')
32
32
  gem.add_development_dependency('rubocop-performance')
33
33
  gem.add_development_dependency('rubocop-rake')
34
34
  gem.add_development_dependency('simplecov')
@@ -153,7 +153,7 @@ colophon: true
153
153
  # verify_target_images: null
154
154
  # verify_target_imagesがtrueの状態において、解析で発見されなくても強制的に取り込むファイルの相対パスの配列
155
155
  # force_include_images: []
156
- # Re:VIEWファイル名を使わず、前付にpre01,pre02...、本文にchap01,chap02l...、後付にpost01,post02...という名前付けルールにするか
156
+ # Re:VIEWファイル名を使わず、前付にpre01,pre02...、本文にchap01,chap02...、後付にpost01,post02...という名前付けルールにするか
157
157
  # rename_for_legacy: null
158
158
  # ePUBアーカイブの非圧縮実行
159
159
  # zip_stage1: "zip -0Xq"
@@ -1,5 +1,5 @@
1
1
  # call me by 'REVIEW_TEMPLATE=review-jlreq REVIEW_CONFIG_FILE=config-jlreq.yml rake pdf'
2
2
  inherit: ["config.yml"]
3
- # texdocumentclass: ["review-jlreq", "media=print,paper=b5"]
4
- texdocumentclass: ["review-jlreq", "media=ebook,paper=b5"]
5
- # texdocumentclass: ["review-jlreq", "media=print,paper=b5,bleed_margin=3mm,cover=true,Q=14,startpage=3,serial_pagination=true,hiddenfolio=nikko-pc"]
3
+ # texdocumentclass: ["review-jlreq", "media=print,paper=b5j"]
4
+ texdocumentclass: ["review-jlreq", "media=ebook,paper=b5j"]
5
+ # texdocumentclass: ["review-jlreq", "media=print,paper=b5j,bleed_margin=3mm,cover=true,Q=14,startpage=3,serial_pagination=true,hiddenfolio=nikko-pc"]
@@ -47,7 +47,8 @@ texdocumentclass: ["review-jlreq", "クラスオプションたち(省略可
47
47
  利用可能な特定の用紙サイズを指定できます。[デフォルト]は a5 です。
48
48
 
49
49
  * `a0` 〜 `a10`:A 列
50
- * `b0` 〜 `b10`:JIS B 列
50
+ * `b0j` 〜 `b10j`:JIS B 列
51
+ * `b0` 〜 `b10`:ISO B 列
51
52
  * `c0` 〜 `c8`:C 列
52
53
  * `a4var`:210mm x 283mm
53
54
  * `b5var`:182mm x 230mm
@@ -57,6 +58,8 @@ texdocumentclass: ["review-jlreq", "クラスオプションたち(省略可
57
58
  * `hagaki`:葉書き、100mm x 148mm
58
59
  * `{横幅,縦幅}`:任意の指定サイズ
59
60
 
61
+ 日本の B 列サイズにするには `b5j` のように j 付きで指定することに注意してください。
62
+
60
63
  ### トンボ用紙サイズ `tombopaper=<用紙サイズ>` および塗り足し幅 `bleed_margin=<幅>`
61
64
 
62
65
  `tombopaper` ではトンボ用紙サイズを指定できます。
@@ -202,6 +202,11 @@
202
202
  \def\reviewinsert#1{#1}
203
203
  \def\reviewstrike#1{#1}
204
204
  \def\reviewunderline#1{#1}
205
+ \def\reviewtt#1{#1}
206
+ \def\reviewcode#1{#1}
207
+ \def\reviewtti#1{#1}
208
+ \def\reviewttb#1{#1}
209
+ \let\reviewicon\@gobble
205
210
  }
206
211
  \newif\ifreview@ba@break
207
212
  \def\review@ba@end{\review@ba@end@}
@@ -247,10 +252,10 @@
247
252
  \review@ba@breaktrue
248
253
  \review@break@all@a
249
254
  }
250
- \DeclareRobustCommand{\reviewtt}[1]{{\ttfamily\reviewbreakall{#1}}}
251
- \DeclareRobustCommand{\reviewcode}[1]{{\ttfamily\reviewbreakall{#1}}}
252
- \DeclareRobustCommand{\reviewtti}[1]{{\ttfamily\itshape\reviewbreakall{#1}}}
253
- \DeclareRobustCommand{\reviewttb}[1]{{\ttfamily\bfseries\reviewbreakall{#1}}}
255
+ \DeclareRobustCommand{\reviewtt}[1]{{\frenchspacing\ttfamily\reviewbreakall{#1}}}
256
+ \DeclareRobustCommand{\reviewcode}[1]{{\frenchspacing\ttfamily\reviewbreakall{#1}}}
257
+ \DeclareRobustCommand{\reviewtti}[1]{{\frenchspacing\ttfamily\itshape\reviewbreakall{#1}}}
258
+ \DeclareRobustCommand{\reviewttb}[1]{{\frenchspacing\ttfamily\bfseries\reviewbreakall{#1}}}
254
259
 
255
260
  \DeclareRobustCommand{\reviewbou}[1]{\kenten{#1}}
256
261
 
@@ -277,6 +277,11 @@
277
277
  \def\reviewinsert#1{#1}
278
278
  \def\reviewstrike#1{#1}
279
279
  \def\reviewunderline#1{#1}
280
+ \def\reviewtt#1{#1}
281
+ \def\reviewcode#1{#1}
282
+ \def\reviewtti#1{#1}
283
+ \def\reviewttb#1{#1}
284
+ \let\reviewicon\@gobble
280
285
  }
281
286
  \newif\ifreview@ba@break
282
287
  \def\review@ba@end{\review@ba@end@}
@@ -322,10 +327,10 @@
322
327
  \review@ba@breaktrue
323
328
  \review@break@all@a
324
329
  }
325
- \DeclareRobustCommand{\reviewtt}[1]{{\ttfamily\reviewbreakall{#1}}}
326
- \DeclareRobustCommand{\reviewcode}[1]{{\ttfamily\reviewbreakall{#1}}}
327
- \DeclareRobustCommand{\reviewtti}[1]{{\ttfamily\itshape\reviewbreakall{#1}}}
328
- \DeclareRobustCommand{\reviewttb}[1]{{\ttfamily\bfseries\reviewbreakall{#1}}}
330
+ \DeclareRobustCommand{\reviewtt}[1]{{\frenchspacing\ttfamily\reviewbreakall{#1}}}
331
+ \DeclareRobustCommand{\reviewcode}[1]{{\frenchspacing\ttfamily\reviewbreakall{#1}}}
332
+ \DeclareRobustCommand{\reviewtti}[1]{{\frenchspacing\ttfamily\itshape\reviewbreakall{#1}}}
333
+ \DeclareRobustCommand{\reviewttb}[1]{{\frenchspacing\ttfamily\bfseries\reviewbreakall{#1}}}
329
334
 
330
335
  \DeclareRobustCommand{\reviewbou}[1]{\kenten{#1}}
331
336
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: review
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.0
4
+ version: 5.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmuto
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-29 00:00:00.000000000 Z
12
+ date: 2024-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: image_size
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 1.45.1
146
+ version: 1.59.0
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 1.45.1
153
+ version: 1.59.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: rubocop-performance
156
156
  requirement: !ruby/object:Gem::Requirement
@@ -620,7 +620,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
620
620
  - !ruby/object:Gem::Version
621
621
  version: '0'
622
622
  requirements: []
623
- rubygems_version: 3.4.14
623
+ rubygems_version: 3.5.3
624
624
  signing_key:
625
625
  specification_version: 4
626
626
  summary: 'Re:VIEW: a easy-to-use digital publishing system'