metanorma-itu 1.4.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -32
- data/.gitignore +3 -0
- data/bin/console +1 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +183 -167
- data/lib/isodoc/itu/itu.in-force.xsl +183 -167
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +183 -167
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +183 -167
- data/lib/isodoc/itu/itu.recommendation.xsl +183 -167
- data/lib/isodoc/itu/itu.resolution.xsl +183 -167
- data/lib/isodoc/itu/itu.service-publication.xsl +183 -167
- data/lib/isodoc/itu/itu.technical-paper.xsl +183 -167
- data/lib/isodoc/itu/itu.technical-report.xsl +183 -167
- data/lib/isodoc/itu/ref.rb +2 -2
- data/lib/{asciidoctor → metanorma}/itu/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/itu/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/itu/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/itu/cleanup.rb +1 -1
- data/lib/{asciidoctor → metanorma}/itu/converter.rb +2 -2
- data/lib/{asciidoctor → metanorma}/itu/front.rb +2 -2
- data/lib/{asciidoctor → metanorma}/itu/front_id.rb +1 -1
- data/lib/{asciidoctor → metanorma}/itu/isodoc.rng +29 -0
- data/lib/{asciidoctor → metanorma}/itu/itu.rng +1 -0
- data/lib/{asciidoctor → metanorma}/itu/reqt.rng +0 -0
- data/lib/{asciidoctor → metanorma}/itu/validate.rb +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/lib/metanorma/itu.rb +1 -0
- data/lib/metanorma-itu.rb +0 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +15 -16
- data/lib/asciidoctor/itu.rb +0 -6
data/lib/isodoc/itu/ref.rb
CHANGED
@@ -9,7 +9,7 @@ module IsoDoc
|
|
9
9
|
list.tr **attr_code(iso_bibitem_entry_attrs(b, biblio)) do |ref|
|
10
10
|
id = render_identifier(bibitem_ref_code(b))
|
11
11
|
ref.td **{ style: "vertical-align:top" } do |td|
|
12
|
-
td << (id[
|
12
|
+
td << (id[:metanorma] || "[#{id[:sdo]}]")
|
13
13
|
&.gsub(/-/, "‑")&.gsub(/ /, " ")
|
14
14
|
date_note_process(b, td)
|
15
15
|
end
|
@@ -65,7 +65,7 @@ module IsoDoc
|
|
65
65
|
end
|
66
66
|
|
67
67
|
IGNORE_IDS = "@type = 'DOI' or @type = 'ISSN' or @type = 'ISBN' or "\
|
68
|
-
|
68
|
+
"@type = 'rfc-anchor' or @type = 'metanorma-ordinal'".freeze
|
69
69
|
|
70
70
|
def multi_bibitem_ref_code(b)
|
71
71
|
id = b.xpath(ns("./docidentifier[not(@type = 'metanorma' or "\
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require "asciidoctor"
|
2
|
-
require "
|
2
|
+
require "metanorma/standoc/converter"
|
3
3
|
require "fileutils"
|
4
4
|
require "metanorma-utils"
|
5
5
|
require_relative "./front"
|
6
6
|
require_relative "./validate"
|
7
7
|
require_relative "./cleanup"
|
8
8
|
|
9
|
-
module
|
9
|
+
module Metanorma
|
10
10
|
module ITU
|
11
11
|
class Converter < Standoc::Converter
|
12
12
|
XML_ROOT_TAG = "itu-standard".freeze
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require "asciidoctor"
|
2
|
-
require "
|
2
|
+
require "metanorma/standoc/converter"
|
3
3
|
require "fileutils"
|
4
4
|
require_relative "./front_id"
|
5
5
|
|
6
|
-
module
|
6
|
+
module Metanorma
|
7
7
|
module ITU
|
8
8
|
class Converter < Standoc::Converter
|
9
9
|
def metadata_status(node, xml)
|
@@ -32,6 +32,19 @@
|
|
32
32
|
<ref name="DocumentType"/>
|
33
33
|
</element>
|
34
34
|
</define>
|
35
|
+
<define name="bibitem">
|
36
|
+
<element name="bibitem">
|
37
|
+
<attribute name="id">
|
38
|
+
<data type="ID"/>
|
39
|
+
</attribute>
|
40
|
+
<optional>
|
41
|
+
<attribute name="hidden">
|
42
|
+
<data type="boolean"/>
|
43
|
+
</attribute>
|
44
|
+
</optional>
|
45
|
+
<ref name="BibliographicItem"/>
|
46
|
+
</element>
|
47
|
+
</define>
|
35
48
|
<define name="section-title">
|
36
49
|
<element name="title">
|
37
50
|
<zeroOrMore>
|
@@ -690,6 +703,7 @@
|
|
690
703
|
<ref name="terms"/>
|
691
704
|
<ref name="term-clause"/>
|
692
705
|
<ref name="definitions"/>
|
706
|
+
<ref name="floating-title"/>
|
693
707
|
</choice>
|
694
708
|
</oneOrMore>
|
695
709
|
</element>
|
@@ -1680,6 +1694,7 @@
|
|
1680
1694
|
<ref name="clause-subsection"/>
|
1681
1695
|
<ref name="terms"/>
|
1682
1696
|
<ref name="definitions"/>
|
1697
|
+
<ref name="floating-title"/>
|
1683
1698
|
</choice>
|
1684
1699
|
</oneOrMore>
|
1685
1700
|
</choice>
|
@@ -1722,6 +1737,7 @@
|
|
1722
1737
|
<ref name="terms"/>
|
1723
1738
|
<ref name="definitions"/>
|
1724
1739
|
<ref name="references"/>
|
1740
|
+
<ref name="floating-title"/>
|
1725
1741
|
</choice>
|
1726
1742
|
</zeroOrMore>
|
1727
1743
|
</group>
|
@@ -2534,4 +2550,17 @@
|
|
2534
2550
|
</oneOrMore>
|
2535
2551
|
</element>
|
2536
2552
|
</define>
|
2553
|
+
<define name="floating-title">
|
2554
|
+
<element name="floating-title">
|
2555
|
+
<attribute name="id">
|
2556
|
+
<data type="ID"/>
|
2557
|
+
</attribute>
|
2558
|
+
<attribute name="depth">
|
2559
|
+
<data type="int"/>
|
2560
|
+
</attribute>
|
2561
|
+
<zeroOrMore>
|
2562
|
+
<ref name="TextElement"/>
|
2563
|
+
</zeroOrMore>
|
2564
|
+
</element>
|
2565
|
+
</define>
|
2537
2566
|
</grammar>
|
File without changes
|
data/lib/metanorma/itu.rb
CHANGED
data/lib/metanorma-itu.rb
CHANGED
data/metanorma-itu.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
26
26
|
|
27
27
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
28
|
-
spec.add_dependency "metanorma-standoc", "~>
|
28
|
+
spec.add_dependency "metanorma-standoc", "~> 2.0.0"
|
29
29
|
spec.add_dependency "ruby-jing"
|
30
30
|
spec.add_dependency "twitter_cldr", ">= 3.0.0"
|
31
31
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-jing
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,18 +269,6 @@ files:
|
|
269
269
|
- bin/console
|
270
270
|
- bin/rspec
|
271
271
|
- bin/setup
|
272
|
-
- lib/asciidoctor/itu.rb
|
273
|
-
- lib/asciidoctor/itu/basicdoc.rng
|
274
|
-
- lib/asciidoctor/itu/biblio.rng
|
275
|
-
- lib/asciidoctor/itu/boilerplate.xml
|
276
|
-
- lib/asciidoctor/itu/cleanup.rb
|
277
|
-
- lib/asciidoctor/itu/converter.rb
|
278
|
-
- lib/asciidoctor/itu/front.rb
|
279
|
-
- lib/asciidoctor/itu/front_id.rb
|
280
|
-
- lib/asciidoctor/itu/isodoc.rng
|
281
|
-
- lib/asciidoctor/itu/itu.rng
|
282
|
-
- lib/asciidoctor/itu/reqt.rng
|
283
|
-
- lib/asciidoctor/itu/validate.rb
|
284
272
|
- lib/isodoc/itu.rb
|
285
273
|
- lib/isodoc/itu/base_convert.rb
|
286
274
|
- lib/isodoc/itu/cleanup.rb
|
@@ -334,7 +322,18 @@ files:
|
|
334
322
|
- lib/isodoc/itu/xref_section.rb
|
335
323
|
- lib/metanorma-itu.rb
|
336
324
|
- lib/metanorma/itu.rb
|
325
|
+
- lib/metanorma/itu/basicdoc.rng
|
326
|
+
- lib/metanorma/itu/biblio.rng
|
327
|
+
- lib/metanorma/itu/boilerplate.xml
|
328
|
+
- lib/metanorma/itu/cleanup.rb
|
329
|
+
- lib/metanorma/itu/converter.rb
|
330
|
+
- lib/metanorma/itu/front.rb
|
331
|
+
- lib/metanorma/itu/front_id.rb
|
332
|
+
- lib/metanorma/itu/isodoc.rng
|
333
|
+
- lib/metanorma/itu/itu.rng
|
337
334
|
- lib/metanorma/itu/processor.rb
|
335
|
+
- lib/metanorma/itu/reqt.rng
|
336
|
+
- lib/metanorma/itu/validate.rb
|
338
337
|
- lib/metanorma/itu/version.rb
|
339
338
|
- metanorma-itu.gemspec
|
340
339
|
homepage: https://github.com/metanorma/metanorma-itu
|