metanorma-iso 2.4.4 → 2.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -105,9 +105,9 @@ module IsoDoc
105
105
  def admonition1(elem)
106
106
  super
107
107
  n = elem.at(ns("./name")) or return
108
- p = n.next_element
109
- p.name == "p" or return
110
- p.children.first.previous = admonition_name(to_xml(n.remove.children))
108
+ if (p = n.next_element) && p&.name == "p"
109
+ p.children.first.previous = admonition_name(to_xml(n.remove.children))
110
+ end
111
111
  end
112
112
 
113
113
  def admonition_name(xml)
@@ -13,7 +13,6 @@ module IsoDoc
13
13
 
14
14
  def can_conflate_eref_rendering?(refs)
15
15
  super or return false
16
-
17
16
  first = subclause?(nil, refs.first.at(ns("./locality/@type"))&.text,
18
17
  refs.first.at(ns("./locality/referenceFrom"))&.text)
19
18
  refs.all? do |r|
@@ -0,0 +1,34 @@
1
+ == copyright-statement
2
+ === {% if stage_int >= 40 %}DOCUMENT PROTÉGÉ PAR COPYRIGHT{%else%}{blank}
3
+
4
+ [[boilerplate-year]]
5
+ © span:std_publisher:[{{ agency }}] span:std_docNumber[{{ docyear }}]
6
+
7
+ [[boilerplate-message]]
8
+ Droits de reproduction réservés. Sauf indication contraire, ou requise dans le cadre de sa mise en œuvre,
9
+ aucune partie de cette publication ne
10
+ peut être reproduite ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique
11
+ ou mécanique, y compris la photocopie, l’affichage sur l’internet ou sur un Intranet, sans
12
+ autorisation écrite préalable. Les demandes d’autorisation peuvent être adressées à l’ISO à
13
+ l’adresse ci-après ou au comité membre de l’ISO dans le pays du demandeur.
14
+
15
+ [[boilerplate-address]]
16
+ [align="left"]
17
+ ISO copyright office +
18
+ CP 401 • Ch. de Blandonnet 8 +
19
+ CH-1214 Vernier, Geneva +
20
+ Tél: +41 22 749 01 11 +
21
+ Email: copyright@iso.org +
22
+ Website: www.iso.org
23
+
24
+ [[boilerplate-place]]
25
+ Publié en Suisse
26
+
27
+ {% if unpublished %}
28
+ == license-statement
29
+ === Avertissement
30
+
31
+ Ce document n'est pas une Norme internationale de l'ISO. Il est distribué pour examen et observations. Il est susceptible de modification sans préavis et ne peut être cité comme Norme internationale.
32
+
33
+ Les destinataires du présent projet sont invités à présenter, avec leurs observations, notification des droits de propriété dont ils auraient éventuellement connaissance et à fournir une documentation explicative.
34
+ {% endif %}
@@ -0,0 +1,30 @@
1
+ == copyright-statement
2
+
3
+ === {% if stage_int >= 40 %}ДОКУМЕНТ, ОХРАНЯЕМЫЙ АВТОРСКИМ ПРАВОМ{% else %}{blank}{% endif %}
4
+
5
+ [[boilerplate-year]]
6
+ © span:std_publisher[{{ agency }}] span:std_docNumber[{{ docyear }}]
7
+
8
+ [[boilerplate-message]]
9
+ Все права защищены. Если иначе не определено или не требуется в контексте его реализации, никакая часть этой публикации не может быть воспроизведена или использована иначе в любой форме или каким-либо образом, электронным или механическим, включая фотокопирование, или публикацию в Интернете или интранете, без предварительного письменного разрешения. Разрешение может быть запрошено ISO по адресу, указанному ниже, или у органа — члена ISO страны запрашивающего.
10
+
11
+ [[boilerplate-address]]
12
+ [align="left"]
13
+ Бюро ISO по охране авторских прав +
14
+ CP 401 • Ch. de Blandonnet 8 +
15
+ CH-1214 Vernier, Geneva +
16
+ Тел: +41 22 749 01 11 +
17
+ Электронная почта: copyright@iso.org +
18
+ Сайт: www.iso.org
19
+
20
+ [[boilerplate-place]]
21
+ Издано в Швейцарии
22
+
23
+ {% if unpublished %}
24
+ == license-statement
25
+ === Предупреждение для WD и CD
26
+
27
+ Этот документ не является международным стандартом ISO. Распространяется для ознакомления и комментариев. Оно может быть изменено без предварительного уведомления и не может упоминаться как международный стандарт.
28
+
29
+ Получателям этого проекта предлагается представить вместе со своими комментариями уведомление о любых соответствующих патентных правах, о которых им известно, и предоставить подтверждающую документацию.
30
+ {% endif %}
@@ -0,0 +1,40 @@
1
+ == copyright-statement
2
+
3
+ === {% if stage_int >= 40 %}COPYRIGHT PROTECTED DOCUMENT{% else %}{blank}{% endif %}
4
+
5
+ [[boilerplate-year]]
6
+ © span:std_publisher[{{ agency }}] span:std_docNumber[{{ docyear }}]
7
+
8
+ [[boilerplate-message]]
9
+ All rights reserved. Unless otherwise specified, or required in the context of its implementation,
10
+ no part of this publication may be
11
+ reproduced or utilized otherwise in any form or by any means, electronic or
12
+ mechanical, including photocopying, or posting on the internet or an intranet,
13
+ without prior written permission. Permission can be requested from either ISO
14
+ at the address below or ISO's member body in the country of the requester.
15
+
16
+ [[boilerplate-address]]
17
+ [align=left]
18
+ ISO copyright office +
19
+ CP 401 • Ch. de Blandonnet 8 +
20
+ CH-1214 Vernier, Geneva +
21
+ Phone: +41 22 749 01 11 +
22
+ Email: copyright@iso.org +
23
+ Website: www.iso.org
24
+
25
+ [[boilerplate-place]]
26
+ Published in Switzerland
27
+
28
+ {% if unpublished %}
29
+ == license-statement
30
+ === Warning for WDs and CDs
31
+
32
+ This document is not an ISO International Standard. It is distributed for review and
33
+ comment. It is subject to change without notice and may not be referred to as
34
+ an International Standard.
35
+
36
+ Recipients
37
+ of this draft are invited to submit, with their comments, notification of any
38
+ relevant patent rights of which they are aware and to provide supporting
39
+ documentation.
40
+ {% endif %}
@@ -110,11 +110,11 @@ module Metanorma
110
110
  xml.xpath("//*[@inline-header]").each { |h| h.delete("inline-header") }
111
111
  end
112
112
 
113
- def boilerplate_file(_xmldoc)
113
+ def boilerplate_file(xmldoc)
114
114
  file = case @lang
115
115
  when "fr" then "boilerplate-fr.xml"
116
116
  when "ru" then "boilerplate-ru.xml"
117
- else "boilerplate.xml"
117
+ else "boilerplate.adoc"
118
118
  end
119
119
  File.join(@libdir, file)
120
120
  end
@@ -1012,6 +1012,7 @@
1012
1012
  <ref name="del"/>
1013
1013
  <ref name="span"/>
1014
1014
  <ref name="erefstack"/>
1015
+ <ref name="date_inline"/>
1015
1016
  </choice>
1016
1017
  </define>
1017
1018
  <define name="add">
@@ -1053,6 +1054,23 @@
1053
1054
  </oneOrMore>
1054
1055
  </element>
1055
1056
  </define>
1057
+ <define name="date_inline">
1058
+ <element name="date">
1059
+ <attribute name="value"/>
1060
+ <optional>
1061
+ <attribute name="format"/>
1062
+ </optional>
1063
+ <optional>
1064
+ <attribute name="language"/>
1065
+ </optional>
1066
+ <optional>
1067
+ <attribute name="script"/>
1068
+ </optional>
1069
+ <optional>
1070
+ <attribute name="locale"/>
1071
+ </optional>
1072
+ </element>
1073
+ </define>
1056
1074
  <define name="concept">
1057
1075
  <element name="concept">
1058
1076
  <optional>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "2.4.4".freeze
3
+ VERSION = "2.4.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -369,9 +369,9 @@ files:
369
369
  - lib/metanorma/iso/basicdoc.rng
370
370
  - lib/metanorma/iso/biblio-standoc.rng
371
371
  - lib/metanorma/iso/biblio.rng
372
- - lib/metanorma/iso/boilerplate-fr.xml
373
- - lib/metanorma/iso/boilerplate-ru.xml
374
- - lib/metanorma/iso/boilerplate.xml
372
+ - lib/metanorma/iso/boilerplate-fr.adoc
373
+ - lib/metanorma/iso/boilerplate-ru.adoc
374
+ - lib/metanorma/iso/boilerplate.adoc
375
375
  - lib/metanorma/iso/cleanup.rb
376
376
  - lib/metanorma/iso/converter.rb
377
377
  - lib/metanorma/iso/front.rb
@@ -1,42 +0,0 @@
1
- <boilerplate>
2
- <copyright-statement>
3
- <clause>
4
- {% if stage_int >= 40 %}
5
- <title>DOCUMENT PROTÉGÉ PAR COPYRIGHT</title>
6
- {% endif %}
7
- <p id="boilerplate-year">&#xa9; <span class="std_publisher">{{ agency }}</span> <span class="std_docNumber">{{ docyear }}</span></p>
8
-
9
- <p id="boilerplate-message">
10
- Droits de reproduction réservés. Sauf indication contraire, ou requise dans le cadre de sa mise en œuvre,
11
- aucune partie de cette publication ne
12
- peut être reproduite ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique
13
- ou mécanique, y compris la photocopie, l’affichage sur l’internet ou sur un Intranet, sans
14
- autorisation écrite préalable. Les demandes d’autorisation peuvent être adressées à l’ISO à
15
- l’adresse ci-après ou au comité membre de l’ISO dans le pays du demandeur.
16
- </p>
17
-
18
- <p id="boilerplate-address" align="left">
19
- ISO copyright office<br/>
20
- CP 401 &#x2022; Ch. de Blandonnet 8<br/>
21
- CH-1214 Vernier, Geneva<br/>
22
- Tél: +41 22 749 01 11<br/>
23
- Email: copyright@iso.org<br/>
24
- Website: www.iso.org
25
- </p>
26
- <p id="boilerplate-place">
27
- Publié en Suisse
28
- </p>
29
- </clause>
30
- </copyright-statement>
31
-
32
- {% if unpublished %}
33
- <license-statement>
34
- <clause>
35
- <title>Avertissement</title>
36
-
37
- <p>Ce document n'est pas une Norme internationale de l'ISO. Il est distribué pour examen et observations. Il est susceptible de modification sans préavis et ne peut être cité comme Norme internationale.</p>
38
- <p>Les destinataires du présent projet sont invités à présenter, avec leurs observations, notification des droits de propriété dont ils auraient éventuellement connaissance et à fournir une documentation explicative.</p>
39
- </clause>
40
- </license-statement>
41
- {% endif %}
42
- </boilerplate>
@@ -1,38 +0,0 @@
1
- <boilerplate>
2
- <copyright-statement>
3
- <clause>
4
- {% if stage_int >= 40 %}
5
- <title>ДОКУМЕНТ, ОХРАНЯЕМЫЙ АВТОРСКИМ ПРАВОМ</title>
6
- {% endif %}
7
- <p id="boilerplate-year">&#xa9; <span class="std_publisher">{{ agency }}</span> <span class="std_docNumber">{{ docyear }}</span></p>
8
-
9
- <p id="boilerplate-message">
10
- Все права защищены. Если иначе не определено или не требуется в контексте его реализации, никакая часть этой публикации не может быть воспроизведена или использована иначе в любой форме или каким-либо образом, электронным или механическим, включая фотокопирование, или публикацию в Интернете или интранете, без предварительного письменного разрешения. Разрешение может быть запрошено ISO по адресу, указанному ниже, или у органа — члена ISO страны запрашивающего.
11
- </p>
12
-
13
- <p id="boilerplate-address" align="left">
14
- Бюро ISO по охране авторских прав<br/>
15
- CP 401 &#x2022; Ch. de Blandonnet 8<br/>
16
- CH-1214 Vernier, Geneva<br/>
17
- Тел: +41 22 749 01 11<br/>
18
- Электронная почта: copyright@iso.org<br/>
19
- Сайт: www.iso.org
20
- </p>
21
- <p id="boilerplate-place">
22
- Издано в Швейцарии
23
- </p>
24
- </clause>
25
- </copyright-statement>
26
-
27
- {% if unpublished %}
28
- <license-statement>
29
- <clause>
30
- <title>Предупреждение для WD и CD</title>
31
-
32
- <p>Этот документ не является международным стандартом ISO. Распространяется для ознакомления и комментариев. Оно может быть изменено без предварительного уведомления и не может упоминаться как международный стандарт.</p>
33
-
34
- <p>Получателям этого проекта предлагается представить вместе со своими комментариями уведомление о любых соответствующих патентных правах, о которых им известно, и предоставить подтверждающую документацию.</p>
35
- </clause>
36
- </license-statement>
37
- {% endif %}
38
- </boilerplate>
@@ -1,50 +0,0 @@
1
- <boilerplate>
2
- <copyright-statement>
3
- <clause>
4
- {% if stage_int >= 40 %}
5
- <title>COPYRIGHT PROTECTED DOCUMENT</title>
6
- {% endif %}
7
- <p id="boilerplate-year">&#xa9; <span class="std_publisher">{{ agency }}</span> <span class="std_docNumber">{{ docyear }}</span></p>
8
-
9
- <p id="boilerplate-message">
10
- All rights
11
- reserved. Unless otherwise specified, or required in the context of its implementation,
12
- no part of this publication may be
13
- reproduced or utilized otherwise in any form or by any means, electronic or
14
- mechanical, including photocopying, or posting on the internet or an intranet,
15
- without prior written permission. Permission can be requested from either ISO
16
- at the address below or ISO's member body in the country of the requester.
17
- </p>
18
-
19
- <p id="boilerplate-address" align="left">
20
- ISO copyright office<br/>
21
- CP 401 &#x2022; Ch. de Blandonnet 8<br/>
22
- CH-1214 Vernier, Geneva<br/>
23
- Phone: +41 22 749 01 11<br/>
24
- Email: copyright@iso.org<br/>
25
- Website: www.iso.org
26
- </p>
27
- <p id="boilerplate-place">
28
- Published in Switzerland
29
- </p>
30
- </clause>
31
- </copyright-statement>
32
-
33
- {% if unpublished %}
34
- <license-statement>
35
- <clause>
36
- <title>Warning for WDs and CDs</title>
37
-
38
- <p>This
39
- document is not an ISO International Standard. It is distributed for review and
40
- comment. It is subject to change without notice and may not be referred to as
41
- an International Standard.</p>
42
-
43
- <p>Recipients
44
- of this draft are invited to submit, with their comments, notification of any
45
- relevant patent rights of which they are aware and to provide supporting
46
- documentation.</p>
47
- </clause>
48
- </license-statement>
49
- {% endif %}
50
- </boilerplate>