metanorma-cc 1.5.4 → 1.6.2
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 +62 -0
- data/README.adoc +5 -6
- data/lib/asciidoctor/cc/basicdoc.rng +32 -0
- data/lib/asciidoctor/cc/cc.rng +1 -1
- data/lib/asciidoctor/cc/converter.rb +19 -26
- data/lib/asciidoctor/cc/isodoc.rng +29 -44
- data/lib/asciidoctor/cc/validate_section.rb +2 -1
- data/lib/isodoc/cc/base_convert.rb +2 -12
- data/lib/isodoc/cc/csd.standard.xsl +449 -86
- data/lib/isodoc/cc/html/_coverpage.css +5 -1
- data/lib/isodoc/cc/html/cc.css +20 -21
- data/lib/isodoc/cc/html/cc.scss +20 -21
- data/lib/isodoc/cc/html/htmlstyle.css +657 -649
- data/lib/isodoc/cc/html/htmlstyle.scss +3 -4
- data/lib/isodoc/cc/html/wordstyle.css +19 -19
- data/lib/isodoc/cc/html/wordstyle.scss +19 -19
- data/lib/isodoc/cc/html_convert.rb +2 -38
- data/lib/isodoc/cc/i18n.rb +3 -4
- data/lib/isodoc/cc/init.rb +2 -1
- data/lib/isodoc/cc/metadata.rb +6 -22
- data/lib/isodoc/cc/pdf_convert.rb +1 -0
- data/lib/isodoc/cc/presentation_xml_convert.rb +2 -1
- data/lib/isodoc/cc/word_convert.rb +2 -25
- data/lib/isodoc/cc/xref.rb +1 -1
- data/lib/metanorma/cc.rb +23 -20
- data/lib/metanorma/cc/fonts_manifest.yaml +5 -0
- data/lib/metanorma/cc/processor.rb +1 -9
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.gemspec +1 -2
- data/metanorma.yml +58 -0
- metadata +8 -24
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
- data/lib/asciidoctor/cc/front.rb +0 -67
- data/lib/asciidoctor/cc/validate.rb +0 -29
@@ -1,29 +0,0 @@
|
|
1
|
-
module Asciidoctor
|
2
|
-
module CC
|
3
|
-
class Converter < Standoc::Converter
|
4
|
-
def content_validate(doc)
|
5
|
-
super
|
6
|
-
bibdata_validate(doc.root)
|
7
|
-
end
|
8
|
-
|
9
|
-
def bibdata_validate(doc)
|
10
|
-
doctype_validate(doc)
|
11
|
-
stage_validate(doc)
|
12
|
-
end
|
13
|
-
|
14
|
-
def doctype_validate(xmldoc)
|
15
|
-
doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
|
16
|
-
%w(directive guide specification standard report administrative amendment
|
17
|
-
technical-corrigendum advisory).include?(doctype) or
|
18
|
-
@log.add("Document Attributes", nil, "#{doctype} is not a recognised document type")
|
19
|
-
end
|
20
|
-
|
21
|
-
def stage_validate(xmldoc)
|
22
|
-
stage = xmldoc&.at("//bibdata/status/stage")&.text
|
23
|
-
%w(proposal working-draft committee-draft draft-standard final-draft
|
24
|
-
published withdrawn).include?(stage) or
|
25
|
-
@log.add("Document Attributes", nil, "#{stage} is not a recognised status")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|