metanorma-itu 2.8.1 → 2.8.2
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/itu/html/htmlstyle.css +5 -0
- data/lib/isodoc/itu/html/htmlstyle.scss +5 -0
- data/lib/isodoc/itu/init.rb +2 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +46 -38
- data/lib/isodoc/itu/itu.in-force.xsl +46 -38
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +46 -38
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +46 -38
- data/lib/isodoc/itu/itu.recommendation.xsl +46 -38
- data/lib/isodoc/itu/itu.resolution.xsl +46 -38
- data/lib/isodoc/itu/itu.service-publication.xsl +46 -38
- data/lib/isodoc/itu/itu.technical-paper.xsl +46 -38
- data/lib/isodoc/itu/itu.technical-report.xsl +46 -38
- data/lib/isodoc/itu/metadata.rb +4 -1
- data/lib/isodoc/itu/presentation_contribution.rb +2 -2
- data/lib/isodoc/itu/presentation_ref.rb +4 -4
- data/lib/isodoc/itu/presentation_xml_convert.rb +10 -0
- data/lib/isodoc/itu/word_convert.rb +0 -11
- data/lib/metanorma/itu/biblio.rng +14 -4
- data/lib/metanorma/itu/cleanup.rb +4 -4
- data/lib/metanorma/itu/isodoc.rng +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
|
@@ -7,7 +7,7 @@ module Metanorma
|
|
|
7
7
|
super
|
|
8
8
|
xmldoc.xpath("//thead/tr[1]/th | //thead/tr[1]/td").each do |t|
|
|
9
9
|
text = t.at("./descendant::text()") or next
|
|
10
|
-
text.replace(text.text
|
|
10
|
+
text.replace(::Metanorma::Utils.strict_capitalize_first(text.text))
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
@@ -70,10 +70,10 @@ module Metanorma
|
|
|
70
70
|
id = bib.at("./docidentifier[not(#{skip_docid} or @type = " \
|
|
71
71
|
"'metanorma')]")
|
|
72
72
|
metaid = bib.at("./docidentifier[@type = 'metanorma']")&.text
|
|
73
|
-
#abbrid = metaid unless /^\[\d+\]$/.match?(metaid)
|
|
73
|
+
# abbrid = metaid unless /^\[\d+\]$/.match?(metaid)
|
|
74
74
|
type = id["type"] if id
|
|
75
|
-
title = bib.at("./title[@type = 'main']")
|
|
76
|
-
bib.at("./title")
|
|
75
|
+
title = (bib.at("./title[@type = 'main']") ||
|
|
76
|
+
bib.at("./title") || bib.at("./formattedref"))&.text
|
|
77
77
|
"#{pubclass} :: #{type} :: #{id&.text || metaid} :: #{title}"
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<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">
|
|
3
|
-
<!-- VERSION v2.1.
|
|
3
|
+
<!-- VERSION v2.1.5 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-itu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-standoc
|