metanorma-iso 1.3.26 → 1.4.3.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -1
- data/.github/workflows/ubuntu.yml +6 -3
- data/.github/workflows/windows.yml +0 -1
- data/Gemfile +1 -0
- data/Rakefile +2 -0
- data/lib/asciidoctor/iso/base.rb +11 -14
- data/lib/asciidoctor/iso/biblio.rng +1 -1
- data/lib/asciidoctor/iso/cleanup.rb +1 -1
- data/lib/asciidoctor/iso/front_id.rb +1 -1
- data/lib/asciidoctor/iso/isodoc.rng +427 -0
- data/lib/asciidoctor/iso/isostandard.rng +3 -0
- data/lib/asciidoctor/iso/reqt.rng +23 -0
- data/lib/asciidoctor/iso/term_lookup_cleanup.rb +2 -2
- data/lib/asciidoctor/iso/validate.rb +1 -5
- data/lib/asciidoctor/iso/validate_title.rb +1 -1
- data/lib/isodoc/iso/base_convert.rb +66 -79
- data/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/lib/isodoc/iso/html/htmlstyle.scss +0 -1
- data/lib/isodoc/iso/html/isodoc.css +862 -0
- data/lib/isodoc/iso/html/isodoc.scss +4 -1
- data/lib/isodoc/iso/html/style-human.css +968 -0
- data/lib/isodoc/iso/html/style-human.scss +3 -0
- data/lib/isodoc/iso/html/style-iso.css +996 -0
- data/lib/isodoc/iso/html/style-iso.scss +3 -0
- data/lib/isodoc/iso/html/word_iso_intro.html +4 -0
- data/lib/isodoc/iso/html/wordstyle.css +1515 -0
- data/lib/isodoc/iso/html/wordstyle.scss +0 -1
- data/lib/isodoc/iso/iso.amendment.xsl +778 -261
- data/lib/isodoc/iso/iso.international-standard.xsl +778 -261
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/pdf_convert.rb +1 -14
- data/lib/isodoc/iso/presentation_xml_convert.rb +13 -0
- data/lib/isodoc/iso/sections.rb +2 -2
- data/lib/isodoc/iso/sts_convert.rb +8 -6
- data/lib/isodoc/iso/xref.rb +111 -0
- data/lib/metanorma-iso.rb +1 -0
- data/lib/metanorma/iso/processor.rb +11 -8
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +3 -2
- data/spec/asciidoctor-iso/amd_spec.rb +7 -7
- data/spec/asciidoctor-iso/base_spec.rb +5 -5
- data/spec/asciidoctor-iso/cleanup_spec.rb +2 -2
- data/spec/asciidoctor-iso/macros_spec.rb +20 -6
- data/spec/asciidoctor-iso/refs_spec.rb +1 -1
- data/spec/asciidoctor-iso/table_spec.rb +1 -1
- data/spec/isodoc/amd_spec.rb +48 -2
- data/spec/isodoc/blocks_spec.rb +112 -27
- data/spec/isodoc/inline_spec.rb +2 -2
- data/spec/isodoc/metadata_spec.rb +86 -4
- data/spec/isodoc/postproc_spec.rb +1 -1
- data/spec/isodoc/ref_spec.rb +5 -5
- data/spec/isodoc/table_spec.rb +8 -8
- data/spec/isodoc/terms_spec.rb +4 -4
- data/spec/isodoc/xref_spec.rb +24 -18
- data/spec/metanorma/processor_spec.rb +2 -2
- metadata +35 -15
data/lib/isodoc/iso/metadata.rb
CHANGED
@@ -53,7 +53,7 @@ module IsoDoc
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def docid(isoxml, _out)
|
56
|
-
dn = isoxml.at(ns("//bibdata/docidentifier[@type = '
|
56
|
+
dn = isoxml.at(ns("//bibdata/docidentifier[@type = 'ISO']"))
|
57
57
|
set(:docnumber, dn&.text)
|
58
58
|
tcdn = isoxml.xpath(ns("//bibdata/docidentifier[@type = 'iso-tc']"))
|
59
59
|
set(:tc_docnumber, tcdn.map { |n| n.text })
|
@@ -15,24 +15,11 @@ module IsoDoc
|
|
15
15
|
|
16
16
|
def pdf_stylesheet(docxml)
|
17
17
|
case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
|
18
|
-
when "amendment", "technical-corrigendum" then "
|
18
|
+
when "amendment", "technical-corrigendum" then "iso.amendment.xsl"
|
19
19
|
else
|
20
20
|
"iso.international-standard.xsl"
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
24
|
-
def convert(filename, file = nil, debug = false)
|
25
|
-
file = File.read(filename, encoding: "utf-8") if file.nil?
|
26
|
-
docxml, outname_html, dir = convert_init(file, filename, debug)
|
27
|
-
/\.xml$/.match(filename) or
|
28
|
-
filename = Tempfile.open([outname_html, ".xml"], encoding: "utf-8") do |f|
|
29
|
-
f.write file
|
30
|
-
f.path
|
31
|
-
end
|
32
|
-
FileUtils.rm_rf dir
|
33
|
-
::Metanorma::Output::XslfoPdf.new.convert(
|
34
|
-
filename, outname_html + ".pdf", File.join(@libdir, pdf_stylesheet(docxml)))
|
35
|
-
end
|
36
23
|
end
|
37
24
|
end
|
38
25
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative "base_convert"
|
2
|
+
require "isodoc"
|
3
|
+
|
4
|
+
module IsoDoc
|
5
|
+
module Iso
|
6
|
+
|
7
|
+
# A {Converter} implementation that generates HTML output, and a document
|
8
|
+
# schema encapsulation of the document for validation
|
9
|
+
#
|
10
|
+
class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/isodoc/iso/sections.rb
CHANGED
@@ -30,9 +30,9 @@ module IsoDoc
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def annex(isoxml, out)
|
33
|
-
|
33
|
+
amd(isoxml) and @suppressheadingnumbers = @oldsuppressheadingnumbers
|
34
34
|
super
|
35
|
-
|
35
|
+
amd(isoxml) and @suppressheadingnumbers = true
|
36
36
|
end
|
37
37
|
|
38
38
|
def introduction(isoxml, out)
|
@@ -10,18 +10,20 @@ module IsoDoc
|
|
10
10
|
class StsConvert < IsoDoc::XslfoPdfConvert
|
11
11
|
def initialize(options)
|
12
12
|
@libdir = File.dirname(__FILE__)
|
13
|
+
@format = :sts
|
14
|
+
@suffix = "sts.xml"
|
13
15
|
end
|
14
16
|
|
15
|
-
def convert(
|
16
|
-
file = File.read(
|
17
|
-
docxml,
|
18
|
-
/\.xml$/.match(
|
19
|
-
|
17
|
+
def convert(input_filename, file = nil, debug = false, output_filename = nil)
|
18
|
+
file = File.read(input_filename, encoding: "utf-8") if file.nil?
|
19
|
+
docxml, filename, dir = convert_init(file, input_filename, debug)
|
20
|
+
/\.xml$/.match(input_filename) or
|
21
|
+
input_filename = Tempfile.open([filename, ".xml"], encoding: "utf-8") do |f|
|
20
22
|
f.write file
|
21
23
|
f.path
|
22
24
|
end
|
23
25
|
FileUtils.rm_rf dir
|
24
|
-
Mn2sts.convert(
|
26
|
+
Mn2sts.convert(input_filename, output_filename || "#{filename}.#{@suffix}")
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
module IsoDoc
|
2
|
+
module Iso
|
3
|
+
class Xref < IsoDoc::Xref
|
4
|
+
def parse(docxml)
|
5
|
+
if @klass.amd(docxml)
|
6
|
+
back_anchor_names(docxml)
|
7
|
+
note_anchor_names(docxml.xpath(ns("//annex//table | //annex//figure")))
|
8
|
+
note_anchor_names(docxml.xpath(ns("//annex")))
|
9
|
+
example_anchor_names(docxml.xpath(ns("//annex")))
|
10
|
+
list_anchor_names(docxml.xpath(ns("//annex")))
|
11
|
+
else
|
12
|
+
super
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def initial_anchor_names(d)
|
17
|
+
super
|
18
|
+
introduction_names(d.at(ns("//introduction")))
|
19
|
+
end
|
20
|
+
|
21
|
+
# we can reference 0-number clauses in introduction
|
22
|
+
def introduction_names(clause)
|
23
|
+
return if clause.nil?
|
24
|
+
clause.xpath(ns("./clause")).each_with_index do |c, i|
|
25
|
+
section_names1(c, "0.#{i + 1}", 2)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def annex_names(clause, num)
|
30
|
+
appendix_names(clause, num)
|
31
|
+
super
|
32
|
+
end
|
33
|
+
|
34
|
+
def appendix_names(clause, num)
|
35
|
+
clause.xpath(ns("./appendix")).each_with_index do |c, i|
|
36
|
+
@anchors[c["id"]] = anchor_struct(i + 1, nil, @labels["appendix"], "clause")
|
37
|
+
@anchors[c["id"]][:level] = 2
|
38
|
+
@anchors[c["id"]][:container] = clause["id"]
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def section_names1(clause, num, level)
|
43
|
+
@anchors[clause["id"]] =
|
44
|
+
{ label: num, level: level, xref: num }
|
45
|
+
# subclauses are not prefixed with "Clause"
|
46
|
+
clause.xpath(ns("./clause | ./terms | ./term | ./definitions | "\
|
47
|
+
"./references")).
|
48
|
+
each_with_index do |c, i|
|
49
|
+
section_names1(c, "#{num}.#{i + 1}", level + 1)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def annex_names1(clause, num, level)
|
54
|
+
@anchors[clause["id"]] = { label: num, xref: num, level: level }
|
55
|
+
clause.xpath(ns("./clause | ./references")).each_with_index do |c, i|
|
56
|
+
annex_names1(c, "#{num}.#{i + 1}", level + 1)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def hierarchical_formula_names(clause, num)
|
61
|
+
c = IsoDoc::XrefGen::Counter.new
|
62
|
+
clause.xpath(ns(".//formula")).each do |t|
|
63
|
+
next if t["id"].nil? || t["id"].empty?
|
64
|
+
@anchors[t["id"]] =
|
65
|
+
anchor_struct("#{num}#{hiersep}#{c.increment(t).print}", t,
|
66
|
+
t["inequality"] ? @labels["inequality"] : @labels["formula"],
|
67
|
+
"formula", t["unnumbered"])
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def figure_anchor(t, sublabel, label)
|
72
|
+
@anchors[t["id"]] = anchor_struct(
|
73
|
+
(sublabel ? "#{label} #{sublabel}" : label),
|
74
|
+
nil, @labels["figure"], "figure", t["unnumbered"])
|
75
|
+
sublabel && t["unnumbered"] != "true" and
|
76
|
+
@anchors[t["id"]][:label] = sublabel
|
77
|
+
end
|
78
|
+
|
79
|
+
def sequential_figure_names(clause)
|
80
|
+
c = IsoDoc::XrefGen::Counter.new
|
81
|
+
j = 0
|
82
|
+
clause.xpath(ns(".//figure | .//sourcecode[not(ancestor::example)]")).
|
83
|
+
each do |t|
|
84
|
+
j = subfigure_increment(j, c, t)
|
85
|
+
sublabel = j.zero? ? nil : "#{(j+96).chr})"
|
86
|
+
next if t["id"].nil? || t["id"].empty?
|
87
|
+
figure_anchor(t, sublabel, c.print)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def hierarchical_figure_names(clause, num)
|
92
|
+
c = IsoDoc::XrefGen::Counter.new
|
93
|
+
j = 0
|
94
|
+
clause.xpath(ns(".//figure | .//sourcecode[not(ancestor::example)]")).
|
95
|
+
each do |t|
|
96
|
+
j = subfigure_increment(j, c, t)
|
97
|
+
label = "#{num}#{hiersep}#{c.print}"
|
98
|
+
sublabel = j.zero? ? nil : "#{(j+96).chr})"
|
99
|
+
next if t["id"].nil? || t["id"].empty?
|
100
|
+
figure_anchor(t, sublabel, label)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
def reference_names(ref)
|
105
|
+
super
|
106
|
+
@anchors[ref["id"]] = { xref: @anchors[ref["id"]][:xref].
|
107
|
+
sub(/ \(All Parts\)/i, "") }
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
data/lib/metanorma-iso.rb
CHANGED
@@ -5,6 +5,7 @@ require_relative "isodoc/iso/html_convert"
|
|
5
5
|
require_relative "isodoc/iso/word_convert"
|
6
6
|
require_relative "isodoc/iso/pdf_convert"
|
7
7
|
require_relative "isodoc/iso/sts_convert"
|
8
|
+
require_relative "isodoc/iso/presentation_xml_convert"
|
8
9
|
require "asciidoctor/extensions"
|
9
10
|
|
10
11
|
if defined? Metanorma
|
@@ -33,22 +33,25 @@ module Metanorma
|
|
33
33
|
"Metanorma::ISO #{Metanorma::ISO::VERSION}"
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
def use_presentation_xml(ext)
|
37
|
+
return true if ext == :html_alt
|
38
|
+
super
|
38
39
|
end
|
39
40
|
|
40
|
-
def output(isodoc_node, outname, format, options={})
|
41
|
+
def output(isodoc_node, inname, outname, format, options={})
|
41
42
|
case format
|
42
43
|
when :html
|
43
|
-
IsoDoc::Iso::HtmlConvert.new(options).convert(
|
44
|
+
IsoDoc::Iso::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
44
45
|
when :html_alt
|
45
|
-
IsoDoc::Iso::HtmlConvert.new(options.merge(alt: true)).convert(
|
46
|
+
IsoDoc::Iso::HtmlConvert.new(options.merge(alt: true)).convert(inname, isodoc_node, nil, outname)
|
46
47
|
when :doc
|
47
|
-
IsoDoc::Iso::WordConvert.new(options).convert(
|
48
|
+
IsoDoc::Iso::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
48
49
|
when :pdf
|
49
|
-
IsoDoc::Iso::PdfConvert.new(options).convert(
|
50
|
+
IsoDoc::Iso::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
50
51
|
when :sts
|
51
|
-
IsoDoc::Iso::StsConvert.new(options).convert(
|
52
|
+
IsoDoc::Iso::StsConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
53
|
+
when :presentation
|
54
|
+
IsoDoc::Iso::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
52
55
|
else
|
53
56
|
super
|
54
57
|
end
|
data/metanorma-iso.gemspec
CHANGED
@@ -30,17 +30,18 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
31
31
|
|
32
32
|
spec.add_dependency "ruby-jing"
|
33
|
-
spec.add_dependency "isodoc", "~> 1.
|
33
|
+
spec.add_dependency "isodoc", "~> 1.1.3.pre.alpha3"
|
34
34
|
spec.add_dependency "metanorma-standoc", "~> 1.4.0"
|
35
35
|
spec.add_dependency "tokenizer", "~> 0.3.0"
|
36
36
|
spec.add_dependency "twitter_cldr"
|
37
37
|
spec.add_dependency "mn2sts", "~> 1.2.0"
|
38
38
|
|
39
39
|
spec.add_development_dependency "byebug"
|
40
|
+
spec.add_development_dependency "sassc", "2.4.0"
|
40
41
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
41
42
|
spec.add_development_dependency "guard", "~> 2.14"
|
42
43
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
43
|
-
spec.add_development_dependency "rake"
|
44
|
+
spec.add_development_dependency "rake" #, "~> 12.0"
|
44
45
|
spec.add_development_dependency "rspec", "~> 3.6"
|
45
46
|
spec.add_development_dependency "rubocop", "= 0.54.0"
|
46
47
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
@@ -241,7 +241,7 @@ OUTPUT
|
|
241
241
|
d’échantillon et recommandations relatives aux conditions d’entreposage et
|
242
242
|
de transport
|
243
243
|
</title>
|
244
|
-
<docidentifier type='
|
244
|
+
<docidentifier type='ISO'>ISO 17301-1:2016/PreNP Amd 1</docidentifier>
|
245
245
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2016/PreNP Amd 1(E)</docidentifier>
|
246
246
|
<docidentifier type='iso-reference'>ISO 17301-1:2016/PreNP Amd 1:2017(E)</docidentifier>
|
247
247
|
<docnumber>17301</docnumber>
|
@@ -332,7 +332,7 @@ Author
|
|
332
332
|
INPUT
|
333
333
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
334
334
|
<bibdata type='standard'>
|
335
|
-
<docidentifier type='
|
335
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/CD Amd 1</docidentifier>
|
336
336
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/CD Amd 1(E)</docidentifier>
|
337
337
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/CD Amd 1(E)</docidentifier>
|
338
338
|
<docnumber>17301</docnumber>
|
@@ -400,7 +400,7 @@ Author
|
|
400
400
|
INPUT
|
401
401
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
402
402
|
<bibdata type='standard'>
|
403
|
-
<docidentifier type='
|
403
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/DAmd 1</docidentifier>
|
404
404
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/DAmd 1(E)</docidentifier>
|
405
405
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/DAmd 1(E)</docidentifier>
|
406
406
|
<docnumber>17301</docnumber>
|
@@ -467,7 +467,7 @@ Author
|
|
467
467
|
INPUT
|
468
468
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
469
469
|
<bibdata type='standard'>
|
470
|
-
<docidentifier type='
|
470
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/Amd 1</docidentifier>
|
471
471
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/Amd 1(E)</docidentifier>
|
472
472
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/Amd 1(E)</docidentifier>
|
473
473
|
<docnumber>17301</docnumber>
|
@@ -535,7 +535,7 @@ Author
|
|
535
535
|
INPUT
|
536
536
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
537
537
|
<bibdata type='standard'>
|
538
|
-
<docidentifier type='
|
538
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/CD Cor.3</docidentifier>
|
539
539
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/CD Cor.3(E)</docidentifier>
|
540
540
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/CD Cor.3(E)</docidentifier>
|
541
541
|
<docnumber>17301</docnumber>
|
@@ -603,7 +603,7 @@ Author
|
|
603
603
|
INPUT
|
604
604
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
605
605
|
<bibdata type='standard'>
|
606
|
-
<docidentifier type='
|
606
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/FDCor.3</docidentifier>
|
607
607
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/FDCor.3(E)</docidentifier>
|
608
608
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/FDCor.3(E)</docidentifier>
|
609
609
|
<docnumber>17301</docnumber>
|
@@ -670,7 +670,7 @@ Author
|
|
670
670
|
INPUT
|
671
671
|
<iso-standard xmlns='https://www.metanorma.org/ns/iso'>
|
672
672
|
<bibdata type='standard'>
|
673
|
-
<docidentifier type='
|
673
|
+
<docidentifier type='ISO'>ISO 17301-1:2030/Cor.3</docidentifier>
|
674
674
|
<docidentifier type='iso-with-lang'>ISO 17301-1:2030/Cor.3(E)</docidentifier>
|
675
675
|
<docidentifier type='iso-reference'>ISO 17301-1:2030/Cor.3(E)</docidentifier>
|
676
676
|
<docnumber>17301</docnumber>
|
@@ -101,7 +101,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
101
101
|
<title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
|
102
102
|
<title language="fr" format="text/plain" type="title-main">Titre Principal</title>
|
103
103
|
<title language="fr" format="text/plain" type="title-part">Part du Titre</title>
|
104
|
-
<docidentifier type="
|
104
|
+
<docidentifier type="ISO">ISO/PreWD3 1000-1</docidentifier>
|
105
105
|
<docidentifier type='iso-with-lang'>ISO/PreWD3 1000-1(E)</docidentifier>
|
106
106
|
<docidentifier type='iso-reference'>ISO/PreWD3 1000-1:2000(E)</docidentifier>
|
107
107
|
<docnumber>1000</docnumber>
|
@@ -192,7 +192,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
192
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
193
|
<iso-standard xmlns="https://www.metanorma.org/ns/iso">
|
194
194
|
<bibdata type="standard">
|
195
|
-
<docidentifier type="
|
195
|
+
<docidentifier type="ISO">ISO/IEC/IETF/TR 1000-1-1:2001</docidentifier>
|
196
196
|
<docidentifier type='iso-with-lang'>ISO/IEC/IETF/TR 1000-1-1:2001(X)</docidentifier>
|
197
197
|
<docidentifier type='iso-reference'>ISO/IEC/IETF/TR 1000-1-1:2001(X)</docidentifier>
|
198
198
|
<docidentifier type="iso-tc">2000</docidentifier>
|
@@ -304,7 +304,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
304
304
|
INPUT
|
305
305
|
<iso-standard xmlns="https://www.metanorma.org/ns/iso">
|
306
306
|
<bibdata type="standard">
|
307
|
-
<docidentifier type="
|
307
|
+
<docidentifier type="ISO">ISO/DTS 1000.2</docidentifier>
|
308
308
|
<docidentifier type='iso-with-lang'>ISO/DTS 1000.2(F)</docidentifier>
|
309
309
|
<docidentifier type='iso-reference'>ISO/DTS 1000.2(F)</docidentifier>
|
310
310
|
<docnumber>1000</docnumber>
|
@@ -370,7 +370,7 @@ OUTPUT
|
|
370
370
|
INPUT
|
371
371
|
<iso-standard xmlns="https://www.metanorma.org/ns/iso">
|
372
372
|
<bibdata type="standard">
|
373
|
-
<docidentifier type="
|
373
|
+
<docidentifier type="ISO">ISO 1000</docidentifier>
|
374
374
|
<docidentifier type='iso-with-lang'>ISO 1000(E)</docidentifier>
|
375
375
|
<docidentifier type='iso-reference'>ISO 1000(E)</docidentifier>
|
376
376
|
<docnumber>1000</docnumber>
|
@@ -436,7 +436,7 @@ OUTPUT
|
|
436
436
|
INPUT
|
437
437
|
<iso-standard xmlns="https://www.metanorma.org/ns/iso">
|
438
438
|
<bibdata type="standard">
|
439
|
-
<docidentifier type="
|
439
|
+
<docidentifier type="ISO">ISO 1000</docidentifier>
|
440
440
|
<docidentifier type='iso-with-lang'>ISO 1000(E)</docidentifier>
|
441
441
|
<docidentifier type='iso-reference'>ISO 1000(E)</docidentifier>
|
442
442
|
<docnumber>1000</docnumber>
|
@@ -547,7 +547,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
547
547
|
INPUT
|
548
548
|
#{BLANK_HDR}
|
549
549
|
<sections><formula id="_">
|
550
|
-
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>F</mi><
|
550
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>F</mi><mi>or</mi><mi>μ</mi><mi>l</mi><mi>a</mi></math></stem>
|
551
551
|
<dl id="_">
|
552
552
|
<dt>a</dt>
|
553
553
|
<dd>
|
@@ -654,7 +654,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
654
654
|
<abbreviation>ISO</abbreviation>
|
655
655
|
</organization>
|
656
656
|
</contributor>
|
657
|
-
<note format="text/plain"
|
657
|
+
<note format="text/plain" type="ISO DATE">The standard is in press</note>
|
658
658
|
</bibitem>
|
659
659
|
</references>
|
660
660
|
</bibliography>
|
@@ -234,11 +234,16 @@ RSpec.describe Asciidoctor::ISO do
|
|
234
234
|
|
235
235
|
== Terms and Definitions
|
236
236
|
|
237
|
-
=== name
|
237
|
+
=== name identity
|
238
|
+
|
239
|
+
[[name-check]]
|
240
|
+
=== name check
|
238
241
|
|
239
242
|
paragraph
|
240
243
|
|
241
|
-
term:[name] is a term
|
244
|
+
term:[name check] is a term
|
245
|
+
|
246
|
+
term:[name identity] is a term
|
242
247
|
|
243
248
|
Moreover, term:[missing] is a term
|
244
249
|
XML
|
@@ -268,14 +273,23 @@ RSpec.describe Asciidoctor::ISO do
|
|
268
273
|
</p>
|
269
274
|
</li>
|
270
275
|
</ul>
|
271
|
-
<term id='term-name'>
|
272
|
-
|
276
|
+
<term id='term-name-identity'>
|
277
|
+
<preferred>name identity</preferred>
|
278
|
+
</term>
|
279
|
+
<term id='name-check'>
|
280
|
+
<preferred>name check</preferred>
|
273
281
|
<definition>
|
274
282
|
<p id='_'>paragraph</p>
|
275
283
|
<p id='_'>
|
276
|
-
<em>name</em>
|
284
|
+
<em>name check</em>
|
285
|
+
(
|
286
|
+
<xref target='name-check'/>
|
287
|
+
) is a term
|
288
|
+
</p>
|
289
|
+
<p id='_'>
|
290
|
+
<em>name identity</em>
|
277
291
|
(
|
278
|
-
<xref target='term-name'/>
|
292
|
+
<xref target='term-name-identity'/>
|
279
293
|
) is a term
|
280
294
|
</p>
|
281
295
|
<p id="_">Moreover, (<strong>term “missing” not resolved</strong>) is a term
|
@@ -32,7 +32,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
32
32
|
<abbreviation>ISO</abbreviation>
|
33
33
|
</organization>
|
34
34
|
</contributor>
|
35
|
-
<note format="text/plain"
|
35
|
+
<note format="text/plain" type="ISO DATE">The standard is in press</note>
|
36
36
|
</bibitem>
|
37
37
|
</references>
|
38
38
|
</bibliography>
|