review 5.2.0 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby-tex.yml +1 -1
  3. data/.github/workflows/ruby-win.yml +1 -1
  4. data/.github/workflows/ruby.yml +1 -1
  5. data/.rubocop.yml +1 -319
  6. data/NEWS.ja.md +116 -0
  7. data/NEWS.md +117 -0
  8. data/README.md +9 -8
  9. data/bin/review +1 -1
  10. data/bin/review-catalog-converter +15 -15
  11. data/bin/review-check +7 -7
  12. data/bin/review-compile +6 -8
  13. data/bin/review-index +1 -1
  14. data/bin/review-preproc +1 -1
  15. data/bin/review-validate +2 -2
  16. data/doc/config.yml.sample +7 -1
  17. data/doc/config.yml.sample-simple +1 -1
  18. data/doc/format.ja.md +34 -4
  19. data/doc/format.md +32 -3
  20. data/lib/review/book/base.rb +3 -3
  21. data/lib/review/book/book_unit.rb +13 -3
  22. data/lib/review/book/chapter.rb +1 -1
  23. data/lib/review/book/index.rb +7 -4
  24. data/lib/review/book/part.rb +12 -13
  25. data/lib/review/book/volume.rb +1 -1
  26. data/lib/review/builder.rb +82 -28
  27. data/lib/review/catalog.rb +6 -5
  28. data/lib/review/compiler.rb +20 -14
  29. data/lib/review/configure.rb +5 -2
  30. data/lib/review/epub2html.rb +12 -12
  31. data/lib/review/epubmaker/content.rb +1 -1
  32. data/lib/review/epubmaker/epubcommon.rb +47 -45
  33. data/lib/review/epubmaker/epubv2.rb +2 -1
  34. data/lib/review/epubmaker/epubv3.rb +5 -4
  35. data/lib/review/epubmaker/producer.rb +3 -3
  36. data/lib/review/epubmaker/reviewheaderlistener.rb +1 -1
  37. data/lib/review/epubmaker.rb +35 -32
  38. data/lib/review/extentions/string.rb +1 -1
  39. data/lib/review/htmlbuilder.rb +65 -15
  40. data/lib/review/htmlutils.rb +17 -17
  41. data/lib/review/i18n.rb +3 -3
  42. data/lib/review/i18n.yml +6 -0
  43. data/lib/review/idgxmlbuilder.rb +42 -21
  44. data/lib/review/idgxmlmaker.rb +15 -13
  45. data/lib/review/img_math.rb +1 -0
  46. data/lib/review/index_builder.rb +100 -38
  47. data/lib/review/init.rb +4 -4
  48. data/lib/review/latexbuilder.rb +69 -34
  49. data/lib/review/lineinput.rb +3 -3
  50. data/lib/review/location.rb +1 -1
  51. data/lib/review/logger.rb +21 -21
  52. data/lib/review/makerhelper.rb +3 -3
  53. data/lib/review/markdownbuilder.rb +16 -8
  54. data/lib/review/pdfmaker.rb +40 -21
  55. data/lib/review/plaintextbuilder.rb +8 -7
  56. data/lib/review/preprocessor/repository.rb +1 -1
  57. data/lib/review/preprocessor.rb +5 -5
  58. data/lib/review/rstbuilder.rb +11 -2
  59. data/lib/review/textmaker.rb +20 -18
  60. data/lib/review/textutils.rb +5 -6
  61. data/lib/review/tocprinter.rb +11 -6
  62. data/lib/review/topbuilder.rb +89 -12
  63. data/lib/review/update.rb +16 -8
  64. data/lib/review/version.rb +1 -1
  65. data/lib/review/volumeprinter.rb +9 -9
  66. data/lib/review/webmaker.rb +32 -32
  67. data/lib/review/webtocprinter.rb +10 -10
  68. data/lib/review/yamlloader.rb +36 -2
  69. data/review.gemspec +2 -0
  70. data/samples/sample-book/src/config.yml +0 -1
  71. data/samples/syntax-book/ch02.re +16 -1
  72. data/templates/html/_titlepage.html.erb +9 -17
  73. data/templates/latex/config.erb +3 -0
  74. data/templates/latex/review-jlreq/review-base.sty +2 -1
  75. data/templates/latex/review-jlreq/review-jlreq.cls +36 -3
  76. data/templates/latex/review-jsbook/review-base.sty +7 -1
  77. data/templates/latex/review-jsbook/review-jsbook.cls +31 -4
  78. data/templates/opf/opf_manifest_epubv2.opf.erb +1 -1
  79. data/templates/opf/opf_manifest_epubv3.opf.erb +1 -1
  80. data/test/assets/syntax_book_index_detail.txt +10 -8
  81. data/test/assets/test_template.tex +4 -1
  82. data/test/assets/test_template_backmatter.tex +4 -1
  83. data/test/book_test_helper.rb +10 -10
  84. data/test/test_book_chapter.rb +25 -2
  85. data/test/test_builder.rb +5 -3
  86. data/test/test_epub3maker.rb +3 -3
  87. data/test/test_epubmaker.rb +14 -29
  88. data/test/test_epubmaker_cmd.rb +2 -2
  89. data/test/test_htmlbuilder.rb +80 -8
  90. data/test/test_idgxmlbuilder.rb +13 -13
  91. data/test/test_idgxmlmaker_cmd.rb +1 -1
  92. data/test/test_img_math.rb +11 -2
  93. data/test/test_index.rb +30 -4
  94. data/test/test_latexbuilder.rb +53 -6
  95. data/test/test_markdownbuilder.rb +45 -0
  96. data/test/test_pdfmaker.rb +19 -0
  97. data/test/test_pdfmaker_cmd.rb +10 -10
  98. data/test/test_plaintextbuilder.rb +45 -4
  99. data/test/test_rstbuilder.rb +13 -0
  100. data/test/test_textmaker_cmd.rb +1 -1
  101. data/test/test_topbuilder.rb +169 -11
  102. data/test/test_yamlloader.rb +28 -42
  103. metadata +19 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 413c947f61e128331f01df2d83a039d519145016ce5757d603be616867acf594
4
- data.tar.gz: 3ba0c7cb9bb87e2b8668391d60865a9ff0d1b3f1481cffa0e1670cab540fd99e
3
+ metadata.gz: a1f097d4affd13c0fc3522a4b8a95f7cc293c6ae1f5096060d8cb3a27e55bfe0
4
+ data.tar.gz: 3690f0b732e216aca3a2a267f16b15f838d86facbb3615d07f70eae83223054e
5
5
  SHA512:
6
- metadata.gz: 2131556e6cb7c916684b8fcdb6f1deea8a84b14dbbb5a2e62d4ad31caac832a2136d4afda25ee7c93670c56f24fd98f79090c90617e15db1cfb7ab331999b6b6
7
- data.tar.gz: b929c23fa373de5780aeae97332103e19b444a57aa098ccf3f03c31716e7a46972d1213cc539d0785b76f94e2cdf5143521c3f9d446bbdb087030e357edacd7d
6
+ metadata.gz: 99517b9b71d5d8adf7c89cfc9c2f09d9a53efdffccadef5f57881e0e205d1b6415f1d9e5bdd9ad0847787b5176a7b4da5a00150752de880a31145cc1224e8cd8
7
+ data.tar.gz: fbf5fcde5e37bc49ad32cc0f1ac96cfca2b88f35f2067c16ce2f3a35758426ea50c5eaf7ef91eaad174f7bfc07bec05f254106cbf969152d1a6fd7b7fe79a197
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: [2.5, 3.0]
16
+ ruby: ['2.5', '3.0', '3.1']
17
17
  os: [ubuntu-20.04]
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: [ '3.0', '2.6', '2.5', '2.4' ]
16
+ ruby: [ '3.0', '2.7', '2.6', '2.5', '2.4' ]
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.4, 2.5, 2.6, 2.7, 3.0]
16
+ ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
17
17
  os: [ubuntu-latest, macOS-latest]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -13,9 +13,6 @@ require:
13
13
 
14
14
  #### Lint
15
15
 
16
- Lint/EmptyWhen:
17
- Enabled: true
18
-
19
16
  Lint/NestedMethodDefinition:
20
17
  Exclude:
21
18
  - 'test/*'
@@ -23,82 +20,18 @@ Lint/NestedMethodDefinition:
23
20
  Lint/AssignmentInCondition:
24
21
  Enabled: false
25
22
 
26
- Lint/ParenthesesAsGroupedExpression:
27
- Enabled: true
28
-
29
- Lint/UnderscorePrefixedVariableName:
30
- Enabled: true
31
-
32
- Lint/UnusedBlockArgument:
33
- Enabled: true
34
-
35
- Lint/UnusedMethodArgument:
36
- Enabled: true
37
-
38
- Lint/UselessAssignment:
39
- Enabled: true
40
-
41
23
  Lint/ErbNewArguments:
42
24
  Enabled: false
43
25
 
44
- Lint/DeprecatedOpenSSLConstant:
45
- Enabled: true
46
-
47
- Lint/MixedRegexpCaptureTypes:
48
- Enabled: true
49
-
50
- Lint/RaiseException:
51
- Enabled: true
52
-
53
- Lint/StructNewOverride:
54
- Enabled: true
55
-
56
26
  # make it enable when supporting only Ruby 3.0 and higher.
57
27
  Lint/RedundantDirGlobSort:
58
28
  Enabled: false
59
29
 
60
30
  #### Performance
61
31
 
62
- Performance/RegexpMatch:
63
- Enabled: false
64
-
65
- Performance/ReverseEach:
66
- Enabled: true
67
-
68
- # Use tr instead of gsub.
69
- Performance/StringReplacement:
70
- Enabled: true
71
-
72
- Performance/RangeInclude:
73
- Enabled: true
74
-
75
32
  Performance/DeletePrefix:
76
33
  Enabled: false
77
34
 
78
- Performance/RedundantMerge:
79
- Enabled: true
80
-
81
- Performance/AncestorsInclude:
82
- Enabled: true
83
-
84
- Performance/BigDecimalWithNumericArgument:
85
- Enabled: true
86
-
87
- Performance/RedundantSortBlock:
88
- Enabled: true
89
-
90
- Performance/RedundantStringChars:
91
- Enabled: true
92
-
93
- Performance/ReverseFirst:
94
- Enabled: true
95
-
96
- Performance/SortReverse:
97
- Enabled: true
98
-
99
- Performance/Squeeze:
100
- Enabled: true
101
-
102
35
  Performance/StringInclude:
103
36
  Enabled: false
104
37
 
@@ -107,9 +40,6 @@ Performance/CollectionLiteralInLoop:
107
40
 
108
41
  #### Style
109
42
 
110
- Style/AccessModifierDeclarations:
111
- Enabled: false
112
-
113
43
  Style/AsciiComments:
114
44
  Enabled: false
115
45
 
@@ -118,57 +48,19 @@ Style/Alias:
118
48
  EnforcedStyle: prefer_alias_method
119
49
  Enabled: true
120
50
 
121
- Style/AndOr:
122
- Enabled: true
123
-
124
51
  Style/BarePercentLiterals:
125
52
  EnforcedStyle: percent_q
126
53
  Enabled: true
127
54
 
128
- Style/BlockDelimiters:
129
- Enabled: true
130
-
131
- Style/CaseEquality:
132
- Enabled: false
133
-
134
- Style/ClassCheck:
135
- Enabled: true
136
-
137
- Style/ClassMethods:
138
- Enabled: true
139
-
140
55
  Style/CommentedKeyword:
141
56
  Enabled: false
142
57
 
143
58
  Style/DocumentDynamicEvalDefinition:
144
59
  Enabled: false
145
60
 
146
- Style/FloatDivision:
147
- Enabled: false
148
-
149
- # Do not introduce global variables.
150
- Style/GlobalVars:
151
- Enabled: true
152
-
153
- # Use self-assignment shorthand +=.
154
- Style/SelfAssignment:
155
- Enabled: true
156
-
157
- Style/ConditionalAssignment:
158
- Enabled: false
159
-
160
61
  Style/Documentation:
161
62
  Enabled: false
162
63
 
163
- Style/Encoding:
164
- Enabled: true
165
-
166
- Style/EmptyElse:
167
- Enabled: true
168
-
169
- Style/EvalWithLocation:
170
- Enabled: true
171
-
172
64
  Style/FormatString:
173
65
  EnforcedStyle: sprintf
174
66
  Enabled: true
@@ -179,21 +71,12 @@ Style/FormatStringToken:
179
71
  Style/GuardClause:
180
72
  Enabled: false
181
73
 
182
- Style/IfInsideElse:
183
- Enabled: true
184
-
185
74
  Style/IfUnlessModifier:
186
75
  Enabled: false
187
76
 
188
77
  Style/MutableConstant:
189
78
  Enabled: false
190
79
 
191
- Style/MultipleComparison:
192
- Enabled: true
193
-
194
- Style/RedundantInterpolation:
195
- Enabled: true
196
-
197
80
  Style/ZeroLengthPredicate:
198
81
  Enabled: false
199
82
 
@@ -215,9 +98,6 @@ Style/EmptyMethod:
215
98
  EnforcedStyle: expanded
216
99
  Enabled: true
217
100
 
218
- Style/HashSyntax:
219
- Enabled: true
220
-
221
101
  Style/RescueModifier:
222
102
  Enabled: false
223
103
 
@@ -225,21 +105,9 @@ Style/ClassAndModuleChildren:
225
105
  EnforcedStyle: nested
226
106
  Enabled: true
227
107
 
228
- Style/ColonMethodCall:
229
- Enabled: true
230
-
231
- Style/For:
232
- Enabled: true
233
-
234
- Style/InfiniteLoop:
235
- Enabled: true
236
-
237
108
  Style/LineEndConcatenation:
238
109
  Enabled: false
239
110
 
240
- Style/MethodCallWithoutArgsParentheses:
241
- Enabled: true
242
-
243
111
  Style/MethodCallWithArgsParentheses:
244
112
  IgnoredMethods:
245
113
  - 'require'
@@ -273,24 +141,9 @@ Style/MethodCallWithArgsParentheses:
273
141
  Style/MixinUsage:
274
142
  Enabled: false
275
143
 
276
- Style/MultilineBlockChain:
277
- Enabled: true
278
-
279
- Style/NegatedIf:
280
- Enabled: true
281
-
282
- Style/Next:
283
- Enabled: true
284
-
285
- Style/Not:
286
- Enabled: true
287
-
288
144
  Style/NumericLiterals:
289
145
  MinDigits: 6
290
146
 
291
- Style/PercentLiteralDelimiters:
292
- Enabled: true
293
-
294
147
  Style/PercentQLiterals:
295
148
  EnforcedStyle: upper_case_q
296
149
  Enabled: true
@@ -305,51 +158,15 @@ Style/RaiseArgs:
305
158
  Style/RedundantBegin:
306
159
  Enabled: false
307
160
 
308
- Style/RedundantParentheses:
309
- Enabled: true
310
-
311
161
  Style/RedundantReturn:
312
162
  Enabled: false
313
163
 
314
164
  Style/RedundantSelf:
315
165
  Enabled: false
316
166
 
317
- Style/RegexpLiteral:
318
- Enabled: true
319
-
320
- Style/RescueStandardError:
321
- Enabled: false
322
-
323
- Style/Semicolon:
324
- Enabled: true
325
-
326
- Style/SingleLineMethods:
327
- Enabled: true
328
-
329
- Style/SpecialGlobalVars:
330
- Enabled: true
331
-
332
167
  Style/StderrPuts:
333
168
  Enabled: false
334
169
 
335
- Style/StringLiterals:
336
- Enabled: true
337
-
338
- Style/StringLiteralsInInterpolation:
339
- Enabled: true
340
-
341
- Style/SymbolProc:
342
- Enabled: true
343
-
344
- Style/SymbolArray:
345
- Enabled: true
346
-
347
- Style/TrailingCommaInArrayLiteral:
348
- Enabled: true
349
-
350
- Style/TrailingCommaInHashLiteral:
351
- Enabled: true
352
-
353
170
  Style/WordArray:
354
171
  MinSize: 10
355
172
 
@@ -359,30 +176,6 @@ Style/RedundantPercentQ:
359
176
  Style/WhileUntilModifier:
360
177
  Enabled: false
361
178
 
362
- Style/YodaCondition:
363
- Enabled: true
364
-
365
- Style/ExponentialNotation:
366
- Enabled: true
367
-
368
- Style/HashEachMethods:
369
- Enabled: true
370
-
371
- Style/HashTransformKeys:
372
- Enabled: true
373
-
374
- Style/HashTransformValues:
375
- Enabled: true
376
-
377
- Style/RedundantFetchBlock:
378
- Enabled: true
379
-
380
- Style/RedundantRegexpCharacterClass:
381
- Enabled: true
382
-
383
- Style/RedundantRegexpEscape:
384
- Enabled: true
385
-
386
179
  Style/SlicingWithRange:
387
180
  Enabled: false
388
181
 
@@ -398,26 +191,13 @@ Style/StringConcatenation:
398
191
  Style/OptionalBooleanParameter:
399
192
  Enabled: false
400
193
 
401
- Style/SoleNestedConditional:
402
- Enabled: false
403
-
404
194
  Style/CombinableLoops:
405
195
  Enabled: false
406
196
 
407
197
  ### Layout
408
198
 
409
199
  Layout/BlockAlignment:
410
- Enabled: true
411
-
412
- Layout/EndAlignment:
413
- Enabled: true
414
-
415
- Layout/MultilineMethodCallBraceLayout:
416
- Enabled: true
417
-
418
- Layout/AccessModifierIndentation:
419
- EnforcedStyle: indent
420
- Enabled: true
200
+ Enabled: false
421
201
 
422
202
  Layout/ClosingHeredocIndentation:
423
203
  Enabled: false
@@ -426,99 +206,21 @@ Layout/DotPosition:
426
206
  EnforcedStyle: trailing
427
207
  Enabled: true
428
208
 
429
- Layout/EmptyLines:
430
- Enabled: true
431
-
432
- Layout/EmptyLineAfterGuardClause:
433
- Enabled: true
434
-
435
- Layout/EmptyLinesAroundAccessModifier:
436
- Enabled: true
437
-
438
- Layout/EmptyLinesAroundClassBody:
439
- Enabled: true
440
-
441
- Layout/EmptyLinesAroundMethodBody:
442
- Enabled: true
443
-
444
- Layout/EmptyLinesAroundModuleBody:
445
- Enabled: true
446
-
447
- Layout/EndOfLine:
448
- Enabled: true
449
-
450
- Layout/ExtraSpacing:
451
- Enabled: true
452
-
453
- Layout/IndentationConsistency:
454
- Enabled: true
455
-
456
- Layout/IndentationWidth:
457
- Enabled: true
458
-
459
- Layout/FirstHashElementIndentation:
460
- Enabled: true
461
-
462
209
  Layout/HeredocIndentation:
463
210
  Enabled: false
464
211
 
465
- Layout/LeadingCommentSpace:
466
- Enabled: true
467
-
468
- Layout/MultilineOperationIndentation:
469
- Enabled: true
470
-
471
212
  Layout/SpaceAroundBlockParameters:
472
213
  EnforcedStyleInsidePipes: no_space
473
214
  Enabled: true
474
215
 
475
- Layout/SpaceAfterComma:
476
- Enabled: true
477
-
478
- Layout/SpaceAfterNot:
479
- Enabled: true
480
-
481
- Layout/SpaceAfterSemicolon:
482
- Enabled: true
483
-
484
- Layout/SpaceAroundEqualsInParameterDefault:
485
- Enabled: true
486
-
487
- Layout/SpaceAroundOperators:
488
- Enabled: true
489
-
490
- Layout/SpaceBeforeBlockBraces:
491
- Enabled: true
492
-
493
- Layout/SpaceBeforeComma:
494
- Enabled: true
495
-
496
- Layout/SpaceInsideBlockBraces:
497
- Enabled: true
498
-
499
- Layout/SpaceInsideHashLiteralBraces:
500
- Enabled: true
501
-
502
- Layout/SpaceInsideArrayLiteralBrackets:
503
- Enabled: true
504
-
505
216
  Layout/SpaceInsideStringInterpolation:
506
217
  EnforcedStyle: no_space
507
218
  Enabled: true
508
219
 
509
- Layout/TrailingEmptyLines:
510
- Enabled: true
511
-
512
220
  Layout/TrailingWhitespace:
513
221
  Enabled: true
514
222
  AllowInHeredoc: true
515
223
 
516
- Layout/EmptyLinesAroundAttributeAccessor:
517
- Enabled: true
518
-
519
- Layout/SpaceAroundMethodCallOperator:
520
- Enabled: true
521
-
522
224
  Layout/LineLength:
523
225
  Max: 256
524
226
  Exclude:
@@ -573,32 +275,15 @@ Metrics/BlockLength:
573
275
 
574
276
  ## Naming
575
277
 
576
- Naming/AccessorMethodName:
577
- Enabled: true
578
-
579
- # When defining the == operator, name its argument other.
580
- Naming/BinaryOperatorParameterName:
581
- Enabled: true
582
-
583
278
  Naming/FileName:
584
279
  Enabled: false
585
280
 
586
281
  Naming/HeredocDelimiterNaming:
587
282
  Enabled: false
588
283
 
589
- Naming/MemoizedInstanceVariableName:
590
- Enabled: true
591
-
592
- Naming/MethodName:
593
- Enabled: true
594
-
595
284
  Naming/MethodParameterName:
596
285
  Enabled: false
597
286
 
598
- # Use snake_case for variable names.
599
- Naming/VariableName:
600
- Enabled: true
601
-
602
287
  Naming/VariableNumber:
603
288
  EnforcedStyle: normalcase
604
289
  Enabled: true
@@ -607,9 +292,6 @@ Naming/VariableNumber:
607
292
 
608
293
  #### Security
609
294
 
610
- Security/YAMLLoad:
611
- Enabled: true
612
-
613
295
  #### Gemspec
614
296
 
615
297
  Gemspec/RequiredRubyVersion:
data/NEWS.ja.md CHANGED
@@ -1,3 +1,119 @@
1
+ # Version 5.5.0
2
+ ## 新機能
3
+ * 節や項を参照するインライン命令として、 `@<secref>` , `@<sec>` , `@<sectitle>` を追加しました。`@<secref>` は節や項の番号+タイトルを含むテキスト( `@<hd>` と同じ)、 `@<sec>` は節や項の番号のみ、`@<sectitle>` はタイトルのみに展開されます ([#1809])
4
+ ## バグ修正
5
+ * テストエラーを修正しました ([#1804])
6
+ * review-update コマンドがエラーになるのを修正しました ([#1807])
7
+
8
+ ## その他
9
+ * rexml がバンドル gem 扱いになったので、gemspec に追加しました ([#1808])
10
+
11
+ [#1804]: https://github.com/kmuto/review/pull/1804
12
+ [#1807]: https://github.com/kmuto/review/pull/1807
13
+ [#1808]: https://github.com/kmuto/review/pull/1808
14
+ [#1809]: https://github.com/kmuto/review/issues/1809
15
+
16
+ # Version 5.4.0
17
+ ## 新機能
18
+ * Re:VIEW に関する質問の受け付けに対応する [GitHub Discussions](https://github.com/kmuto/review/discussions) を開始しました
19
+
20
+ ## 非互換の変更
21
+ * EPUBMaker: opf ファイルの `manifest` 内の `item` を ID 文字列の辞書順でソートするようにしました ([#1763])
22
+ * TextMaker: 表の見出しセル行を太字表現(★〜☆)にするのではなく、見出しセル行と通常セル行の区切り線を入れるようにしました。従来の太字表現に戻すには `textmaker` セクションの `th_bold` パラメータを true に設定してください ([#1789])
23
+ * TextMaker: `//indepimage` 命令の出力結果を `//image` に合わせました。開始・終了マークが入り、画像ファイルが見つからないときにはコメント内容を出力するようになります ([#1790])
24
+ * TextMaker: `//imgtable` 命令の出力結果を `//image` および `//table` に合わせました。開始・終了マークが入り、画像ファイルが見つからないときにはコメント内容を出力するようになります ([#1791])
25
+ * ハイライト有効時に、`//source` 命令もハイライト対象として中身をエスケープしないようにしました ([#1788])
26
+
27
+ ## バグ修正
28
+ * Ruby 3.1 で YAML のエラーが発生するのを修正し、互換性も持たせました ([#1767], [#1775])
29
+ * EPUBMaker: `epub:type=cover` が大扉や奥付に入るのを修正しました ([#1776])
30
+ * 無効な urnid の例がサンプルとして示されているのを削除しました ([#1779])
31
+ * config.yml の YAML 構文にエラーがあったときに例外ではなく妥当なエラーを返すようにしました ([#1797])
32
+ * IDGXMLMaker: secttags を有効にしている状態で前付や後付がエラーになるのを修正しました ([#1800])
33
+
34
+ ## 機能強化
35
+ * EPUBMaker, WebMaker: 表紙・大扉・奥付・部のベーステンプレートに通常の章と同じく `layout.html.erb` または `layout-web.html.erb` を使うようにしました ([#1780])
36
+ * EPUBMaker, WebMaker: 表紙・大扉・奥付・部のカスタムテンプレートとして、`layouts` フォルダの `_cover.html.erb`、`_titlepage.html.erb`、`_colophon.html.erb`、`_colophon_history.html.erb`、`_part_body.html.erb` で上書きできるようにしました ([#1777])
37
+
38
+ ## ドキュメント
39
+ * GitHub Discussions について README.md に記載しました ([#1772])
40
+
41
+ ## その他
42
+ * RuboCop 1.25.1 の指摘を反映しました ([#1773], [#1782], [#1783], [#1784], [#1792])
43
+
44
+ [#1763]: https://github.com/kmuto/review/pull/1763
45
+ [#1767]: https://github.com/kmuto/review/pull/1767
46
+ [#1772]: https://github.com/kmuto/review/pull/1772
47
+ [#1773]: https://github.com/kmuto/review/pull/1773
48
+ [#1775]: https://github.com/kmuto/review/pull/1775
49
+ [#1776]: https://github.com/kmuto/review/pull/1776
50
+ [#1777]: https://github.com/kmuto/review/issues/1777
51
+ [#1779]: https://github.com/kmuto/review/pull/1779
52
+ [#1780]: https://github.com/kmuto/review/pull/1780
53
+ [#1782]: https://github.com/kmuto/review/pull/1782
54
+ [#1783]: https://github.com/kmuto/review/pull/1783
55
+ [#1784]: https://github.com/kmuto/review/pull/1784
56
+ [#1788]: https://github.com/kmuto/review/pull/1788
57
+ [#1789]: https://github.com/kmuto/review/issues/1789
58
+ [#1790]: https://github.com/kmuto/review/issues/1790
59
+ [#1791]: https://github.com/kmuto/review/issues/1791
60
+ [#1792]: https://github.com/kmuto/review/pull/1792
61
+ [#1797]: https://github.com/kmuto/review/issues/1797
62
+ [#1800]: https://github.com/kmuto/review/pull/1800
63
+
64
+ # Version 5.3.0
65
+ ## 新機能
66
+ * 後注のサポートを追加しました。`//endnote` 命令で後注内容、`@<endnote>` 命令で後注参照、`//printendnotes` 命令で後注を配置する場所を指定します ([#1724])
67
+
68
+ ## バグ修正
69
+ * 新しい jlreq において ifthen パッケージに非依存になったことによるエラーを修正しました ([#1718])
70
+ * review-jsbook と新しい TeXLive 2020 以降の組み合わせにおいて、隠しノンブルがすべて1になってしまう問題を修正しました ([#1720])
71
+ * coverimage パラメータに実際に存在しないファイルを指定したときに例外エラーが発生するのを修正しました ([#1726], [#1729])
72
+ * titlefile・creditfile・profile パラメータに存在しないファイルを指定したときに警告を表示するようにしました ([#1730])
73
+ * review-jlreq で `@<tcy>` 命令がエラーになるのを修正しました。縦中横の TeX 表現側での抽象名に `\reviewtcy` マクロを使うようにしました ([#1733])
74
+ * review-vol および review-index の例外エラーを修正しました ([#1740])
75
+ * 数式ビルドエラーが出たときに `__IMGMATH_BODY__.tex` のコピーを忘れているのを修正しました ([#1747])
76
+ * `//beginchild`・`//endchild` 命令でエラーが起きたときにエラー位置の表示がされていなかったのを修正しました ([#1742])
77
+ * `//graph` 命令を使うとビルドエラーになるのを修正しました ([#1744])
78
+ * epubmaker.rb で未定義の変数を参照している箇所を修正しました ([#1755])
79
+ * review-catalog-converter がエラーになるのを修正しました ([#1753])
80
+
81
+ ## 機能強化
82
+ * 脚注 (`//footnote`)・後注(`//endnote`) を定義したけれども参照(`@<fn>`、`@<endnote>`)していないときに警告するようにしました ([#1725])
83
+ * 紙面全体に画像を貼り込む `\includefullpagegraphics` マクロを縦書きにも対応するようにしました ([#1734])
84
+ * plantuml の jar ファイル探索先を作業フォルダのほか、`/usr/share/plantuml`、`/usr/share/java` からも探すようにしました ([#1760])
85
+
86
+ ## ドキュメント
87
+ * format.ja.md, format.md: SVG数式を作成するコマンドラインの間違いを修正しました ([#1748])
88
+
89
+ ## その他
90
+ * Windows 版 Ruby 2.7 のテストを追加しました ([#1743])
91
+ * Rubocop 1.22.1 に対応しました ([#1759])
92
+
93
+ ## コントリビューターのみなさん
94
+ * [@munepi](https://github.com/munepi)
95
+ * [@huideyeren](https://github.com/huideyeren)
96
+
97
+ [#1718]: https://github.com/kmuto/review/issues/1718
98
+ [#1720]: https://github.com/kmuto/review/issues/1720
99
+ [#1724]: https://github.com/kmuto/review/issues/1724
100
+ [#1725]: https://github.com/kmuto/review/issues/1725
101
+ [#1726]: https://github.com/kmuto/review/issues/1726
102
+ [#1729]: https://github.com/kmuto/review/pull/1729
103
+ [#1730]: https://github.com/kmuto/review/pull/1730
104
+ [#1733]: https://github.com/kmuto/review/issues/1733
105
+ [#1734]: https://github.com/kmuto/review/issues/1734
106
+ [#1740]: https://github.com/kmuto/review/pull/1740
107
+ [#1742]: https://github.com/kmuto/review/pull/1742
108
+ [#1743]: https://github.com/kmuto/review/pull/1743
109
+ [#1744]: https://github.com/kmuto/review/issues/1744
110
+ [#1747]: https://github.com/kmuto/review/pull/1747
111
+ [#1748]: https://github.com/kmuto/review/pull/1748
112
+ [#1753]: https://github.com/kmuto/review/issues/1753
113
+ [#1755]: https://github.com/kmuto/review/issues/1755
114
+ [#1759]: https://github.com/kmuto/review/pull/1759
115
+ [#1760]: https://github.com/kmuto/review/pull/1760
116
+
1
117
  # Version 5.2.0
2
118
  ## 新機能
3
119
  * EPUBMaker: CSS 組版向けに、見出しの存在に応じて `<section>` で階層化する機能を追加しました。config.yml で `epubmaker` セクションの `use_section` パラメータを `true` にすると有効化されます ([#1685])