isodoc 2.12.0 → 2.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/isodoc.gemspec +2 -2
  3. data/lib/isodoc/convert.rb +0 -21
  4. data/lib/isodoc/function/blocks.rb +19 -48
  5. data/lib/isodoc/function/blocks_example_note.rb +75 -29
  6. data/lib/isodoc/function/cleanup.rb +3 -40
  7. data/lib/isodoc/function/inline.rb +39 -9
  8. data/lib/isodoc/function/lists.rb +5 -5
  9. data/lib/isodoc/function/references.rb +9 -133
  10. data/lib/isodoc/function/reqt.rb +2 -2
  11. data/lib/isodoc/function/section.rb +25 -28
  12. data/lib/isodoc/function/section_titles.rb +16 -13
  13. data/lib/isodoc/function/table.rb +3 -3
  14. data/lib/isodoc/function/terms.rb +21 -20
  15. data/lib/isodoc/function/to_word_html.rb +8 -5
  16. data/lib/isodoc/function/utils.rb +1 -1
  17. data/lib/isodoc/html_function/footnotes.rb +2 -1
  18. data/lib/isodoc/html_function/html.rb +1 -5
  19. data/lib/isodoc/init.rb +31 -0
  20. data/lib/isodoc/metadata.rb +9 -0
  21. data/lib/isodoc/metadata_contributor.rb +1 -1
  22. data/lib/isodoc/metadata_date.rb +1 -1
  23. data/lib/isodoc/presentation_function/autonum.rb +139 -0
  24. data/lib/isodoc/presentation_function/block.rb +95 -36
  25. data/lib/isodoc/presentation_function/docid.rb +78 -0
  26. data/lib/isodoc/presentation_function/erefs.rb +6 -4
  27. data/lib/isodoc/presentation_function/image.rb +52 -13
  28. data/lib/isodoc/presentation_function/inline.rb +6 -6
  29. data/lib/isodoc/presentation_function/math.rb +0 -14
  30. data/lib/isodoc/presentation_function/metadata.rb +0 -62
  31. data/lib/isodoc/presentation_function/refs.rb +44 -14
  32. data/lib/isodoc/presentation_function/reqt.rb +1 -1
  33. data/lib/isodoc/presentation_function/section.rb +46 -121
  34. data/lib/isodoc/presentation_function/sourcecode.rb +7 -4
  35. data/lib/isodoc/presentation_function/terms.rb +27 -2
  36. data/lib/isodoc/presentation_function/title.rb +107 -0
  37. data/lib/isodoc/presentation_function/xrefs.rb +17 -10
  38. data/lib/isodoc/presentation_xml_convert.rb +6 -2
  39. data/lib/isodoc/version.rb +1 -1
  40. data/lib/isodoc/word_function/body.rb +8 -36
  41. data/lib/isodoc/word_function/footnotes.rb +1 -1
  42. data/lib/isodoc/word_function/lists.rb +12 -10
  43. data/lib/isodoc/word_function/postprocess_cover.rb +0 -2
  44. data/lib/isodoc/word_function/postprocess_table.rb +1 -1
  45. data/lib/isodoc/word_function/table.rb +2 -2
  46. data/lib/isodoc/xref/clause_order.rb +2 -2
  47. data/lib/isodoc/xref/xref_anchor.rb +31 -16
  48. data/lib/isodoc/xref/xref_counter_types.rb +3 -2
  49. data/lib/isodoc/xref/xref_gen.rb +57 -33
  50. data/lib/isodoc/xref/xref_gen_seq.rb +145 -56
  51. data/lib/isodoc/xref/xref_sect_gen.rb +64 -47
  52. data/lib/isodoc/xref/xref_util.rb +49 -1
  53. data/lib/isodoc/xref.rb +3 -0
  54. data/lib/isodoc-yaml/i18n-ar.yaml +9 -9
  55. data/lib/isodoc-yaml/i18n-de.yaml +9 -9
  56. data/lib/isodoc-yaml/i18n-en.yaml +9 -9
  57. data/lib/isodoc-yaml/i18n-es.yaml +9 -9
  58. data/lib/isodoc-yaml/i18n-fr.yaml +9 -9
  59. data/lib/isodoc-yaml/i18n-ja.yaml +10 -10
  60. data/lib/isodoc-yaml/i18n-ru.yaml +9 -9
  61. data/lib/isodoc-yaml/i18n-zh-Hans.yaml +9 -9
  62. data/lib/nokogiri/xml/node.rb +1 -0
  63. metadata +9 -6
@@ -35,15 +35,15 @@ internal_external_terms_boilerplate: |
35
35
  Für die Zwecke dieses Dokuments gelten die in % und im Folgenden aufgeführten Begriffe und Definitionen.
36
36
  no_information_available: "[KEINE INFORMATION VERFÜGBAR]"
37
37
  term_defined_in: "(%)"
38
- binary_and: "%1 und %2"
39
- multiple_and: "%1, und %2"
40
- binary_or: "%1 oder %2"
41
- multiple_or: "%1, oder %2"
42
- chain_and: "%1 und %2"
43
- chain_or: "%1 oder %2"
44
- chain_from: "%1 von %2"
45
- chain_to: "%1 bis %2"
46
- nested_xref: "%1, %2"
38
+ binary_and: "%1 <conn>und</conn> %2"
39
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>und</conn> %2"
40
+ binary_or: "%1 <conn>oder</conn> %2"
41
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>oder</conn> %2"
42
+ chain_and: "%1 <conn>und</conn> %2"
43
+ chain_or: "%1 <conn>oder</conn> %2"
44
+ chain_from: "%1 <conn>von</conn> %2"
45
+ chain_to: "%1 <conn>bis</conn> %2"
46
+ nested_xref: "%1<comma>,</comma> %2"
47
47
  list_nested_xref: "%1 %2"
48
48
  ordinal_keys: [gender,number]
49
49
  SpelloutRules:
@@ -38,15 +38,15 @@ internal_external_terms_boilerplate: |
38
38
  For the purposes of this document, the terms and definitions given in % and the following apply.
39
39
  no_information_available: "[NO INFORMATION AVAILABLE]"
40
40
  term_defined_in: "(%)"
41
- binary_and: "%1 and %2"
42
- multiple_and: "%1, and %2"
43
- binary_or: "%1 or %2"
44
- multiple_or: "%1, or %2"
45
- chain_and: "%1 and %2"
46
- chain_or: "%1 or %2"
47
- chain_from: "%1 from %2"
48
- chain_to: "%1 to %2"
49
- nested_xref: "%1, %2"
41
+ binary_and: "%1 <conn>and</conn> %2"
42
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>and</conn> %2"
43
+ binary_or: "%1 <conn>or</conn> %2"
44
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>or</conn> %2"
45
+ chain_and: "%1 <conn>and</conn> %2"
46
+ chain_or: "%1 <conn>or</conn> %2"
47
+ chain_from: "%1 <conn>from</conn> %2"
48
+ chain_to: "%1 <conn>to</conn> %2"
49
+ nested_xref: "%1<comma>,</comma> %2"
50
50
  list_nested_xref: "%1 %2"
51
51
  ordinal_keys: []
52
52
  SpelloutRules: spellout-ordinal
@@ -37,15 +37,15 @@ internal_external_terms_boilerplate: |
37
37
  Para los propósitos de este documento, se aplican los términos y definiciones dados en % y los siguientes.
38
38
  no_information_available: "[NO HAY INFORMACIÓN DISPONIBLE]"
39
39
  term_defined_in: "(%)"
40
- binary_and: "%1 y %2"
41
- multiple_and: "%1, y %2"
42
- binary_or: "%1 o %2"
43
- multiple_or: "%1, o %2"
44
- chain_and: "%1 y %2"
45
- chain_or: "%1 o %2"
46
- chain_from: "%1 del %2"
47
- chain_to: "%1 al %2"
48
- nested_xref: "%1, %2"
40
+ binary_and: "%1 <conn>y<//conn> %2"
41
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>y</conn> %2"
42
+ binary_or: "%1 <conn>o</conn> %2"
43
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>o</conn> %2"
44
+ chain_and: "%1 <conn>y</conn> %2"
45
+ chain_or: "%1 <conn>o</conn> %2"
46
+ chain_from: "%1 <conn>del</conn> %2"
47
+ chain_to: "%1 <conn>al</conn> %2"
48
+ nested_xref: "%1<comma>,</comma> %2"
49
49
  list_nested_xref: "%1 %2"
50
50
  ordinal_keys: [gender,number]
51
51
  SpelloutRules:
@@ -34,15 +34,15 @@ internal_external_terms_boilerplate: |
34
34
  Pour les besoins du présent document, les termes et définitions de % ainsi que les suivants, s’appliquent.
35
35
  no_information_available: "[PAS D’INFORMATION DISPONIBLE]"
36
36
  term_defined_in: "(%)"
37
- binary_and: "%1 et %2"
38
- multiple_and: "%1, et %2"
39
- binary_or: "%1 ou %2"
40
- multiple_or: "%1, ou %2"
41
- chain_and: "%1 et %2"
42
- chain_or: "%1 ou %2"
43
- chain_from: "%1 de %2"
44
- chain_to: "%1 à %2"
45
- nested_xref: "%1, %2"
37
+ binary_and: "%1 <conn>et</conn> %2"
38
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>et</conn> %2"
39
+ binary_or: "%1 <conn>ou</conn> %2"
40
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>ou</conn> %2"
41
+ chain_and: "%1 <conn>et</conn> %2"
42
+ chain_or: "%1 <conn>ou</conn> %2"
43
+ chain_from: "%1 <conn>de</conn> %2"
44
+ chain_to: "%1 <conn>à</conn> %2"
45
+ nested_xref: "%1<comma>,</comma> %2"
46
46
  list_nested_xref: "%1 %2"
47
47
  ordinal_keys: [gender,number]
48
48
  SpelloutRules:
@@ -34,16 +34,16 @@ internal_external_terms_boilerplate: |
34
34
  この規格で用いる主な用語及び定義は,次によるほか,% による。
35
35
  no_information_available: "[情報はありません]"
36
36
  term_defined_in: "(%)"
37
- binary_and: "%1 and %2"
38
- multiple_and: "%1, and %2"
39
- binary_or: "%1 or %2"
40
- multiple_or: "%1, or %2"
41
- chain_and: "%1 and %2"
42
- chain_or: "%1 or %2"
43
- chain_from: "%1 from %2"
44
- chain_to: "%1~%2"
45
- nested_xref: "%1の%2"
46
- list_nested_xref: "%1の%2"
37
+ binary_and: "%1 <conn>及び</conn> %2"
38
+ multiple_and: "%1<enum-comma>、</enum-comma>%2"
39
+ binary_or: "%1 <conn>または</conn> %2"
40
+ multiple_or: "%1<enum-comma>、</enum-comma> <conn>または</conn> %2"
41
+ chain_and: "%1 <conn>及び</conn> %2"
42
+ chain_or: "%1 <conn>または</conn> %2"
43
+ chain_from: "%1 <conn>から</conn> %2"
44
+ chain_to: "%1<conn>~</conn>%2"
45
+ nested_xref: "%1<conn>の</conn>%2"
46
+ list_nested_xref: "%1<conn>の</conn>%2"
47
47
  no_conflate_xref_locations: true
48
48
  ordinal_keys: []
49
49
  SpelloutRules: spellout-ordinal
@@ -37,15 +37,15 @@ internal_external_terms_boilerplate: |
37
37
  Для целей этого документа применяются термины и определения, данные в % и следующие.
38
38
  no_information_available: "[ИНФОРМАЦИЯ ОТСУТСТВУЕТ]"
39
39
  term_defined_in: "(%)"
40
- binary_and: "%1 и %2"
41
- multiple_and: "%1, и %2"
42
- binary_or: "%1 или %2"
43
- multiple_or: "%1, или %2"
44
- chain_and: "%1 и %2"
45
- chain_or: "%1 или %2"
46
- chain_from: "%1 от %2"
47
- chain_to: "%1 до %2"
48
- nested_xref: "%1, %2"
40
+ binary_and: "%1 <conn>и</conn> %2"
41
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>и</conn> %2"
42
+ binary_or: "%1 <conn>или</conn> %2"
43
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>или</conn> %2"
44
+ chain_and: "%1 <conn>и</conn> %2"
45
+ chain_or: "%1 <conn>или</conn> %2"
46
+ chain_from: "%1 <conn>от</conn> %2"
47
+ chain_to: "%1 <conn>до</conn> %2"
48
+ nested_xref: "%1<comma>,</comma> %2"
49
49
  list_nested_xref: "%1 %2"
50
50
  ordinal_keys: [gender,number,case]
51
51
  SpelloutRules:
@@ -36,15 +36,15 @@ internal_external_terms_boilerplate: |
36
36
  % 界定的以及下列术语和定义适用于本文件。
37
37
  no_information_available: "[无资料]"
38
38
  term_defined_in: "(%)"
39
- binary_and: "%1和%2"
40
- multiple_and: "%1、和%2"
41
- binary_or: "%1或%2"
42
- multiple_or: "%1、或%2"
43
- chain_and: "%1和%2"
44
- chain_or: "%1或%2"
45
- chain_from: "%1从%2"
46
- chain_to: "%1到%2"
47
- nested_xref: "%1, %2"
39
+ binary_and: "%1<conn>和</conn>%2"
40
+ multiple_and: "%1<enum-comma>、</enum-comma><conn>和</conn>%2"
41
+ binary_or: "%1<conn>或</conn>%2"
42
+ multiple_or: "%1<enum-comma>、</enum-comma><conn>或</conn>%2"
43
+ chain_and: "%1<conn>和</conn>%2"
44
+ chain_or: "%1<conn>或</conn>%2"
45
+ chain_from: "%1<conn>从</conn>%2"
46
+ chain_to: "%1<conn>到</conn>%2"
47
+ nested_xref: "%1<comma>,</comma> %2"
48
48
  list_nested_xref: "%1 %2"
49
49
  ordinal_keys: []
50
50
  SpelloutRules: spellout-ordinal
@@ -7,6 +7,7 @@ module Nokogiri
7
7
  else
8
8
  children.first.previous = content
9
9
  end
10
+ self
10
11
  end
11
12
  end
12
13
  end
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: 2.12.0
4
+ version: 2.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '2.08'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '2.08'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mn-requirements
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.7.1
89
+ version: 0.8.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: 0.7.1
96
+ version: 0.8.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: roman-numerals
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -418,9 +418,11 @@ files:
418
418
  - lib/isodoc/metadata_contributor.rb
419
419
  - lib/isodoc/metadata_date.rb
420
420
  - lib/isodoc/pdf_convert.rb
421
+ - lib/isodoc/presentation_function/autonum.rb
421
422
  - lib/isodoc/presentation_function/bibdata.rb
422
423
  - lib/isodoc/presentation_function/block.rb
423
424
  - lib/isodoc/presentation_function/concepts.rb
425
+ - lib/isodoc/presentation_function/docid.rb
424
426
  - lib/isodoc/presentation_function/erefs.rb
425
427
  - lib/isodoc/presentation_function/image.rb
426
428
  - lib/isodoc/presentation_function/inline.rb
@@ -431,6 +433,7 @@ files:
431
433
  - lib/isodoc/presentation_function/section.rb
432
434
  - lib/isodoc/presentation_function/sourcecode.rb
433
435
  - lib/isodoc/presentation_function/terms.rb
436
+ - lib/isodoc/presentation_function/title.rb
434
437
  - lib/isodoc/presentation_function/xrefs.rb
435
438
  - lib/isodoc/presentation_xml_convert.rb
436
439
  - lib/isodoc/sassc_importer.rb