metanorma-standoc 2.7.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/standoc/base.rb +2 -3
- data/lib/metanorma/standoc/biblio.rng +13 -0
- data/lib/metanorma/standoc/cleanup_asciibib.rb +5 -3
- data/lib/metanorma/standoc/cleanup_bibitem.rb +144 -0
- data/lib/metanorma/standoc/cleanup_block.rb +1 -1
- data/lib/metanorma/standoc/cleanup_boilerplate.rb +1 -1
- data/lib/metanorma/standoc/cleanup_footnotes.rb +1 -1
- data/lib/metanorma/standoc/cleanup_inline.rb +1 -3
- data/lib/metanorma/standoc/cleanup_maths.rb +1 -3
- data/lib/metanorma/standoc/cleanup_ref.rb +18 -142
- data/lib/metanorma/standoc/cleanup_terms_designations.rb +6 -6
- data/lib/metanorma/standoc/cleanup_text.rb +6 -6
- data/lib/metanorma/standoc/converter.rb +1 -1
- data/lib/metanorma/standoc/front.rb +3 -5
- data/lib/metanorma/standoc/front_contributor.rb +1 -159
- data/lib/metanorma/standoc/front_organisation.rb +163 -0
- data/lib/metanorma/standoc/inline.rb +8 -7
- data/lib/metanorma/standoc/isodoc.rng +11 -1
- data/lib/metanorma/standoc/localbib.rb +3 -6
- data/lib/metanorma/standoc/macros.rb +7 -0
- data/lib/metanorma/standoc/ref.rb +1 -1
- data/lib/metanorma/standoc/ref_queue.rb +2 -2
- data/lib/metanorma/standoc/render.rb +2 -1
- data/lib/metanorma/standoc/term_lookup_cleanup.rb +3 -4
- data/lib/metanorma/standoc/terms.rb +1 -1
- data/lib/metanorma/standoc/validate.rb +12 -12
- data/lib/metanorma/standoc/validate_section.rb +2 -6
- data/lib/metanorma/standoc/validate_table.rb +2 -5
- data/lib/metanorma/standoc/validate_term.rb +4 -8
- data/lib/metanorma/standoc/version.rb +1 -1
- metadata +4 -2
@@ -30,19 +30,16 @@ module Metanorma
|
|
30
30
|
end
|
31
31
|
pref.include?(iev.downcase) or
|
32
32
|
@log.add("Bibliography", term, %(Term "#{pref[0]}" does not match ) +
|
33
|
-
%(IEV #{loc} "#{iev}"))
|
33
|
+
%(IEV #{loc} "#{iev}"), severity: 1)
|
34
34
|
end
|
35
35
|
|
36
36
|
def concept_validate(doc, tag, refterm)
|
37
|
-
found = false
|
38
37
|
concept_validate_ids(doc)
|
39
38
|
doc.xpath("//#{tag}/xref").each do |x|
|
40
39
|
@concept_ids[x["target"]] and next
|
41
|
-
@log.add("Anchors", x, concept_validate_msg(doc, tag, refterm, x)
|
42
|
-
|
40
|
+
@log.add("Anchors", x, concept_validate_msg(doc, tag, refterm, x),
|
41
|
+
severity: 0)
|
43
42
|
end
|
44
|
-
found and @fatalerror << "#{tag.capitalize} not cross-referencing " \
|
45
|
-
"term or symbol"
|
46
43
|
end
|
47
44
|
|
48
45
|
def concept_validate_ids(doc)
|
@@ -80,8 +77,7 @@ module Metanorma
|
|
80
77
|
def preferred_validate_report(terms, locations)
|
81
78
|
terms.each do |e|
|
82
79
|
err = "Term #{e} occurs twice as preferred designation"
|
83
|
-
@log.add("Terms", locations[e], err)
|
84
|
-
@fatalerror << err
|
80
|
+
@log.add("Terms", locations[e], err, severity: 1)
|
85
81
|
end
|
86
82
|
end
|
87
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-standoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -478,6 +478,7 @@ files:
|
|
478
478
|
- lib/metanorma/standoc/cleanup_amend.rb
|
479
479
|
- lib/metanorma/standoc/cleanup_asciibib.rb
|
480
480
|
- lib/metanorma/standoc/cleanup_bibdata.rb
|
481
|
+
- lib/metanorma/standoc/cleanup_bibitem.rb
|
481
482
|
- lib/metanorma/standoc/cleanup_block.rb
|
482
483
|
- lib/metanorma/standoc/cleanup_boilerplate.rb
|
483
484
|
- lib/metanorma/standoc/cleanup_footnotes.rb
|
@@ -501,6 +502,7 @@ files:
|
|
501
502
|
- lib/metanorma/standoc/datamodel/plantuml_renderer.rb
|
502
503
|
- lib/metanorma/standoc/front.rb
|
503
504
|
- lib/metanorma/standoc/front_contributor.rb
|
505
|
+
- lib/metanorma/standoc/front_organisation.rb
|
504
506
|
- lib/metanorma/standoc/inline.rb
|
505
507
|
- lib/metanorma/standoc/isodoc-compile.rng
|
506
508
|
- lib/metanorma/standoc/isodoc.rng
|