metanorma-iec 2.6.1 → 2.6.3
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.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/html/htmlstyle.css +7 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +619 -249
- data/lib/isodoc/iec/word_convert.rb +2 -3
- data/lib/metanorma/iec/basicdoc.rng +34 -27
- data/lib/metanorma/iec/isodoc.rng +37 -1
- data/lib/metanorma/iec/relaton-iec.rng +0 -22
- data/lib/metanorma/iec/version.rb +1 -1
- metadata +2 -2
| @@ -104,9 +104,8 @@ module IsoDoc | |
| 104 104 | 
             
                  end
         | 
| 105 105 |  | 
| 106 106 | 
             
                  def tr_parse(node, out, ord, totalrows, header)
         | 
| 107 | 
            -
                     | 
| 108 | 
            -
                     | 
| 109 | 
            -
                    out.tr do |r|
         | 
| 107 | 
            +
                    bordered = table_bordered?(node)
         | 
| 108 | 
            +
                    out.tr **attr_code(style: node["style"]) do |r|
         | 
| 110 109 | 
             
                      node.elements.each do |td|
         | 
| 111 110 | 
             
                        attrs = make_tr_attr(td, ord, totalrows - 1, header, bordered)
         | 
| 112 111 | 
             
                        attrs[:class] = "TABLE-col-heading" if header
         | 
| @@ -382,33 +382,7 @@ in a document (e.g. sourcecode annotations)</a:documentation> | |
| 382 382 | 
             
                <a:documentation>Block intended to capture reviewer comments about some text in the document</a:documentation>
         | 
| 383 383 | 
             
                <element name="review">
         | 
| 384 384 | 
             
                  <ref name="RequiredId"/>
         | 
| 385 | 
            -
                  < | 
| 386 | 
            -
                    <a:documentation>The party who has offered the comment</a:documentation>
         | 
| 387 | 
            -
                  </attribute>
         | 
| 388 | 
            -
                  <optional>
         | 
| 389 | 
            -
                    <attribute name="type">
         | 
| 390 | 
            -
                      <a:documentation>The type of reviewer comment</a:documentation>
         | 
| 391 | 
            -
                    </attribute>
         | 
| 392 | 
            -
                  </optional>
         | 
| 393 | 
            -
                  <optional>
         | 
| 394 | 
            -
                    <attribute name="date">
         | 
| 395 | 
            -
                      <a:documentation>The date when the comment was made</a:documentation>
         | 
| 396 | 
            -
                      <data type="dateTime"/>
         | 
| 397 | 
            -
                    </attribute>
         | 
| 398 | 
            -
                  </optional>
         | 
| 399 | 
            -
                  <optional>
         | 
| 400 | 
            -
                    <attribute name="from">
         | 
| 401 | 
            -
                      <a:documentation>Identifier for the start of the text or point in the text to which the comment applies.
         | 
| 402 | 
            -
            If not provided, the comment applies in the vicinity of the place it has been inserted into the text</a:documentation>
         | 
| 403 | 
            -
                      <data type="IDREF"/>
         | 
| 404 | 
            -
                    </attribute>
         | 
| 405 | 
            -
                  </optional>
         | 
| 406 | 
            -
                  <optional>
         | 
| 407 | 
            -
                    <attribute name="to">
         | 
| 408 | 
            -
                      <a:documentation>Identifier for the end of the text to which the comment applies</a:documentation>
         | 
| 409 | 
            -
                      <data type="IDREF"/>
         | 
| 410 | 
            -
                    </attribute>
         | 
| 411 | 
            -
                  </optional>
         | 
| 385 | 
            +
                  <ref name="ReviewAttributes"/>
         | 
| 412 386 | 
             
                  <oneOrMore>
         | 
| 413 387 | 
             
                    <ref name="paragraph">
         | 
| 414 388 | 
             
                      <a:documentation>Reviewer comments content</a:documentation>
         | 
| @@ -416,6 +390,35 @@ If not provided, the comment applies in the vicinity of the place it has been in | |
| 416 390 | 
             
                  </oneOrMore>
         | 
| 417 391 | 
             
                </element>
         | 
| 418 392 | 
             
              </define>
         | 
| 393 | 
            +
              <define name="ReviewAttributes">
         | 
| 394 | 
            +
                <attribute name="reviewer">
         | 
| 395 | 
            +
                  <a:documentation>The party who has offered the comment</a:documentation>
         | 
| 396 | 
            +
                </attribute>
         | 
| 397 | 
            +
                <optional>
         | 
| 398 | 
            +
                  <attribute name="type">
         | 
| 399 | 
            +
                    <a:documentation>The type of reviewer comment</a:documentation>
         | 
| 400 | 
            +
                  </attribute>
         | 
| 401 | 
            +
                </optional>
         | 
| 402 | 
            +
                <optional>
         | 
| 403 | 
            +
                  <attribute name="date">
         | 
| 404 | 
            +
                    <a:documentation>The date when the comment was made</a:documentation>
         | 
| 405 | 
            +
                    <data type="dateTime"/>
         | 
| 406 | 
            +
                  </attribute>
         | 
| 407 | 
            +
                </optional>
         | 
| 408 | 
            +
                <optional>
         | 
| 409 | 
            +
                  <attribute name="from">
         | 
| 410 | 
            +
                    <a:documentation>Identifier for the start of the text or point in the text to which the comment applies.
         | 
| 411 | 
            +
            If not provided, the comment applies in the vicinity of the place it has been inserted into the text</a:documentation>
         | 
| 412 | 
            +
                    <data type="IDREF"/>
         | 
| 413 | 
            +
                  </attribute>
         | 
| 414 | 
            +
                </optional>
         | 
| 415 | 
            +
                <optional>
         | 
| 416 | 
            +
                  <attribute name="to">
         | 
| 417 | 
            +
                    <a:documentation>Identifier for the end of the text to which the comment applies</a:documentation>
         | 
| 418 | 
            +
                    <data type="IDREF"/>
         | 
| 419 | 
            +
                  </attribute>
         | 
| 420 | 
            +
                </optional>
         | 
| 421 | 
            +
              </define>
         | 
| 419 422 | 
             
              <define name="NumberingAttributes">
         | 
| 420 423 | 
             
                <optional>
         | 
| 421 424 | 
             
                  <attribute name="unnumbered">
         | 
| @@ -857,6 +860,7 @@ in case the table cannot be rendered accessibly (HTML 5)</a:documentation> | |
| 857 860 | 
             
              <define name="tr">
         | 
| 858 861 | 
             
                <a:documentation>Sequence of cells to be displayed as a row in a table</a:documentation>
         | 
| 859 862 | 
             
                <element name="tr">
         | 
| 863 | 
            +
                  <ref name="TrAttributes"/>
         | 
| 860 864 | 
             
                  <oneOrMore>
         | 
| 861 865 | 
             
                    <choice>
         | 
| 862 866 | 
             
                      <ref name="td">
         | 
| @@ -869,6 +873,9 @@ in case the table cannot be rendered accessibly (HTML 5)</a:documentation> | |
| 869 873 | 
             
                  </oneOrMore>
         | 
| 870 874 | 
             
                </element>
         | 
| 871 875 | 
             
              </define>
         | 
| 876 | 
            +
              <define name="TrAttributes">
         | 
| 877 | 
            +
                <empty/>
         | 
| 878 | 
            +
              </define>
         | 
| 872 879 | 
             
              <define name="tr-no-id">
         | 
| 873 880 | 
             
                <a:documentation>Sequence of cells to be displayed as a row in a table: optional ID attributes recursively (for use in Relaton, metadata)</a:documentation>
         | 
| 874 881 | 
             
                <element name="tr">
         | 
| @@ -17,7 +17,7 @@ | |
| 17 17 | 
             
              these elements; we just want one namespace for any child grammars
         | 
| 18 18 | 
             
              of this.
         | 
| 19 19 | 
             
            -->
         | 
| 20 | 
            -
            <!-- VERSION v2.0. | 
| 20 | 
            +
            <!-- VERSION v2.0.2 -->
         | 
| 21 21 | 
             
            <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
         | 
| 22 22 | 
             
              <include href="reqt.rng"/>
         | 
| 23 23 | 
             
              <include href="basicdoc.rng">
         | 
| @@ -33,6 +33,15 @@ | |
| 33 33 | 
             
                    </zeroOrMore>
         | 
| 34 34 | 
             
                  </element>
         | 
| 35 35 | 
             
                </define>
         | 
| 36 | 
            +
                <define name="fn" combine="interleave">
         | 
| 37 | 
            +
                  <optional>
         | 
| 38 | 
            +
                    <attribute name="hiddenref">
         | 
| 39 | 
            +
                      <a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
         | 
| 40 | 
            +
            This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
         | 
| 41 | 
            +
                      <data type="boolean"/>
         | 
| 42 | 
            +
                    </attribute>
         | 
| 43 | 
            +
                  </optional>
         | 
| 44 | 
            +
                </define>
         | 
| 36 45 | 
             
                <define name="index-primary">
         | 
| 37 46 | 
             
                  <element name="primary">
         | 
| 38 47 | 
             
                    <oneOrMore>
         | 
| @@ -414,6 +423,21 @@ normative or informative references, some split references into sections organiz | |
| 414 423 | 
             
                    </oneOrMore>
         | 
| 415 424 | 
             
                  </choice>
         | 
| 416 425 | 
             
                </define>
         | 
| 426 | 
            +
                <define name="TdAttributes" combine="interleave">
         | 
| 427 | 
            +
                  <attribute name="style">
         | 
| 428 | 
            +
                    <a:documentation>CSS style: only background-color supported</a:documentation>
         | 
| 429 | 
            +
                  </attribute>
         | 
| 430 | 
            +
                </define>
         | 
| 431 | 
            +
                <define name="ThAttributes" combine="interleave">
         | 
| 432 | 
            +
                  <attribute name="style">
         | 
| 433 | 
            +
                    <a:documentation>CSS style: only background-color supported</a:documentation>
         | 
| 434 | 
            +
                  </attribute>
         | 
| 435 | 
            +
                </define>
         | 
| 436 | 
            +
                <define name="TrAttributes">
         | 
| 437 | 
            +
                  <attribute name="style">
         | 
| 438 | 
            +
                    <a:documentation>CSS style: only background-color supported</a:documentation>
         | 
| 439 | 
            +
                  </attribute>
         | 
| 440 | 
            +
                </define>
         | 
| 417 441 | 
             
                <define name="table-note">
         | 
| 418 442 | 
             
                  <element name="note">
         | 
| 419 443 | 
             
                    <ref name="OptionalId"/>
         | 
| @@ -1263,6 +1287,11 @@ numbers</a:documentation> | |
| 1263 1287 | 
             
                      <a:documentation>Colophon or postface material</a:documentation>
         | 
| 1264 1288 | 
             
                    </ref>
         | 
| 1265 1289 | 
             
                  </optional>
         | 
| 1290 | 
            +
                  <optional>
         | 
| 1291 | 
            +
                    <ref name="review-container">
         | 
| 1292 | 
            +
                      <a:documentation>Annotations to the document</a:documentation>
         | 
| 1293 | 
            +
                    </ref>
         | 
| 1294 | 
            +
                  </optional>
         | 
| 1266 1295 | 
             
                </element>
         | 
| 1267 1296 | 
             
              </define>
         | 
| 1268 1297 | 
             
              <define name="misccontainer">
         | 
| @@ -1273,6 +1302,13 @@ numbers</a:documentation> | |
| 1273 1302 | 
             
                  </oneOrMore>
         | 
| 1274 1303 | 
             
                </element>
         | 
| 1275 1304 | 
             
              </define>
         | 
| 1305 | 
            +
              <define name="review-container">
         | 
| 1306 | 
            +
                <element name="review-container">
         | 
| 1307 | 
            +
                  <oneOrMore>
         | 
| 1308 | 
            +
                    <ref name="review"/>
         | 
| 1309 | 
            +
                  </oneOrMore>
         | 
| 1310 | 
            +
                </element>
         | 
| 1311 | 
            +
              </define>
         | 
| 1276 1312 | 
             
              <define name="preface">
         | 
| 1277 1313 | 
             
                <element name="preface">
         | 
| 1278 1314 | 
             
                  <oneOrMore>
         | 
| @@ -75,14 +75,6 @@ | |
| 75 75 | 
             
                    </choice>
         | 
| 76 76 | 
             
                  </element>
         | 
| 77 77 | 
             
                </define>
         | 
| 78 | 
            -
                <define name="organization">
         | 
| 79 | 
            -
                  <element name="organization">
         | 
| 80 | 
            -
                    <choice>
         | 
| 81 | 
            -
                      <ref name="OrganizationType"/>
         | 
| 82 | 
            -
                      <ref name="IsoOrganizationType"/>
         | 
| 83 | 
            -
                    </choice>
         | 
| 84 | 
            -
                  </element>
         | 
| 85 | 
            -
                </define>
         | 
| 86 78 | 
             
                <define name="DocumentType">
         | 
| 87 79 | 
             
                  <choice>
         | 
| 88 80 | 
             
                    <value>international-standard</value>
         | 
| @@ -259,18 +251,4 @@ | |
| 259 251 | 
             
                  </zeroOrMore>
         | 
| 260 252 | 
             
                </element>
         | 
| 261 253 | 
             
              </define>
         | 
| 262 | 
            -
              <define name="IsoOrganizationType">
         | 
| 263 | 
            -
                <optional>
         | 
| 264 | 
            -
                  <ref name="technical-committee"/>
         | 
| 265 | 
            -
                </optional>
         | 
| 266 | 
            -
                <optional>
         | 
| 267 | 
            -
                  <ref name="subcommittee"/>
         | 
| 268 | 
            -
                </optional>
         | 
| 269 | 
            -
                <optional>
         | 
| 270 | 
            -
                  <ref name="workgroup"/>
         | 
| 271 | 
            -
                </optional>
         | 
| 272 | 
            -
                <optional>
         | 
| 273 | 
            -
                  <ref name="secretariat"/>
         | 
| 274 | 
            -
                </optional>
         | 
| 275 | 
            -
              </define>
         | 
| 276 254 | 
             
            </grammar>
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: metanorma-iec
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.6. | 
| 4 | 
            +
              version: 2.6.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Ribose Inc.
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2025-03- | 
| 11 | 
            +
            date: 2025-03-31 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: metanorma-iso
         |