metanorma / metanorma-plugin-lutaml

Metanorma plugin: access LutaML objects from within a Metanorma document
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Extraneous characters in Metanorma after 0.4.9 release #56

Closed opoudjis closed 2 years ago

opoudjis commented 2 years ago

metanorma-standoc, spec/asciidoctor/macros_spec.rb, line 1654:

after new release extraneous characters …​ ("… ") are appearing in text; these appear to reflect "..." as a delimiter in the input, so that the Asciidoctor is no longer being parsed correctly:

INPUT:

        = Document title
        Author
        :docfile: test.adoc
        :nodoc:
        :novalid:
        :no-isobib:
        :imagesdir: spec/assets

        [lutaml_uml_datamodel_description,#{example_file}]
        --
        [.diagram_include_block, base_path="requirements/"]
        ...
        Diagram text
        ...

        [.include_block, package="Another", base_path="spec/fixtures/"]
        ...
        my text
        ...

        [.include_block, base_path="spec/fixtures/"]
        ...
        my text
        ...

        [.before]
        ...
        mine text
        ...

        [.before, package="Another"]
        ...
        text before Another package
        ...

        [.after, package="Another"]
        ...
        text after Another package
        ...

        [.after, package="CityGML"]
        ...
        text after CityGML package
        ...

        [.after]
        ...
        footer text
        ...
        --

OUTPUT:

       -<?xml version='1.0' encoding='UTF-8'?>
       -<standard-document xmlns='https://www.metanorma.org/ns/standoc' version='1.10.5' type='semantic'>
       +<?xml version='1.0' encoding='US-ASCII'?>
       +<standard-document xmlns='https://www.metanorma.org/ns/standoc' type='semantic' version='1.10.5'>
          <bibdata type='standard'>
            <title language='en' format='text/plain'>Document title</title>
            <language>en</language>

       @@ -17,15 +17,15 @@
          <preface>
            <foreword id='_' obligation='informative'>
              <title>Foreword</title>
       -      <p id='_'>mine text</p>
       +      <p id='_'>&#8230;&#8203; mine text &#8230;&#8203;</p>
            </foreword>
          </preface>
          <sections>
       -    <clause id='lutaml-section-wrapper_nested_package' inline-header='false' obligation='normative'>
       +    <clause id='_' inline-header='false' obligation='normative'>
              <title>Wrapper nested package package</title>
       -      <clause id='_' inline-header='false' obligation='normative'>
       +      <clause id='section-EAPK_9C96A88B_E98B_490b_8A9C_24AEDAC64293' inline-header='false' obligation='normative'>
                <title>Wrapper nested package overview</title>
       -        <p id='_'>Diagram text</p>
       +        <p id='_'>&#8230;&#8203; Diagram text &#8230;&#8203;</p>
                <figure id='figure-EAID_0E029ABF_C35A_49e3_9EEA_FFD4F32780A8'>
                  <name>Fig B1 Full model</name>
                  <image src='spec/assets/requirements//EAID_0E029ABF_C35A_49e3_9EEA_FFD4F32780A8.png' id='_' mimetype='image/png' height='auto' width='auto'/>

       @@ -36,13 +36,13 @@
                    <p id='_'>ISO 19135 Procedures for item registration XML package</p>
                  </li>
                </ol>
       -        <p id='_'>mine text</p>
       +        <p id='_'>&#8230;&#8203; mine text &#8230;&#8203;</p>
              </clause>
       -      <clause id='lutaml-section-iso_19135_procedures_for_item_registration_xml' inline-header='false' obligation='normative'>
       +      <clause id='_' inline-header='false' obligation='normative'>
                <title>ISO 19135 Procedures for item registration XML package</title>
       -        <clause id='_' inline-header='false' obligation='normative'>
       +        <clause id='section-EAPK_9C96A88B_E98B_490b_8A9C_24AEDAC64293' inline-header='false' obligation='normative'>
                  <title>ISO 19135 Procedures for item registration XML overview</title>
       -          <p id='_'>Diagram text</p>
       +          <p id='_'>&#8230;&#8203; Diagram text &#8230;&#8203;</p>
                  <figure id='figure-EAID_0E029ABF_C35A_49e3_9EEA_FFD4F32780A8'>
                    <name>Fig B1 Full model</name>
                    <image src='spec/assets/requirements//EAID_0E029ABF_C35A_49e3_9EEA_FFD4F32780A8.png' id='_' mimetype='image/png' height='auto' width='auto'/>

       @@ -50,10 +50,10 @@
                </clause>
                <clause id='_' inline-header='false' obligation='normative'>
                  <title>Defining tables</title>
       -          <table id='tab-P-iso_19135_procedures_for_item_registration_xml-C-EAID_82206E96_8D23_48dd_AC2F_31939C484AF2' width='100%'>
       +          <table id='section-EAID_82206E96_8D23_48dd_AC2F_31939C484AF2' width='100%'>
                    <name>
       -               Elements of &#8220;ISO 19135 Procedures for item registration
       -              XML::RE_Register&#8221; (class) 
       +              Elements of &#8220;ISO 19135 Procedures for item registration
       +              XML::RE_Register&#8221; (class)
                    </name>
                    <tbody>
                      <tr>

       @@ -66,9 +66,9 @@
                        <th valign='top' align='left'>Definition:</th>
                        <td colspan='7' valign='top' align='left'>
                          <p id='_'>
       -                     The class &#8220;RE_Register&#8221; specifies information
       +                    The class &#8220;RE_Register&#8221; specifies information
                            about the register itself. It is a subtype of the Register
       -                    class in the core profile. 
       +                    class in the core profile.
                          </p>
                        </td>
                      </tr>
       @@ -172,7 +172,7 @@
                        </td>
                        <td colspan='2' valign='top' align='left'>
                          <p id='_'>
       -                     The attribute &#8220;alternativeLanguages&#8221; supports
       +                    The attribute &#8220;alternativeLanguages&#8221; supports
                            cultural and linguistic adaptability, individual items in a
                            register may provide elements of information in additional
                            languages other than the operating language of the register.
       @@ -190,7 +190,7 @@
                            alternative locales used by items in a register. Register
                            owners shall specify and publish their policy as to whether
                            all or only some of the items in a register shall have
       -                    alternative expressions. 
       +                    alternative expressions.
                          </p>
                        </td>
                        <td valign='top' align='left'/>
       @@ -210,16 +210,16 @@
                        </td>
                        <td colspan='2' valign='top' align='left'>
                          <p id='_'>
       -                     The attribute &#8220;contentSummary&#8221; is be
       -                    represented as a CharacterString containing a general
       -                    statement of the purpose for which items in the register are
       -                    made available to potential users. It should also specify
       -                    any limits to the scope of the register and identify the
       -                    types of applications for which the items are intended. NOTE
       -                    The scope of a register could be limited by theme, by
       -                    region, by language or other criteria. EXAMPLE The scope of
       -                    a terminology register could be limited to Spanish terms
       -                    used to describe landforms in Latin America. 
       +                    The attribute &#8220;contentSummary&#8221; is be represented
       +                    as a CharacterString containing a general statement of the
       +                    purpose for which items in the register are made available
       +                    to potential users. It should also specify any limits to the
       +                    scope of the register and identify the types of applications
       +                    for which the items are intended. NOTE The scope of a
       +                    register could be limited by theme, by region, by language
       +                    or other criteria. EXAMPLE The scope of a terminology
       +                    register could be limited to Spanish terms used to describe
       +                    landforms in Latin America.
                          </p>
                        </td>
                        <td valign='top' align='left'/>

       @@ -239,11 +239,11 @@
                        </td>
                        <td colspan='2' valign='top' align='left'>
                          <p id='_'>
       -                     The attribute &#8220;name&#8221; is be represented as a
       +                    The attribute &#8220;name&#8221; is be represented as a
                            CharacterString containing a compact and human-readable
                            designator that is used to uniquely denote that register
                            within the set of registers maintained by the register
       -                    owner. In the case of a hierarchical register, the &#8220; 
       +                    owner. In the case of a hierarchical register, the &#8220;
                            <em>name&#8221;</em>
                             of a subregister shall uniquely identify that subregister
                            within the scope EXAMPLE &#239;&#191;&#189;ISO/TC 211
       @@ -254,7 +254,7 @@
                            &#239;&#191;&#189;DGIWG FACC Data
                            Dictionary&#239;&#191;&#189; and &#239;&#191;&#189;IHO S-57
                            Object Dictionary&#239;&#191;&#189; might be the names of
       -                    subregisters within the hierarchy. 
       +                    subregisters within the hierarchy.
                          </p>
                        </td>
                        <td valign='top' align='left'/>
       @@ -274,14 +274,13 @@
                        </td>
                        <td colspan='2' valign='top' align='left'>
                          <p id='_'>
       -                     The attribute &#8220;operatingLanguage&#8221; is
       -                    represented as an instance of class RE_Locale that is used
       -                    to specify language, country information and character
       -                    encoding for the proper interpretation of the content of
       -                    character strings in the register. The values of all
       -                    character strings in the register shall be in accordance
       -                    with the value of &#8220;operatingLanguage&#8221;, unless
       -                    otherwise stated. 
       +                    The attribute &#8220;operatingLanguage&#8221; is represented
       +                    as an instance of class RE_Locale that is used to specify
       +                    language, country information and character encoding for the
       +                    proper interpretation of the content of character strings in
       +                    the register. The values of all character strings in the
       +                    register shall be in accordance with the value of
       +                    &#8220;operatingLanguage&#8221;, unless otherwise stated.
                          </p>
                        </td>
                        <td valign='top' align='left'/>

       @@ -301,16 +300,17 @@
                        </td>
                        <td colspan='2' valign='top' align='left'>
                          <p id='_'>
       -                     The attribute &#8220;uniformResourceIdentifier&#8221; takes
       +                    The attribute &#8220;uniformResourceIdentifier&#8221; takes
                            as its value a set of URI&#8217;s, each referencing
                            information about online resources associated with the
       -                    register. EXAMPLE &#239; 
       +                    register. EXAMPLE
       +                    &#239;&#191;&#189;http://www.digest.org/Navigate2.htm&#239;&#191;
                            <em>OnLineResource.linkage</em>
                             specifies a resource providing access to the complete
                            content of the register. EXAMPLE
                            &#239;&#191;&#189;http://www.digest.org/Navigate2.htm&#239;&#191;&#189; and &#239;&#191;&#189;http://www.epa.gov/opppmsd1/PPISdata/index.html&#239;&#191;&#189; are sample values of 
                            <em>OnLineResource.linkage</em>
       -                     . 
       +                    .
                          </p>
                        </td>
                        <td valign='top' align='left'/>
       @@ -334,8 +334,8 @@
                      </tr>
                    </tbody>
                  </table>
       -          <p id='_'>footer text</p>
       -          <p id='_'>footer text</p>
       +          <p id='_'>&#8230;&#8203; footer text &#8230;&#8203;</p>
       +          <p id='_'>&#8230;&#8203; footer text &#8230;&#8203;</p>
                </clause>
              </clause>
            </clause>
ronaldtse commented 2 years ago

@opoudjis is this fixed?

opoudjis commented 2 years ago

Yes