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.
- checksums.yaml +4 -4
- data/.gitignore +26 -0
- data/Makefile +1 -1
- data/lib/asciidoctor/iso/base.rb +2 -69
- data/lib/asciidoctor/iso/cleanup.rb +2 -175
- data/lib/asciidoctor/iso/converter.rb +2 -17
- data/lib/asciidoctor/iso/deprecated.rb +5 -0
- data/lib/asciidoctor/iso/front.rb +2 -169
- data/lib/asciidoctor/iso/front_id.rb +2 -224
- data/lib/asciidoctor/iso/section.rb +2 -48
- data/lib/asciidoctor/iso/validate.rb +2 -171
- data/lib/asciidoctor/iso/validate_image.rb +2 -96
- data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
- data/lib/asciidoctor/iso/validate_section.rb +2 -246
- data/lib/asciidoctor/iso/validate_style.rb +2 -169
- data/lib/asciidoctor/iso/validate_title.rb +2 -104
- data/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/lib/isodoc/iso/html/isodoc.css +1326 -0
- data/lib/isodoc/iso/html/isodoc.scss +0 -1
- data/lib/isodoc/iso/html/style-human.css +1015 -0
- data/lib/isodoc/iso/html/style-human.scss +8 -2
- data/lib/isodoc/iso/html/style-iso.css +1042 -0
- data/lib/isodoc/iso/html/style-iso.scss +9 -2
- data/lib/isodoc/iso/html/wordstyle.css +1701 -0
- data/lib/isodoc/iso/html_convert.rb +6 -4
- data/lib/isodoc/iso/iso.amendment.xsl +2142 -1565
- data/lib/isodoc/iso/iso.international-standard.xsl +2142 -1565
- data/lib/isodoc/iso/word_convert.rb +2 -0
- data/lib/metanorma/iso/base.rb +70 -0
- data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +5 -3
- data/lib/{asciidoctor → metanorma}/iso/biblio.rng +7 -5
- data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
- data/lib/metanorma/iso/cleanup.rb +176 -0
- data/lib/metanorma/iso/converter.rb +18 -0
- data/lib/metanorma/iso/front.rb +170 -0
- data/lib/metanorma/iso/front_id.rb +225 -0
- data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +98 -1
- data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
- data/lib/metanorma/iso/section.rb +49 -0
- data/lib/metanorma/iso/validate.rb +172 -0
- data/lib/metanorma/iso/validate_image.rb +97 -0
- data/lib/metanorma/iso/validate_requirements.rb +111 -0
- data/lib/metanorma/iso/validate_section.rb +248 -0
- data/lib/metanorma/iso/validate_style.rb +170 -0
- data/lib/metanorma/iso/validate_title.rb +105 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/metanorma-iso.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- data/spec/isodoc/ref_spec.rb +4 -2
- data/spec/isodoc/xref_spec.rb +18 -18
- data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/base_spec.rb +158 -197
- data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/refs_spec.rb +2 -5
- data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +28 -3
- data/spec/spec_helper.rb +1 -1
- metadata +46 -30
- data/spec/vcr_cassettes/docrels.yml +0 -393
- data/spec/vcr_cassettes/sortrefs.yml +0 -599
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
RSpec.describe
|
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
|
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='
|
747
|
+
<relation type='related'>
|
748
748
|
<bibitem>
|
749
749
|
<title>--</title>
|
750
|
-
<docidentifier>ABC
|
750
|
+
<docidentifier>ABC 4</docidentifier>
|
751
751
|
</bibitem>
|
752
752
|
</relation>
|
753
|
-
<relation type='
|
753
|
+
<relation type='annotationOf'>
|
754
754
|
<bibitem>
|
755
755
|
<title>--</title>
|
756
|
-
<docidentifier>ABC
|
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ésente Norme internationale spécifie des méthodes
|
797
|
+
d’échantillonnage pour des concentrés de latex de
|
798
|
+
caoutchouc naturel et pour échantillonner des latex de caoutchouc
|
799
|
+
synthétique et des latex artificiels. Elle s’applique
|
800
|
+
également à l’échantillonnage de latex de
|
801
|
+
caoutchouc contenus dans des fûts, citernes routières ou de
|
802
|
+
stockage. Le mode opératoire peut aussi être utilisé
|
803
|
+
pour l’é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 — 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'>Échantillonnage</title>
|
812
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — É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ésente Norme internationale spécifie des
|
843
|
-
méthodes d’échantillonnage pour des
|
844
|
-
concentrés de latex de caoutchouc naturel et pour
|
845
|
-
échantillonner des latex de caoutchouc synthétique et
|
846
|
-
des latex artificiels. Elle s’applique également à
|
847
|
-
l’échantillonnage de latex de caoutchouc contenus dans
|
848
|
-
des fûts, citernes routières ou de stockage. Le mode
|
849
|
-
opératoire peut aussi être utilisé pour
|
850
|
-
l’é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 — 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étermination des matières solides totales</title>
|
884
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>
|
885
|
-
Latex de caoutchouc — Détermination des
|
886
|
-
matiè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 — 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étermination des matières solides totales</title>
|
931
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>
|
932
|
-
Latex de caoutchouc — Détermination des
|
933
|
-
matiè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’ISO 124:2014 spécifie des méthodes pour la
|
966
|
-
détermination des matières solides totales dans le latex
|
967
|
-
de plantation, le latex de concentré de caoutchouc naturel et
|
968
|
-
le latex de caoutchouc synthétique. Ces méthodes ne
|
969
|
-
conviennent pas nécessairement au latex d’origine
|
970
|
-
naturelle autre que celui de l’Hevea brasiliensis, au latex
|
971
|
-
vulcanisé, aux mé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 — Determination of
|
833
|
+
alkalinity
|
834
|
+
</title>
|
835
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentré de caoutchouc naturel</title>
|
836
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination de l’alcalinité</title>
|
837
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>
|
838
|
+
Latex concentré de caoutchouc
|
839
|
+
naturel — Détermination de
|
840
|
+
l’alcalinité
|
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 — Determination
|
884
|
+
of alkalinity
|
885
|
+
</title>
|
886
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentré de caoutchouc naturel</title>
|
887
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination de l’alcalinité</title>
|
888
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>
|
889
|
+
Latex concentré de caoutchouc
|
890
|
+
naturel — Détermination de
|
891
|
+
l’alcalinité
|
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ésent document spécifie une méthode de
|
925
|
+
détermination de l’alcalinité du latex
|
926
|
+
concentré de caoutchouc naturel. La méthode ne convient
|
927
|
+
pas nécessairement aux latex d’origine naturelle autres
|
928
|
+
que l’Hevea brasiliensis ou aux latex de caoutchouc de
|
929
|
+
synthèse, aux latex formulés, aux latex vulcanisés
|
930
|
+
ou aux dispersions artificielles de caoutchouc. NOTE Une
|
931
|
+
méthode de détermination de l’alcalinité du
|
932
|
+
latex de polychloroprène est spécifiée dans
|
933
|
+
l’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
|
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}
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
require "relaton_iso"
|
3
3
|
require "relaton_ietf"
|
4
4
|
|
5
|
-
RSpec.describe
|
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,
|
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,7 +1,7 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
require "fileutils"
|
3
3
|
|
4
|
-
RSpec.describe
|
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
|
-
|
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/
|
135
|
+
.new(File.dirname(__FILE__)) / "../lib/metanorma/iso"
|
136
136
|
|
137
137
|
BOILERPLATE =
|
138
138
|
HTMLEntities.new.decode(
|