metanorma-iso 1.10.6 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +26 -0
  3. data/Makefile +1 -1
  4. data/lib/asciidoctor/iso/base.rb +2 -69
  5. data/lib/asciidoctor/iso/cleanup.rb +2 -175
  6. data/lib/asciidoctor/iso/converter.rb +2 -17
  7. data/lib/asciidoctor/iso/deprecated.rb +5 -0
  8. data/lib/asciidoctor/iso/front.rb +2 -169
  9. data/lib/asciidoctor/iso/front_id.rb +2 -224
  10. data/lib/asciidoctor/iso/section.rb +2 -48
  11. data/lib/asciidoctor/iso/validate.rb +2 -171
  12. data/lib/asciidoctor/iso/validate_image.rb +2 -96
  13. data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
  14. data/lib/asciidoctor/iso/validate_section.rb +2 -246
  15. data/lib/asciidoctor/iso/validate_style.rb +2 -169
  16. data/lib/asciidoctor/iso/validate_title.rb +2 -104
  17. data/lib/isodoc/iso/html/htmlstyle.css +47 -0
  18. data/lib/isodoc/iso/html/isodoc.css +1326 -0
  19. data/lib/isodoc/iso/html/isodoc.scss +0 -1
  20. data/lib/isodoc/iso/html/style-human.css +1015 -0
  21. data/lib/isodoc/iso/html/style-human.scss +8 -2
  22. data/lib/isodoc/iso/html/style-iso.css +1042 -0
  23. data/lib/isodoc/iso/html/style-iso.scss +9 -2
  24. data/lib/isodoc/iso/html/wordstyle.css +1701 -0
  25. data/lib/isodoc/iso/html_convert.rb +6 -4
  26. data/lib/isodoc/iso/iso.amendment.xsl +2142 -1565
  27. data/lib/isodoc/iso/iso.international-standard.xsl +2142 -1565
  28. data/lib/isodoc/iso/word_convert.rb +2 -0
  29. data/lib/metanorma/iso/base.rb +70 -0
  30. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +5 -3
  31. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +7 -5
  32. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  33. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  34. data/lib/metanorma/iso/cleanup.rb +176 -0
  35. data/lib/metanorma/iso/converter.rb +18 -0
  36. data/lib/metanorma/iso/front.rb +170 -0
  37. data/lib/metanorma/iso/front_id.rb +225 -0
  38. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +98 -1
  39. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  40. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  41. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
  42. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  43. data/lib/metanorma/iso/section.rb +49 -0
  44. data/lib/metanorma/iso/validate.rb +172 -0
  45. data/lib/metanorma/iso/validate_image.rb +97 -0
  46. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  47. data/lib/metanorma/iso/validate_section.rb +248 -0
  48. data/lib/metanorma/iso/validate_style.rb +170 -0
  49. data/lib/metanorma/iso/validate_title.rb +105 -0
  50. data/lib/metanorma/iso/version.rb +1 -1
  51. data/lib/metanorma-iso.rb +1 -1
  52. data/metanorma-iso.gemspec +1 -1
  53. data/spec/isodoc/ref_spec.rb +4 -2
  54. data/spec/isodoc/xref_spec.rb +18 -18
  55. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  56. data/spec/{asciidoctor → metanorma}/base_spec.rb +158 -197
  57. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  58. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  59. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  60. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  61. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  62. data/spec/{asciidoctor → metanorma}/refs_spec.rb +2 -5
  63. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  64. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  65. data/spec/{asciidoctor → metanorma}/validate_spec.rb +28 -3
  66. data/spec/spec_helper.rb +1 -1
  67. metadata +46 -30
  68. data/spec/vcr_cassettes/docrels.yml +0 -393
  69. data/spec/vcr_cassettes/sortrefs.yml +0 -599
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "has a version number" do
5
5
  expect(Metanorma::ISO::VERSION).not_to be nil
6
6
  end
@@ -675,7 +675,7 @@ RSpec.describe Asciidoctor::ISO do
675
675
  :docfile: test.adoc
676
676
  :nodoc:
677
677
  :novalid:
678
- :amends: ISO 123;ISO 124
678
+ :amends: ISO 123:2001;ISO 125
679
679
  :obsoletes: ABC 1
680
680
  :successor-of: ABC 2
681
681
  :manifestation-of: ABC 3
@@ -744,16 +744,16 @@ RSpec.describe Asciidoctor::ISO do
744
744
  <docidentifier>ABC 3</docidentifier>
745
745
  </bibitem>
746
746
  </relation>
747
- <relation type='annotationOf'>
747
+ <relation type='related'>
748
748
  <bibitem>
749
749
  <title>--</title>
750
- <docidentifier>ABC 3a</docidentifier>
750
+ <docidentifier>ABC 4</docidentifier>
751
751
  </bibitem>
752
752
  </relation>
753
- <relation type='related'>
753
+ <relation type='annotationOf'>
754
754
  <bibitem>
755
755
  <title>--</title>
756
- <docidentifier>ABC 4</docidentifier>
756
+ <docidentifier>ABC 3a</docidentifier>
757
757
  </bibitem>
758
758
  </relation>
759
759
  <relation type='updates'>
@@ -769,9 +769,10 @@ RSpec.describe Asciidoctor::ISO do
769
769
  <uri type='src'>https://www.iso.org/standard/23281.html</uri>
770
770
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
771
771
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
772
- <docidentifier type='ISO'>ISO 123</docidentifier>
772
+ <docidentifier type='ISO'>ISO 123:2001</docidentifier>
773
773
  <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en,fr</docidentifier>
774
774
  <docnumber>123</docnumber>
775
+ <date type='published'><on>2001-05</on></date>
775
776
  <contributor>
776
777
  <role type='publisher'/>
777
778
  <organization>
@@ -784,6 +785,23 @@ RSpec.describe Asciidoctor::ISO do
784
785
  <language>en</language>
785
786
  <language>fr</language>
786
787
  <script>Latn</script>
788
+ <abstract format='text/plain' language='en' script='Latn'>
789
+ This International Standard specifies procedures for sampling natural
790
+ rubber latex concentrate and for sampling synthetic rubber latices and
791
+ artificial latices. It is also suitable for sampling rubber latex
792
+ contained in drums, tank cars or tanks. The procedures may also be
793
+ used for sampling plastics dispersions.
794
+ </abstract>
795
+ <abstract format='text/plain' language='fr' script='Latn'>
796
+ La pr&#233;sente Norme internationale sp&#233;cifie des m&#233;thodes
797
+ d&#8217;&#233;chantillonnage pour des concentr&#233;s de latex de
798
+ caoutchouc naturel et pour &#233;chantillonner des latex de caoutchouc
799
+ synth&#233;tique et des latex artificiels. Elle s&#8217;applique
800
+ &#233;galement &#224; l&#8217;&#233;chantillonnage de latex de
801
+ caoutchouc contenus dans des f&#251;ts, citernes routi&#232;res ou de
802
+ stockage. Le mode op&#233;ratoire peut aussi &#234;tre utilis&#233;
803
+ pour l&#8217;&#233;chantillonnage de dispersions de plastiques.
804
+ </abstract>
787
805
  <status>
788
806
  <stage>90</stage>
789
807
  <substage>93</substage>
@@ -801,199 +819,142 @@ RSpec.describe Asciidoctor::ISO do
801
819
  <formattedref format='text/plain'>ISO 123:1985</formattedref>
802
820
  </bibitem>
803
821
  </relation>
804
- <relation type='instance'>
805
- <bibitem type='standard'>
806
- <fetched/>
807
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
808
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
809
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex&#8201;&#8212;&#8201;Sampling</title>
810
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
811
- <title type='title-main' format='text/plain' language='fr' script='Latn'>&#201;chantillonnage</title>
812
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc&#8201;&#8212;&#8201;&#201;chantillonnage</title>
813
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
814
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
815
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
816
- <docidentifier type='ISO'>ISO 123:2001</docidentifier>
817
- <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en,fr</docidentifier>
818
- <docnumber>123</docnumber>
819
- <date type='published'>
820
- <on>2001-05</on>
821
- </date>
822
- <contributor>
823
- <role type='publisher'/>
824
- <organization>
825
- <name>International Organization for Standardization</name>
826
- <abbreviation>ISO</abbreviation>
827
- <uri>www.iso.org</uri>
828
- </organization>
829
- </contributor>
830
- <edition>3</edition>
831
- <language>en</language>
832
- <language>fr</language>
833
- <script>Latn</script>
834
- <abstract format='text/plain' language='en' script='Latn'>
835
- This International Standard specifies procedures for sampling
836
- natural rubber latex concentrate and for sampling synthetic rubber
837
- latices and artificial latices. It is also suitable for sampling
838
- rubber latex contained in drums, tank cars or tanks. The
839
- procedures may also be used for sampling plastics dispersions.
840
- </abstract>
841
- <abstract format='text/plain' language='fr' script='Latn'>
842
- La pr&#233;sente Norme internationale sp&#233;cifie des
843
- m&#233;thodes d&#8217;&#233;chantillonnage pour des
844
- concentr&#233;s de latex de caoutchouc naturel et pour
845
- &#233;chantillonner des latex de caoutchouc synth&#233;tique et
846
- des latex artificiels. Elle s&#8217;applique &#233;galement &#224;
847
- l&#8217;&#233;chantillonnage de latex de caoutchouc contenus dans
848
- des f&#251;ts, citernes routi&#232;res ou de stockage. Le mode
849
- op&#233;ratoire peut aussi &#234;tre utilis&#233; pour
850
- l&#8217;&#233;chantillonnage de dispersions de plastiques.
851
- </abstract>
852
- <status>
853
- <stage>90</stage>
854
- <substage>93</substage>
855
- </status>
856
- <copyright>
857
- <from>2001</from>
858
- <owner>
859
- <organization>
860
- <name>ISO</name>
861
- </organization>
862
- </owner>
863
- </copyright>
864
- <relation type='obsoletes'>
865
- <bibitem type='standard'>
866
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
867
- </bibitem>
868
- </relation>
869
- <place>Geneva</place>
870
- </bibitem>
871
- </relation>
872
- <place>Geneva</place>
873
- </bibitem>
874
- </relation>
875
- <relation type='updates'>
876
- <description>amends</description>
877
- <bibitem type='standard'>
878
- <fetched/>
879
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Latex, rubber</title>
880
- <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of total solids content</title>
881
- <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber&#8201;&#8212;&#8201;Determination of total solids content</title>
882
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
883
- <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination des mati&#232;res solides totales</title>
884
- <title type='main' format='text/plain' language='fr' script='Latn'>
885
- Latex de caoutchouc&#8201;&#8212;&#8201;D&#233;termination des
886
- mati&#232;res solides totales
887
- </title>
888
- <uri type='src'>https://www.iso.org/standard/61884.html</uri>
889
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
890
- <uri type='rss'>https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
891
- <docidentifier type='ISO'>ISO 124</docidentifier>
892
- <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en,fr</docidentifier>
893
- <docnumber>124</docnumber>
894
- <contributor>
895
- <role type='publisher'/>
896
- <organization>
897
- <name>International Organization for Standardization</name>
898
- <abbreviation>ISO</abbreviation>
899
- <uri>www.iso.org</uri>
900
- </organization>
901
- </contributor>
902
- <edition>7</edition>
903
- <language>en</language>
904
- <language>fr</language>
905
- <script>Latn</script>
906
- <status>
907
- <stage>90</stage>
908
- <substage>93</substage>
909
- </status>
910
- <copyright>
911
- <from>2014</from>
912
- <owner>
913
- <organization>
914
- <name>ISO</name>
915
- </organization>
916
- </owner>
917
- </copyright>
918
- <relation type='obsoletes'>
919
- <bibitem type='standard'>
920
- <formattedref format='text/plain'>ISO 124:2011</formattedref>
921
- </bibitem>
922
- </relation>
923
- <relation type='instance'>
924
- <bibitem type='standard'>
925
- <fetched/>
926
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Latex, rubber</title>
927
- <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of total solids content</title>
928
- <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber&#8201;&#8212;&#8201;Determination of total solids content</title>
929
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
930
- <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination des mati&#232;res solides totales</title>
931
- <title type='main' format='text/plain' language='fr' script='Latn'>
932
- Latex de caoutchouc&#8201;&#8212;&#8201;D&#233;termination des
933
- mati&#232;res solides totales
934
- </title>
935
- <uri type='src'>https://www.iso.org/standard/61884.html</uri>
936
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
937
- <uri type='rss'>https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
938
- <docidentifier type='ISO'>ISO 124:2014</docidentifier>
939
- <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en,fr</docidentifier>
940
- <docnumber>124</docnumber>
941
- <date type='published'>
942
- <on>2014-03</on>
943
- </date>
944
- <contributor>
945
- <role type='publisher'/>
946
- <organization>
947
- <name>International Organization for Standardization</name>
948
- <abbreviation>ISO</abbreviation>
949
- <uri>www.iso.org</uri>
950
- </organization>
951
- </contributor>
952
- <edition>7</edition>
953
- <language>en</language>
954
- <language>fr</language>
955
- <script>Latn</script>
956
- <abstract format='text/plain' language='en' script='Latn'>
957
- ISO 124:2014 specifies methods for the determination of the total
958
- solids content of natural rubber field and concentrated latices
959
- and synthetic rubber latex. These methods are not necessarily
960
- suitable for latex from natural sources other than the Hevea
961
- brasiliensis, for vulcanized latex, for compounded latex, or for
962
- artificial dispersions of rubber.
963
- </abstract>
964
- <abstract format='text/plain' language='fr' script='Latn'>
965
- L&#8217;ISO 124:2014 sp&#233;cifie des m&#233;thodes pour la
966
- d&#233;termination des mati&#232;res solides totales dans le latex
967
- de plantation, le latex de concentr&#233; de caoutchouc naturel et
968
- le latex de caoutchouc synth&#233;tique. Ces m&#233;thodes ne
969
- conviennent pas n&#233;cessairement au latex d&#8217;origine
970
- naturelle autre que celui de l&#8217;Hevea brasiliensis, au latex
971
- vulcanis&#233;, aux m&#233;langes de latex, ou aux dispersions
972
- artificielles de caoutchouc.
973
- </abstract>
974
- <status>
975
- <stage>90</stage>
976
- <substage>93</substage>
977
- </status>
978
- <copyright>
979
- <from>2014</from>
980
- <owner>
981
- <organization>
982
- <name>ISO</name>
983
- </organization>
984
- </owner>
985
- </copyright>
986
- <relation type='obsoletes'>
987
- <bibitem type='standard'>
988
- <formattedref format='text/plain'>ISO 124:2011</formattedref>
989
- </bibitem>
990
- </relation>
991
- <place>Geneva</place>
992
- </bibitem>
993
- </relation>
994
822
  <place>Geneva</place>
995
823
  </bibitem>
996
824
  </relation>
825
+ <relation type='updates'>
826
+ <description>amends</description>
827
+ <bibitem type='standard'>
828
+ <fetched/>
829
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
830
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
831
+ <title type='main' format='text/plain' language='en' script='Latn'>
832
+ Natural rubber latex concentrate&#8201;&#8212;&#8201;Determination of
833
+ alkalinity
834
+ </title>
835
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentr&#233; de caoutchouc naturel</title>
836
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination de l&#8217;alcalinit&#233;</title>
837
+ <title type='main' format='text/plain' language='fr' script='Latn'>
838
+ Latex concentr&#233; de caoutchouc
839
+ naturel&#8201;&#8212;&#8201;D&#233;termination de
840
+ l&#8217;alcalinit&#233;
841
+ </title>
842
+ <uri type='src'>https://www.iso.org/standard/72849.html</uri>
843
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
844
+ <uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
845
+ <docidentifier type='ISO'>ISO 125</docidentifier>
846
+ <docidentifier type='URN'>urn:iso:std:iso:125:stage-60.60:ed-7:en,fr</docidentifier>
847
+ <docnumber>125</docnumber>
848
+ <contributor>
849
+ <role type='publisher'/>
850
+ <organization>
851
+ <name>International Organization for Standardization</name>
852
+ <abbreviation>ISO</abbreviation>
853
+ <uri>www.iso.org</uri>
854
+ </organization>
855
+ </contributor>
856
+ <edition>7</edition>
857
+ <language>en</language>
858
+ <language>fr</language>
859
+ <script>Latn</script>
860
+ <status>
861
+ <stage>60</stage>
862
+ <substage>60</substage>
863
+ </status>
864
+ <copyright>
865
+ <from>2020</from>
866
+ <owner>
867
+ <organization>
868
+ <name>ISO</name>
869
+ </organization>
870
+ </owner>
871
+ </copyright>
872
+ <relation type='obsoletes'>
873
+ <bibitem type='standard'>
874
+ <formattedref format='text/plain'>ISO 125:2011</formattedref>
875
+ </bibitem>
876
+ </relation>
877
+ <relation type='instance'>
878
+ <bibitem type='standard'>
879
+ <fetched/>
880
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
881
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
882
+ <title type='main' format='text/plain' language='en' script='Latn'>
883
+ Natural rubber latex concentrate&#8201;&#8212;&#8201;Determination
884
+ of alkalinity
885
+ </title>
886
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentr&#233; de caoutchouc naturel</title>
887
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination de l&#8217;alcalinit&#233;</title>
888
+ <title type='main' format='text/plain' language='fr' script='Latn'>
889
+ Latex concentr&#233; de caoutchouc
890
+ naturel&#8201;&#8212;&#8201;D&#233;termination de
891
+ l&#8217;alcalinit&#233;
892
+ </title>
893
+ <uri type='src'>https://www.iso.org/standard/72849.html</uri>
894
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
895
+ <uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
896
+ <docidentifier type='ISO'>ISO 125:2020</docidentifier>
897
+ <docidentifier type='URN'>urn:iso:std:iso:125:stage-60.60:ed-7:en,fr</docidentifier>
898
+ <docnumber>125</docnumber>
899
+ <date type='published'>
900
+ <on>2020-02</on>
901
+ </date>
902
+ <contributor>
903
+ <role type='publisher'/>
904
+ <organization>
905
+ <name>International Organization for Standardization</name>
906
+ <abbreviation>ISO</abbreviation>
907
+ <uri>www.iso.org</uri>
908
+ </organization>
909
+ </contributor>
910
+ <edition>7</edition>
911
+ <language>en</language>
912
+ <language>fr</language>
913
+ <script>Latn</script>
914
+ <abstract format='text/plain' language='en' script='Latn'>
915
+ This document specifies a method for the determination of the
916
+ alkalinity of natural rubber latex concentrate. The method is not
917
+ necessarily suitable for latices from natural sources other than
918
+ Hevea brasiliensis or for synthetic rubber latices, compounded
919
+ latex, vulcanized latex or artificial dispersions of rubber. NOTE
920
+ A method for the determination of the alkalinity of
921
+ polychloroprene latex is specified in ISO 13773.
922
+ </abstract>
923
+ <abstract format='text/plain' language='fr' script='Latn'>
924
+ Le pr&#233;sent document sp&#233;cifie une m&#233;thode de
925
+ d&#233;termination de l&#8217;alcalinit&#233; du latex
926
+ concentr&#233; de caoutchouc naturel. La m&#233;thode ne convient
927
+ pas n&#233;cessairement aux latex d&#8217;origine naturelle autres
928
+ que l&#8217;Hevea brasiliensis ou aux latex de caoutchouc de
929
+ synth&#232;se, aux latex formul&#233;s, aux latex vulcanis&#233;s
930
+ ou aux dispersions artificielles de caoutchouc. NOTE Une
931
+ m&#233;thode de d&#233;termination de l&#8217;alcalinit&#233; du
932
+ latex de polychloropr&#232;ne est sp&#233;cifi&#233;e dans
933
+ l&#8217;ISO 13773.
934
+ </abstract>
935
+ <status>
936
+ <stage>60</stage>
937
+ <substage>60</substage>
938
+ </status>
939
+ <copyright>
940
+ <from>2020</from>
941
+ <owner>
942
+ <organization>
943
+ <name>ISO</name>
944
+ </organization>
945
+ </owner>
946
+ </copyright>
947
+ <relation type='obsoletes'>
948
+ <bibitem type='standard'>
949
+ <formattedref format='text/plain'>ISO 125:2011</formattedref>
950
+ </bibitem>
951
+ </relation>
952
+ <place>Geneva</place>
953
+ </bibitem>
954
+ </relation>
955
+ <place>Geneva</place>
956
+ </bibitem>
957
+ </relation>
997
958
  <relation type='obsoletes'>
998
959
  <description>replaces</description>
999
960
  <bibitem>
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes a blank document" do
5
5
  input = <<~INPUT
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes open blocks" do
5
5
  input = <<~INPUT
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "removes empty text elements" do
5
5
  input = <<~INPUT
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes inline_quoted formatting" do
5
5
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes simple lists" do
5
5
  output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
  require "relaton_iso"
3
3
  require "relaton_ietf"
4
4
 
5
- RSpec.describe Asciidoctor::ISO do
5
+ RSpec.describe Metanorma::ISO do
6
6
  it "processes draft ISO reference" do
7
7
  mock_fdis
8
8
  input = <<~INPUT
@@ -364,10 +364,7 @@ RSpec.describe Asciidoctor::ISO do
364
364
 
365
365
  def mock_fdis
366
366
  expect(RelatonIso::IsoBibliography).to receive(:get)
367
- .with("ISO/FDIS 17664-1", nil, code: "ISO/FDIS 17664-1",
368
- lang: "en", match: anything, ord: anything,
369
- process: 1, year: nil,
370
- title: "Title", usrlbl: nil) do
367
+ .with("ISO/FDIS 17664-1", nil, anything) do
371
368
  RelatonIsoBib::XMLParser.from_xml(<<~"OUTPUT")
372
369
  <bibitem id="x" type="standard">
373
370
  <fetched>#{Date.today}</fetched>
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes sections" do
5
5
  input = <<~INPUT
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes basic tables" do
5
5
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  #{ASCIIDOC_BLANK_HDR}
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
  require "fileutils"
3
3
 
4
- RSpec.describe Asciidoctor::ISO do
4
+ RSpec.describe Metanorma::ISO do
5
5
  context "when xref_error.adoc compilation" do
6
6
  it "generates error file" do
7
7
  FileUtils.rm_f "xref_error.err"
@@ -812,8 +812,7 @@ RSpec.describe Asciidoctor::ISO do
812
812
  INPUT
813
813
  expect(File.read("test.err"))
814
814
  .not_to include "Symbols and Abbreviated Terms can only contain "\
815
- "a definition list"
816
-
815
+ "a definition list"
817
816
  end
818
817
 
819
818
  it "Warning if missing foreword" do
@@ -1204,6 +1203,32 @@ RSpec.describe Asciidoctor::ISO do
1204
1203
  .to include "Only annexes and references can follow terms and clauses"
1205
1204
  end
1206
1205
 
1206
+ it "No warning if there are two Symbols sections in a Vocabulary document" do
1207
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1208
+ = Document title
1209
+ Author
1210
+ :docfile: test.adoc
1211
+ :nodoc:
1212
+ :no-isobib:
1213
+ :docsubtype: vocabulary
1214
+
1215
+ == Scope
1216
+
1217
+ == Terms and definitions
1218
+
1219
+ == A Clause
1220
+
1221
+ [heading=symbols and abbreviated terms]
1222
+ == Terms related to clinical psychology
1223
+
1224
+ [heading=symbols and abbreviated terms]
1225
+ == Symbols related to clinical psychology
1226
+
1227
+ INPUT
1228
+ expect(File.read("test.err"))
1229
+ .not_to include "Only one Symbols and Abbreviated Terms section "\
1230
+ "in the standard"
1231
+ end
1207
1232
 
1208
1233
  it "Warning if final section is not named Bibliography" do
1209
1234
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
data/spec/spec_helper.rb CHANGED
@@ -132,7 +132,7 @@ VALIDATING_BLANK_HDR = <<~"HDR".freeze
132
132
  HDR
133
133
 
134
134
  ASCIIDOCTOR_ISO_DIR = Pathname
135
- .new(File.dirname(__FILE__)) / "../lib/asciidoctor/iso"
135
+ .new(File.dirname(__FILE__)) / "../lib/metanorma/iso"
136
136
 
137
137
  BOILERPLATE =
138
138
  HTMLEntities.new.decode(