metanorma-bipm 2.1.1 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/base_convert.rb +3 -1
- data/lib/isodoc/bipm/bipm.brochure.xsl +582 -294
- data/lib/isodoc/bipm/bipm.guide.xsl +582 -294
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +582 -294
- data/lib/isodoc/bipm/bipm.rapport.xsl +582 -294
- data/lib/isodoc/bipm/html/htmlstyle.css +6 -0
- data/lib/isodoc/bipm/html/htmlstyle.scss +1 -0
- data/lib/isodoc/bipm/html_convert.rb +4 -4
- data/lib/isodoc/bipm/jcgm.standard.xsl +533 -266
- data/lib/isodoc/bipm/presentation_xml_convert.rb +3 -5
- data/lib/isodoc/bipm/xref.rb +22 -28
- data/lib/metanorma/bipm/biblio.rng +134 -39
- data/lib/metanorma/bipm/bipm.rng +3 -0
- data/lib/metanorma/bipm/converter.rb +6 -3
- data/lib/metanorma/bipm/isodoc.rng +21 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +3 -3
@@ -29,10 +29,10 @@ module IsoDoc
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def ol_attrs(node)
|
32
|
-
klass, style = if node["type"] == "roman" &&
|
33
|
-
!node.at("./ancestor::xmlns:ol[@type = 'roman']") ||
|
34
|
-
node["type"] == "alphabet" &&
|
35
|
-
!node.at("./ancestor::xmlns:ol[@type = 'alphabet']")
|
32
|
+
klass, style = if (node["type"] == "roman" &&
|
33
|
+
!node.at("./ancestor::xmlns:ol[@type = 'roman']")) ||
|
34
|
+
(node["type"] == "alphabet" &&
|
35
|
+
!node.at("./ancestor::xmlns:ol[@type = 'alphabet']"))
|
36
36
|
[node["type"], counter_reset(node)]
|
37
37
|
end
|
38
38
|
super.merge(attr_code(type: ol_style((node["type"] || "arabic").to_sym),
|