isodoc 2.10.0 → 3.0.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/isodoc.gemspec +9 -4
  4. data/lib/isodoc/base_style/all.css +96 -0
  5. data/lib/isodoc/base_style/reset.css +96 -0
  6. data/lib/isodoc/base_style/reset.scss +75 -0
  7. data/lib/isodoc/base_style/scripts.html +45 -14
  8. data/lib/isodoc/class_utils.rb +4 -2
  9. data/lib/isodoc/convert.rb +0 -21
  10. data/lib/isodoc/css.rb +2 -4
  11. data/lib/isodoc/function/blocks.rb +37 -52
  12. data/lib/isodoc/function/blocks_example_note.rb +75 -29
  13. data/lib/isodoc/function/cleanup.rb +9 -44
  14. data/lib/isodoc/function/inline.rb +67 -13
  15. data/lib/isodoc/function/lists.rb +20 -14
  16. data/lib/isodoc/function/references.rb +9 -126
  17. data/lib/isodoc/function/reqt.rb +4 -3
  18. data/lib/isodoc/function/section.rb +30 -35
  19. data/lib/isodoc/function/section_titles.rb +22 -11
  20. data/lib/isodoc/function/table.rb +3 -3
  21. data/lib/isodoc/function/terms.rb +49 -26
  22. data/lib/isodoc/function/to_word_html.rb +46 -16
  23. data/lib/isodoc/function/utils.rb +11 -12
  24. data/lib/isodoc/gem_tasks.rb +1 -1
  25. data/lib/isodoc/html_function/footnotes.rb +2 -1
  26. data/lib/isodoc/html_function/html.rb +5 -7
  27. data/lib/isodoc/html_function/postprocess.rb +25 -6
  28. data/lib/isodoc/html_function/postprocess_cover.rb +13 -7
  29. data/lib/isodoc/html_function/postprocess_footnotes.rb +52 -47
  30. data/lib/isodoc/init.rb +31 -0
  31. data/lib/isodoc/metadata.rb +20 -13
  32. data/lib/isodoc/metadata_contributor.rb +5 -10
  33. data/lib/isodoc/metadata_date.rb +1 -1
  34. data/lib/isodoc/presentation_function/autonum.rb +153 -0
  35. data/lib/isodoc/presentation_function/bibdata.rb +4 -5
  36. data/lib/isodoc/presentation_function/block.rb +107 -40
  37. data/lib/isodoc/presentation_function/concepts.rb +184 -19
  38. data/lib/isodoc/presentation_function/docid.rb +78 -0
  39. data/lib/isodoc/presentation_function/erefs.rb +55 -31
  40. data/lib/isodoc/presentation_function/image.rb +64 -19
  41. data/lib/isodoc/presentation_function/index.rb +180 -0
  42. data/lib/isodoc/presentation_function/inline.rb +47 -16
  43. data/lib/isodoc/presentation_function/math.rb +128 -71
  44. data/lib/isodoc/presentation_function/metadata.rb +29 -66
  45. data/lib/isodoc/presentation_function/refs.rb +75 -28
  46. data/lib/isodoc/presentation_function/reqt.rb +7 -4
  47. data/lib/isodoc/presentation_function/section.rb +51 -129
  48. data/lib/isodoc/presentation_function/sourcecode.rb +52 -19
  49. data/lib/isodoc/presentation_function/terms.rb +107 -118
  50. data/lib/isodoc/presentation_function/title.rb +107 -0
  51. data/lib/isodoc/presentation_function/xrefs.rb +37 -17
  52. data/lib/isodoc/presentation_xml_convert.rb +24 -10
  53. data/lib/isodoc/version.rb +1 -1
  54. data/lib/isodoc/word_function/body.rb +9 -37
  55. data/lib/isodoc/word_function/comments.rb +0 -1
  56. data/lib/isodoc/word_function/footnotes.rb +1 -1
  57. data/lib/isodoc/word_function/lists.rb +13 -9
  58. data/lib/isodoc/word_function/postprocess.rb +6 -0
  59. data/lib/isodoc/word_function/postprocess_cover.rb +6 -4
  60. data/lib/isodoc/word_function/postprocess_table.rb +1 -1
  61. data/lib/isodoc/word_function/postprocess_toc.rb +10 -6
  62. data/lib/isodoc/word_function/table.rb +2 -2
  63. data/lib/isodoc/xref/clause_order.rb +41 -0
  64. data/lib/isodoc/xref/xref_anchor.rb +31 -16
  65. data/lib/isodoc/xref/xref_counter.rb +18 -3
  66. data/lib/isodoc/xref/xref_counter_types.rb +14 -0
  67. data/lib/isodoc/xref/xref_gen.rb +61 -37
  68. data/lib/isodoc/xref/xref_gen_seq.rb +148 -81
  69. data/lib/isodoc/xref/xref_sect_gen.rb +84 -88
  70. data/lib/isodoc/xref/xref_util.rb +53 -4
  71. data/lib/isodoc/xref.rb +29 -10
  72. data/lib/isodoc/xslfo_convert.rb +14 -9
  73. data/lib/isodoc-yaml/i18n-ar.yaml +17 -13
  74. data/lib/isodoc-yaml/i18n-de.yaml +17 -13
  75. data/lib/isodoc-yaml/i18n-en.yaml +18 -17
  76. data/lib/isodoc-yaml/i18n-es.yaml +17 -13
  77. data/lib/isodoc-yaml/i18n-fr.yaml +17 -13
  78. data/lib/isodoc-yaml/i18n-ja.yaml +56 -52
  79. data/lib/isodoc-yaml/i18n-ru.yaml +17 -16
  80. data/lib/isodoc-yaml/i18n-zh-Hans.yaml +17 -13
  81. data/lib/nokogiri/xml/node.rb +14 -0
  82. data/lib/relaton/render-isodoc/config.yml +1 -1
  83. metadata +90 -13
@@ -14,15 +14,18 @@ termsdefsymbols: Términos, definiciones y símbolos
14
14
  termsdefabbrev: Términos, definiciones y términos abreviados
15
15
  normref: Referencias normativas
16
16
  bibliography: Bibliografía
17
+ index: Índice
18
+ see: ver
19
+ see_also: ver también
17
20
  section: Sección
18
21
  clause: Cláusula
19
22
  annex: Anexo
20
23
  appendix: Apéndice
21
24
  continued: continuación
22
25
  no_terms_boilerplate: |
23
- <p>En este documento no se enumeran términos ni definiciones.</p>
26
+ En este documento no se enumeran términos ni definiciones.
24
27
  internal_terms_boilerplate: |
25
- <p>Para los propósitos de este documento, se aplican los siguientes términos y definiciones.</p>
28
+ Para los propósitos de este documento, se aplican los siguientes términos y definiciones.
26
29
  norm_with_refs_pref:
27
30
  Los siguientes documentos se mencionan en el texto de tal manera que
28
31
  parte o todo su contenido constituye requisitos de este documento.
@@ -32,20 +35,20 @@ norm_with_refs_pref:
32
35
  norm_empty_pref:
33
36
  No hay referencias normativas en este documento.
34
37
  external_terms_boilerplate: |
35
- <p>Para los propósitos de este documento, se aplican los términos y definiciones dados en %.</p>
38
+ Para los propósitos de este documento, se aplican los términos y definiciones dados en %.
36
39
  internal_external_terms_boilerplate: |
37
- <p>Para los propósitos de este documento, se aplican los términos y definiciones dados en % y los siguientes.</p>
40
+ Para los propósitos de este documento, se aplican los términos y definiciones dados en % y los siguientes.
38
41
  no_information_available: "[NO HAY INFORMACIÓN DISPONIBLE]"
39
42
  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"
43
+ binary_and: "%1 <conn>y<//conn> %2"
44
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>y</conn> %2"
45
+ binary_or: "%1 <conn>o</conn> %2"
46
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>o</conn> %2"
47
+ chain_and: "%1 <conn>y</conn> %2"
48
+ chain_or: "%1 <conn>o</conn> %2"
49
+ chain_from: "%1 <conn>del</conn> %2"
50
+ chain_to: "%1 <conn>al</conn> %2"
51
+ nested_xref: "%1<comma>,</comma> %2"
49
52
  list_nested_xref: "%1 %2"
50
53
  ordinal_keys: [gender,number]
51
54
  SpelloutRules:
@@ -86,6 +89,7 @@ adapted: adaptado
86
89
  deprecated: OBSOLETO
87
90
  source: FUENTE
88
91
  and: y
92
+ no_identifier: (SIN IDENTIFICADOR)
89
93
  all_parts: Todas las partes
90
94
  edition_ordinal: "{{ var1 | ordinal_word: 'edition', '' }} edición"
91
95
  edition: edición
@@ -14,6 +14,9 @@ termsdefsymbols: Termes, définitions et symboles
14
14
  termsdefabbrev: Termes, définitions et termes abrégés
15
15
  normref: Références normatives
16
16
  bibliography: Bibliographie
17
+ index: Index
18
+ see: voir
19
+ see_also: voir aussi
17
20
  preface: Préface
18
21
  section: Section
19
22
  clause: Article
@@ -21,28 +24,28 @@ annex: Annexe
21
24
  appendix: Appendice
22
25
  continued: continué
23
26
  no_terms_boilerplate: |
24
- <p>Aucun terme n’est défini dans le présent document.</p>
27
+ Aucun terme n’est défini dans le présent document.
25
28
  internal_terms_boilerplate: |
26
- <p>Pour les besoins du présent document, les termes et définitions suivants s’appliquent.</p>
29
+ Pour les besoins du présent document, les termes et définitions suivants s’appliquent.
27
30
  norm_with_refs_pref:
28
31
  Les documents suivants cités dans le texte constituent, pour tout ou partie de leur contenu, des exigences du présent document. Pour les références datées, seule l’édition citée s’applique. Pour les références non datées, la dernière édition du document de référence s’applique (y compris les éventuels amendements).
29
32
  norm_empty_pref:
30
33
  Le présent document ne contient aucune référence normative.
31
34
  external_terms_boilerplate: |
32
- <p>Pour les besoins du présent document, les termes et définitions de % s’appliquent.</p>
35
+ Pour les besoins du présent document, les termes et définitions de % s’appliquent.
33
36
  internal_external_terms_boilerplate: |
34
- <p>Pour les besoins du présent document, les termes et définitions de % ainsi que les suivants, s’appliquent.</p>
37
+ Pour les besoins du présent document, les termes et définitions de % ainsi que les suivants, s’appliquent.
35
38
  no_information_available: "[PAS D’INFORMATION DISPONIBLE]"
36
39
  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"
40
+ binary_and: "%1 <conn>et</conn> %2"
41
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>et</conn> %2"
42
+ binary_or: "%1 <conn>ou</conn> %2"
43
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>ou</conn> %2"
44
+ chain_and: "%1 <conn>et</conn> %2"
45
+ chain_or: "%1 <conn>ou</conn> %2"
46
+ chain_from: "%1 <conn>de</conn> %2"
47
+ chain_to: "%1 <conn>à</conn> %2"
48
+ nested_xref: "%1<comma>,</comma> %2"
46
49
  list_nested_xref: "%1 %2"
47
50
  ordinal_keys: [gender,number]
48
51
  SpelloutRules:
@@ -85,6 +88,7 @@ source: SOURCE
85
88
  edition: édition
86
89
  version: version
87
90
  and: et
91
+ no_identifier: (PAS D'IDENTIFIANT)
88
92
  all_parts: toutes les parties
89
93
  edition_ordinal: "{{ var1 | ordinal_word: 'edition', '' }} édition"
90
94
  edition: édition
@@ -6,44 +6,47 @@ symbols: 記号
6
6
  table_of_contents: 目次
7
7
  introduction: 序文
8
8
  foreword: まえがき
9
- abstract: Abstract
10
- acknowledgements: Acknowledgements
9
+ abstract: はじめに
10
+ acknowledgements: 謝辞
11
11
  termsdef: 用語及び定義
12
12
  termsdefsymbolsabbrev: 用語及び定義並びに記号及び略語
13
13
  termsdefsymbols: 用語及び定義並びに記号
14
14
  termsdefabbrev: 用語及び定義並びに略語
15
15
  normref: 引用規格
16
16
  bibliography: 参考文献
17
- preface: Preface
18
- section: Section
17
+ index: 索引
18
+ see: 参照
19
+ see_also: 追加参照
20
+ preface: 序文
21
+ section: セクション
19
22
  clause: 箇条
20
23
  annex: 附属書
21
24
  appendix: Appendix
22
25
  continued: 続き
23
26
  no_terms_boilerplate: |
24
- <p>この規格には,定義する用語はない。</p>
27
+ この規格には,定義する用語はない。
25
28
  internal_terms_boilerplate: |
26
- <p>この規格で用いる主な用語及び定義は,次による。</p>
29
+ この規格で用いる主な用語及び定義は,次による。
27
30
  norm_with_refs_pref:
28
31
  次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要 求事項を構成している。これらの引用規格のうち,西暦年を付記してあるものは,記載の年の版を適 用し,その後の改正版(追補を含む。)は適用しない。西暦年の付記がない引用規格は,その最新版(追 補を含む。)を適用する。
29
32
  norm_empty_pref:
30
33
  この規格には,引用規格はない。
31
34
  external_terms_boilerplate: |
32
- <p>この規格で用いる主な用語及び定義は,% による。</p>
35
+ この規格で用いる主な用語及び定義は,% による。
33
36
  internal_external_terms_boilerplate: |
34
- <p>この規格で用いる主な用語及び定義は,次によるほか,% による。</p>
37
+ この規格で用いる主な用語及び定義は,次によるほか,% による。
35
38
  no_information_available: "[情報はありません]"
36
39
  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"
40
+ binary_and: "%1 <conn>及び</conn> %2"
41
+ multiple_and: "%1<enum-comma>、</enum-comma>%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<conn>の</conn>%2"
49
+ list_nested_xref: "%1<conn>の</conn>%2"
47
50
  no_conflate_xref_locations: true
48
51
  ordinal_keys: []
49
52
  SpelloutRules: spellout-ordinal
@@ -52,28 +55,28 @@ note: 注記
52
55
  note_xref: 注記
53
56
  termnote: 注釈%
54
57
  list: リスト
55
- deflist: Definition List
58
+ deflist: 定義リスト
56
59
  figure: 図
57
60
  diagram: Diagram
58
61
  formula: 式
59
- inequality: Formula
62
+ inequality: 式
60
63
  table: 表
61
- requirement: 要求事項
62
- recommendation: 推奨事項
63
- permission: 許容事項
64
+ requirement: 要求
65
+ recommendation: 推奨
66
+ permission: 許可
64
67
  box: Box
65
68
  index: 索引
66
69
  standard_no: 規格番号
67
70
  number: 番号
68
71
  # Modspec
69
- recommendationtest: Recommendation test
70
- requirementtest: Requirement test
71
- permissiontest: Permission test
72
- recommendationclass: Recommendations class
73
- requirementclass: Requirements class
74
- permissionclass: Permissions class
75
- abstracttest: Abstract test
76
- conformanceclass: Conformance class
72
+ recommendationtest: 推奨テスト
73
+ requirementtest: 要件テスト
74
+ permissiontest: 許可テスト
75
+ recommendationclass: 推奨群
76
+ requirementclass: 要件群
77
+ permissionclass: 許可群
78
+ abstracttest: 抽象テスト
79
+ conformanceclass: 適合性テスト群
77
80
  key: 記号説明
78
81
  example: 例
79
82
  example_xref: 例
@@ -88,41 +91,42 @@ adapted: 適合しました
88
91
  deprecated: 推奨しない用語
89
92
  source: 出典
90
93
  and: and
94
+ no_identifier: (識別子なし)
91
95
  all_parts: 規格群
92
- edition_ordinal: "第3版{{ var1 }}版"
96
+ edition_ordinal: "第{{ var1 }}版"
93
97
  edition: 版
94
98
  version: version
95
99
  toc_figures: List of figures
96
100
  toc_tables: List of tables
97
101
  toc_recommendations: List of recommendations
98
- month_january: January
99
- month_february: February
100
- month_march: March
101
- month_april: April
102
- month_may: May
103
- month_june: June
104
- month_july: July
105
- month_august: August
106
- month_september: September
107
- month_october: October
108
- month_november: November
109
- month_december: December
102
+ month_january: 1月
103
+ month_february: 2月
104
+ month_march: 3月
105
+ month_april: 4月
106
+ month_may: 5月
107
+ month_june: 6月
108
+ month_july: 7月
109
+ month_august: 8月
110
+ month_september: 9月
111
+ month_october: 10月
112
+ month_november: 11月
113
+ month_december: 12月
110
114
  obligation: Obligation
111
115
  admonition: {
112
- danger: Danger,
116
+ danger: 危険です,
113
117
  warning: 警告,
114
- caution: Caution,
115
- important: Important,
116
- safety precautions: Safety Precautions,
117
- editorial: Editorial Note
118
+ caution: 注意,
119
+ important: 重要,
120
+ safety precautions: 安全上の注意,
121
+ editorial: 編集者注
118
122
  }
119
123
  locality: {
120
- section: Section,
124
+ section: セクション,
121
125
  clause: 箇条,
122
126
  subclause: 細分箇条,
123
127
  part: 部,
124
128
  paragraph: 段落,
125
- chapter: Chapter,
129
+ chapter: 第章,
126
130
  page: ページ,
127
131
  table: 表,
128
132
  annex: 附属書,
@@ -153,7 +157,7 @@ relatedterms:
153
157
  equivalent: equivalent
154
158
  compare: compare
155
159
  contrast: contrast
156
- see: see
160
+ see: 参照
157
161
  seealso: see also
158
162
  inflection:
159
163
  Clause:
@@ -14,16 +14,18 @@ termsdefsymbols: Термины, определения и символы
14
14
  termsdefabbrev: Термины, определения и сокращенные термины
15
15
  normref: Нормативные ссылки
16
16
  bibliography: Библиография
17
+ index: Алфавитный указатель
18
+ see: см.
19
+ see_also: см. также
17
20
  section: Раздел
18
21
  clause: Пункт
19
22
  annex: Дополнение
20
23
  appendix: Приложение
21
24
  continued: продолжение
22
25
  no_terms_boilerplate: |
23
- <p>Термины и определения не перечислены в этом документе.</p>
26
+ Термины и определения не перечислены в этом документе.
24
27
  internal_terms_boilerplate: |
25
- <p>Для целей этого документа
26
- применяются следующие термины и определения.</p>
28
+ Для целей этого документа применяются следующие термины и определения.
27
29
  norm_with_refs_pref:
28
30
  Следующие документы упоминаются в тексте таким образом,
29
31
  что некоторая часть или все их содержание являются требованиями
@@ -33,22 +35,20 @@ norm_with_refs_pref:
33
35
  norm_empty_pref:
34
36
  Нет нормативных ссылок в этом документе.
35
37
  external_terms_boilerplate: |
36
- <p>Для целей этого документа применяются
37
- термины и определения, данные в %.</p>
38
+ Для целей этого документа применяются термины и определения, данные в %.
38
39
  internal_external_terms_boilerplate: |
39
- <p>Для целей этого документа применяются
40
- термины и определения, данные в % и следующие.</p>
40
+ Для целей этого документа применяются термины и определения, данные в % и следующие.
41
41
  no_information_available: "[ИНФОРМАЦИЯ ОТСУТСТВУЕТ]"
42
42
  term_defined_in: "(%)"
43
- binary_and: "%1 и %2"
44
- multiple_and: "%1, и %2"
45
- binary_or: "%1 или %2"
46
- multiple_or: "%1, или %2"
47
- chain_and: "%1 и %2"
48
- chain_or: "%1 или %2"
49
- chain_from: "%1 от %2"
50
- chain_to: "%1 до %2"
51
- nested_xref: "%1, %2"
43
+ binary_and: "%1 <conn>и</conn> %2"
44
+ multiple_and: "%1<enum-comma>,</enum-comma> <conn>и</conn> %2"
45
+ binary_or: "%1 <conn>или</conn> %2"
46
+ multiple_or: "%1<enum-comma>,</enum-comma> <conn>или</conn> %2"
47
+ chain_and: "%1 <conn>и</conn> %2"
48
+ chain_or: "%1 <conn>или</conn> %2"
49
+ chain_from: "%1 <conn>от</conn> %2"
50
+ chain_to: "%1 <conn>до</conn> %2"
51
+ nested_xref: "%1<comma>,</comma> %2"
52
52
  list_nested_xref: "%1 %2"
53
53
  ordinal_keys: [gender,number,case]
54
54
  SpelloutRules:
@@ -153,6 +153,7 @@ adapted: адаптированный
153
153
  deprecated: НЕ РЕКОМЕНДУЕТСЯ
154
154
  source: ИСТОЧНИК
155
155
  and: и
156
+ no_identifier: (БЕЗ ИДЕНТИФИКАТОРА)
156
157
  all_parts: Все части
157
158
  edition_ordinal: "{{ var1 | ordinal_word: 'edition', '' }} издание"
158
159
  edition: издание
@@ -14,6 +14,9 @@ termsdefsymbols: 术语、定义、符号和代号
14
14
  termsdefabbrev: 术语、定义、符号和缩略语
15
15
  normref: 规范性引用文件
16
16
  bibliography: 参考文献
17
+ index: 索引
18
+ see: 见
19
+ see_also: 另见
17
20
  preface: 序言
18
21
  section: 条
19
22
  clause: 条
@@ -21,9 +24,9 @@ annex: 附件
21
24
  appendix: 附录
22
25
  continued: 继续
23
26
  no_terms_boilerplate: |
24
- <p>本文件不提供术语和定义。</p>
27
+ 本文件不提供术语和定义。
25
28
  internal_terms_boilerplate: |
26
- <p>下列术语和定义适用于本文件。</p>
29
+ 下列术语和定义适用于本文件。
27
30
  norm_with_refs_pref:
28
31
  下列文件对于本文件的应用是必不可少的。
29
32
  凡是注日期的引用文件,仅注日期的版本适用于本文件。
@@ -31,20 +34,20 @@ norm_with_refs_pref:
31
34
  norm_empty_pref:
32
35
  本文件并没有规范性引用文件。
33
36
  external_terms_boilerplate: |
34
- <p>% 界定的术语和定义适用于本文件。</p>
37
+ % 界定的术语和定义适用于本文件。
35
38
  internal_external_terms_boilerplate: |
36
- <p>% 界定的以及下列术语和定义适用于本文件。</p>
39
+ % 界定的以及下列术语和定义适用于本文件。
37
40
  no_information_available: "[无资料]"
38
41
  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"
42
+ binary_and: "%1<conn>和</conn>%2"
43
+ multiple_and: "%1<enum-comma>、</enum-comma><conn>和</conn>%2"
44
+ binary_or: "%1<conn>或</conn>%2"
45
+ multiple_or: "%1<enum-comma>、</enum-comma><conn>或</conn>%2"
46
+ chain_and: "%1<conn>和</conn>%2"
47
+ chain_or: "%1<conn>或</conn>%2"
48
+ chain_from: "%1<conn>从</conn>%2"
49
+ chain_to: "%1<conn>到</conn>%2"
50
+ nested_xref: "%1<comma>,</comma> %2"
48
51
  list_nested_xref: "%1 %2"
49
52
  ordinal_keys: []
50
53
  SpelloutRules: spellout-ordinal
@@ -77,6 +80,7 @@ adapted: 改编
77
80
  deprecated: 被取代
78
81
  source: 定义
79
82
  and: 和
83
+ no_identifier: (无标识符)
80
84
  all_parts: 所有部分
81
85
  edition_ordinal: "第{{ var1 | ordinal_word: '', '' }}版"
82
86
  edition: 版
@@ -0,0 +1,14 @@
1
+ module Nokogiri
2
+ module XML
3
+ class Node
4
+ def add_first_child(content)
5
+ if children.empty?
6
+ add_child(content)
7
+ else
8
+ children.first.previous = content
9
+ end
10
+ self
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,4 +1,4 @@
1
1
  template:
2
2
  # skip authoritative identifier, it is inserted in front of formattedref within metanorma
3
- standard: "{% if creatornames %}{{ creatornames }} ({{ role}}){%else%}{{publisher}}{%endif%} . <em>{{ title }}</em> . {{ labels['in'] | capitalize }}:_{{ series_title }}. {{ medium | capitalize }}. {{ edition | capitalize_first }}. {{date}}. {{place}}: {%if creatornames %}{{publisher}}{% endif %} . {{size}}. {{ extent }}. {{ uri }}. {{ labels['at'] | capitalize}}:_{{ access_location }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
3
+ standard: "{% if creatornames %}{{ creatornames }} ({{ role}}){%else%}{{publisher}}{%endif%} . <em>{{ title }}</em> . {{ medium | capitalize }}. {{ edition | capitalize_first }}. {{date}}. {{place}}: {%if creatornames %}{{publisher}}{% endif %} . {{size}}. {{ extent }}. {{ uri }}. {{ labels['at'] | capitalize}}:_{{ access_location }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
4
4
 
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2025-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: base64
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bigdecimal
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: html2doc
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -30,42 +58,42 @@ dependencies:
30
58
  requirements:
31
59
  - - ">="
32
60
  - !ruby/object:Gem::Version
33
- version: '0'
61
+ version: '2.13'
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - ">="
39
67
  - !ruby/object:Gem::Version
40
- version: '0'
68
+ version: '2.13'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: mn-requirements
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: 0.3.4
75
+ version: 0.5.0
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: 0.3.4
82
+ version: 0.5.0
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: relaton-render
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: 0.7.1
89
+ version: 0.9.0
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: 0.7.1
96
+ version: 0.9.0
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: roman-numerals
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +164,34 @@ dependencies:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: nokogiri
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "<="
172
+ - !ruby/object:Gem::Version
173
+ version: 1.16.8
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "<="
179
+ - !ruby/object:Gem::Version
180
+ version: 1.16.8
181
+ - !ruby/object:Gem::Dependency
182
+ name: bigdecimal
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
139
195
  - !ruby/object:Gem::Dependency
140
196
  name: debug
141
197
  requirement: !ruby/object:Gem::Requirement
@@ -276,6 +332,20 @@ dependencies:
276
332
  - - "~>"
277
333
  - !ruby/object:Gem::Version
278
334
  version: '0.9'
335
+ - !ruby/object:Gem::Dependency
336
+ name: xml-c14n
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - ">="
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :development
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - ">="
347
+ - !ruby/object:Gem::Version
348
+ version: '0'
279
349
  description: |
280
350
  isodoc converts documents in the IsoDoc document model into
281
351
  Microsoft Word and HTML.
@@ -362,11 +432,14 @@ files:
362
432
  - lib/isodoc/metadata_contributor.rb
363
433
  - lib/isodoc/metadata_date.rb
364
434
  - lib/isodoc/pdf_convert.rb
435
+ - lib/isodoc/presentation_function/autonum.rb
365
436
  - lib/isodoc/presentation_function/bibdata.rb
366
437
  - lib/isodoc/presentation_function/block.rb
367
438
  - lib/isodoc/presentation_function/concepts.rb
439
+ - lib/isodoc/presentation_function/docid.rb
368
440
  - lib/isodoc/presentation_function/erefs.rb
369
441
  - lib/isodoc/presentation_function/image.rb
442
+ - lib/isodoc/presentation_function/index.rb
370
443
  - lib/isodoc/presentation_function/inline.rb
371
444
  - lib/isodoc/presentation_function/math.rb
372
445
  - lib/isodoc/presentation_function/metadata.rb
@@ -375,6 +448,7 @@ files:
375
448
  - lib/isodoc/presentation_function/section.rb
376
449
  - lib/isodoc/presentation_function/sourcecode.rb
377
450
  - lib/isodoc/presentation_function/terms.rb
451
+ - lib/isodoc/presentation_function/title.rb
378
452
  - lib/isodoc/presentation_function/xrefs.rb
379
453
  - lib/isodoc/presentation_xml_convert.rb
380
454
  - lib/isodoc/sassc_importer.rb
@@ -392,8 +466,10 @@ files:
392
466
  - lib/isodoc/word_function/postprocess_toc.rb
393
467
  - lib/isodoc/word_function/table.rb
394
468
  - lib/isodoc/xref.rb
469
+ - lib/isodoc/xref/clause_order.rb
395
470
  - lib/isodoc/xref/xref_anchor.rb
396
471
  - lib/isodoc/xref/xref_counter.rb
472
+ - lib/isodoc/xref/xref_counter_types.rb
397
473
  - lib/isodoc/xref/xref_gen.rb
398
474
  - lib/isodoc/xref/xref_gen_seq.rb
399
475
  - lib/isodoc/xref/xref_sect_gen.rb
@@ -403,13 +479,14 @@ files:
403
479
  - lib/metanorma/output/base.rb
404
480
  - lib/metanorma/output/utils.rb
405
481
  - lib/metanorma/output/xslfo.rb
482
+ - lib/nokogiri/xml/node.rb
406
483
  - lib/relaton/render-isodoc/config.yml
407
484
  - lib/relaton/render-isodoc/general.rb
408
485
  homepage: https://github.com/metanorma/isodoc
409
486
  licenses:
410
487
  - BSD-2-Clause
411
488
  metadata: {}
412
- post_install_message:
489
+ post_install_message:
413
490
  rdoc_options: []
414
491
  require_paths:
415
492
  - lib
@@ -417,15 +494,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
417
494
  requirements:
418
495
  - - ">="
419
496
  - !ruby/object:Gem::Version
420
- version: 2.7.0
497
+ version: 3.1.0
421
498
  required_rubygems_version: !ruby/object:Gem::Requirement
422
499
  requirements:
423
500
  - - ">="
424
501
  - !ruby/object:Gem::Version
425
502
  version: '0'
426
503
  requirements: []
427
- rubygems_version: 3.3.26
428
- signing_key:
504
+ rubygems_version: 3.3.27
505
+ signing_key:
429
506
  specification_version: 4
430
507
  summary: Convert documents in IsoDoc into Word and HTML in AsciiDoc.
431
508
  test_files: []