isodoc 1.6.0 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +2 -12
  3. data/.hound.yml +3 -1
  4. data/.rubocop.yml +4 -8
  5. data/Rakefile +2 -2
  6. data/bin/rspec +1 -2
  7. data/isodoc.gemspec +4 -3
  8. data/lib/isodoc-yaml/i18n-ar.yaml +152 -0
  9. data/lib/isodoc-yaml/i18n-de.yaml +149 -0
  10. data/lib/isodoc-yaml/i18n-en.yaml +1 -0
  11. data/lib/isodoc-yaml/i18n-es.yaml +151 -0
  12. data/lib/isodoc-yaml/i18n-fr.yaml +1 -0
  13. data/lib/isodoc-yaml/i18n-ru.yaml +154 -0
  14. data/lib/isodoc-yaml/i18n-zh-Hans.yaml +1 -0
  15. data/lib/isodoc.rb +0 -2
  16. data/lib/isodoc/common.rb +2 -0
  17. data/lib/isodoc/convert.rb +10 -4
  18. data/lib/isodoc/css.rb +30 -26
  19. data/lib/isodoc/function/blocks.rb +26 -8
  20. data/lib/isodoc/function/blocks_example_note.rb +2 -2
  21. data/lib/isodoc/function/cleanup.rb +53 -45
  22. data/lib/isodoc/function/form.rb +51 -0
  23. data/lib/isodoc/function/inline.rb +8 -7
  24. data/lib/isodoc/function/references.rb +71 -77
  25. data/lib/isodoc/function/section.rb +28 -16
  26. data/lib/isodoc/function/table.rb +22 -22
  27. data/lib/isodoc/function/terms.rb +6 -7
  28. data/lib/isodoc/function/to_word_html.rb +19 -25
  29. data/lib/isodoc/function/utils.rb +180 -160
  30. data/lib/isodoc/gem_tasks.rb +36 -38
  31. data/lib/isodoc/headlesshtml_convert.rb +8 -7
  32. data/lib/isodoc/html_convert.rb +10 -4
  33. data/lib/isodoc/html_function/comments.rb +14 -12
  34. data/lib/isodoc/html_function/footnotes.rb +14 -7
  35. data/lib/isodoc/html_function/form.rb +62 -0
  36. data/lib/isodoc/html_function/html.rb +30 -26
  37. data/lib/isodoc/html_function/postprocess.rb +191 -226
  38. data/lib/isodoc/html_function/postprocess_footnotes.rb +59 -0
  39. data/lib/isodoc/html_function/sectionsplit.rb +230 -0
  40. data/lib/isodoc/i18n.rb +33 -31
  41. data/lib/isodoc/metadata.rb +22 -20
  42. data/lib/isodoc/metadata_contributor.rb +31 -28
  43. data/lib/isodoc/pdf_convert.rb +11 -13
  44. data/lib/isodoc/presentation_function/bibdata.rb +54 -30
  45. data/lib/isodoc/presentation_function/block.rb +17 -8
  46. data/lib/isodoc/presentation_function/inline.rb +72 -120
  47. data/lib/isodoc/presentation_function/math.rb +84 -0
  48. data/lib/isodoc/presentation_function/section.rb +55 -19
  49. data/lib/isodoc/presentation_xml_convert.rb +2 -0
  50. data/lib/isodoc/sassc_importer.rb +1 -1
  51. data/lib/isodoc/version.rb +1 -1
  52. data/lib/isodoc/word_function/body.rb +28 -24
  53. data/lib/isodoc/word_function/footnotes.rb +22 -15
  54. data/lib/isodoc/word_function/postprocess.rb +50 -36
  55. data/lib/isodoc/xref.rb +11 -10
  56. data/lib/isodoc/xref/xref_counter.rb +32 -17
  57. data/lib/isodoc/xref/xref_gen.rb +33 -21
  58. data/lib/isodoc/xref/xref_gen_seq.rb +60 -35
  59. data/lib/isodoc/xref/xref_sect_gen.rb +37 -35
  60. data/spec/assets/scripts_override.html +3 -0
  61. data/spec/isodoc/blocks_spec.rb +2258 -2622
  62. data/spec/isodoc/cleanup_spec.rb +1103 -1107
  63. data/spec/isodoc/form_spec.rb +156 -0
  64. data/spec/isodoc/i18n_spec.rb +802 -917
  65. data/spec/isodoc/inline_spec.rb +1105 -921
  66. data/spec/isodoc/lists_spec.rb +316 -315
  67. data/spec/isodoc/metadata_spec.rb +384 -379
  68. data/spec/isodoc/postproc_spec.rb +1783 -1549
  69. data/spec/isodoc/presentation_xml_spec.rb +355 -278
  70. data/spec/isodoc/ref_spec.rb +718 -723
  71. data/spec/isodoc/section_spec.rb +216 -199
  72. data/spec/isodoc/sectionsplit_spec.rb +190 -0
  73. data/spec/isodoc/table_spec.rb +41 -42
  74. data/spec/isodoc/terms_spec.rb +84 -84
  75. data/spec/isodoc/xref_spec.rb +1024 -930
  76. metadata +33 -7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: 1.1.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.0
40
+ version: 1.1.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: htmlentities
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.10.4
89
+ version: 1.11.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.10.4
96
+ version: 1.11.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: relaton-cli
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -304,6 +304,20 @@ dependencies:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0.15'
307
+ - !ruby/object:Gem::Dependency
308
+ name: metanorma-iso
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ type: :development
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: timecop
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -340,8 +354,12 @@ files:
340
354
  - Rakefile
341
355
  - bin/rspec
342
356
  - isodoc.gemspec
357
+ - lib/isodoc-yaml/i18n-ar.yaml
358
+ - lib/isodoc-yaml/i18n-de.yaml
343
359
  - lib/isodoc-yaml/i18n-en.yaml
360
+ - lib/isodoc-yaml/i18n-es.yaml
344
361
  - lib/isodoc-yaml/i18n-fr.yaml
362
+ - lib/isodoc-yaml/i18n-ru.yaml
345
363
  - lib/isodoc-yaml/i18n-zh-Hans.yaml
346
364
  - lib/isodoc.rb
347
365
  - lib/isodoc/base_style/all.css
@@ -370,6 +388,7 @@ files:
370
388
  - lib/isodoc/function/blocks.rb
371
389
  - lib/isodoc/function/blocks_example_note.rb
372
390
  - lib/isodoc/function/cleanup.rb
391
+ - lib/isodoc/function/form.rb
373
392
  - lib/isodoc/function/inline.rb
374
393
  - lib/isodoc/function/inline_simple.rb
375
394
  - lib/isodoc/function/lists.rb
@@ -386,9 +405,12 @@ files:
386
405
  - lib/isodoc/html_function.rb
387
406
  - lib/isodoc/html_function/comments.rb
388
407
  - lib/isodoc/html_function/footnotes.rb
408
+ - lib/isodoc/html_function/form.rb
389
409
  - lib/isodoc/html_function/html.rb
390
410
  - lib/isodoc/html_function/mathvariant_to_plain.rb
391
411
  - lib/isodoc/html_function/postprocess.rb
412
+ - lib/isodoc/html_function/postprocess_footnotes.rb
413
+ - lib/isodoc/html_function/sectionsplit.rb
392
414
  - lib/isodoc/i18n.rb
393
415
  - lib/isodoc/metadata.rb
394
416
  - lib/isodoc/metadata_contributor.rb
@@ -397,6 +419,7 @@ files:
397
419
  - lib/isodoc/presentation_function/bibdata.rb
398
420
  - lib/isodoc/presentation_function/block.rb
399
421
  - lib/isodoc/presentation_function/inline.rb
422
+ - lib/isodoc/presentation_function/math.rb
400
423
  - lib/isodoc/presentation_function/section.rb
401
424
  - lib/isodoc/presentation_xml_convert.rb
402
425
  - lib/isodoc/sassc_importer.rb
@@ -430,6 +453,7 @@ files:
430
453
  - spec/assets/rice_image1
431
454
  - spec/assets/rice_image1.png
432
455
  - spec/assets/scripts.html
456
+ - spec/assets/scripts_override.html
433
457
  - spec/assets/std.css
434
458
  - spec/assets/word.css
435
459
  - spec/assets/word_override.css
@@ -438,6 +462,7 @@ files:
438
462
  - spec/isodoc/blocks_spec.rb
439
463
  - spec/isodoc/cleanup_spec.rb
440
464
  - spec/isodoc/footnotes_spec.rb
465
+ - spec/isodoc/form_spec.rb
441
466
  - spec/isodoc/i18n_spec.rb
442
467
  - spec/isodoc/inline_spec.rb
443
468
  - spec/isodoc/lists_spec.rb
@@ -446,6 +471,7 @@ files:
446
471
  - spec/isodoc/presentation_xml_spec.rb
447
472
  - spec/isodoc/ref_spec.rb
448
473
  - spec/isodoc/section_spec.rb
474
+ - spec/isodoc/sectionsplit_spec.rb
449
475
  - spec/isodoc/table_spec.rb
450
476
  - spec/isodoc/terms_spec.rb
451
477
  - spec/isodoc/xref_spec.rb
@@ -463,7 +489,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
463
489
  requirements:
464
490
  - - ">="
465
491
  - !ruby/object:Gem::Version
466
- version: 2.4.0
492
+ version: 2.5.0
467
493
  required_rubygems_version: !ruby/object:Gem::Requirement
468
494
  requirements:
469
495
  - - ">="