metanorma-cc 1.4.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/cc/basicdoc.rng +23 -0
- data/lib/asciidoctor/cc/cc.rng +7 -0
- data/lib/asciidoctor/cc/converter.rb +6 -3
- data/lib/asciidoctor/cc/front.rb +8 -34
- data/lib/asciidoctor/cc/isodoc.rng +137 -21
- data/lib/asciidoctor/cc/validate_section.rb +27 -41
- data/lib/isodoc/cc/base_convert.rb +2 -23
- data/lib/isodoc/cc/csd.standard.xsl +2213 -1496
- data/lib/isodoc/cc/html/cc.css +16 -4
- data/lib/isodoc/cc/html/cc.scss +18 -4
- data/lib/isodoc/cc/html_convert.rb +2 -0
- data/lib/isodoc/cc/i18n-en.yaml +2 -0
- data/lib/isodoc/cc/i18n.rb +10 -0
- data/lib/isodoc/cc/init.rb +23 -0
- data/lib/isodoc/cc/metadata.rb +0 -1
- data/lib/isodoc/cc/presentation_xml_convert.rb +10 -1
- data/lib/isodoc/cc/word_convert.rb +2 -0
- data/lib/isodoc/cc/xref.rb +6 -0
- data/lib/metanorma/cc/processor.rb +1 -1
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.gemspec +2 -2
- metadata +10 -6
data/lib/isodoc/cc/html/cc.css
CHANGED
@@ -670,7 +670,7 @@ div.WordSection2 {
|
|
670
670
|
div.WordSection3 {
|
671
671
|
page: WordSection3; }
|
672
672
|
|
673
|
-
table.MsoISOTable {
|
673
|
+
table.MsoISOTable, table.MsoISOTableBig {
|
674
674
|
mso-style-name: "Table ISO";
|
675
675
|
mso-tstyle-rowband-size: 0;
|
676
676
|
mso-tstyle-colband-size: 0;
|
@@ -691,17 +691,17 @@ table.MsoISOTable {
|
|
691
691
|
font-size: 10.0pt;
|
692
692
|
font-family: {{bodyfont}}; }
|
693
693
|
|
694
|
-
table.MsoISOTable th {
|
694
|
+
table.MsoISOTable th, table.MsoISOTableBig th {
|
695
695
|
border: solid windowtext 1pt;
|
696
696
|
mso-border-alt: solid windowtext 1pt;
|
697
697
|
padding: 0cm 2.85pt 0cm 2.85pt; }
|
698
698
|
|
699
|
-
table.MsoISOTable td {
|
699
|
+
table.MsoISOTable td, table.MsoISOTableBig td {
|
700
700
|
border: solid windowtext 1pt;
|
701
701
|
mso-border-alt: solid windowtext 1pt;
|
702
702
|
padding: 0cm 2.85pt 0cm 2.85pt; }
|
703
703
|
|
704
|
-
table.MsoISOTable p {
|
704
|
+
table.MsoISOTable p, table.MsoISOTableBig p {
|
705
705
|
font-size: 10.0pt; }
|
706
706
|
|
707
707
|
table.MsoTableGrid {
|
@@ -788,8 +788,20 @@ div.example p.MsoListParagraph {
|
|
788
788
|
font-size: 10.0pt; }
|
789
789
|
|
790
790
|
div.Note p.MsoListParagraph {
|
791
|
+
font-size: 10.0pt;
|
792
|
+
margin-left: 1.0cm; }
|
793
|
+
|
794
|
+
div.Note span.stem {
|
791
795
|
font-size: 10.0pt; }
|
792
796
|
|
797
|
+
div.Note p.Sourcecode, div.Note pre.Sourcecode {
|
798
|
+
font-size: 8.0pt;
|
799
|
+
margin-left: 1.0cm; }
|
800
|
+
|
801
|
+
div.Note table.dl {
|
802
|
+
font-size: 10.0pt;
|
803
|
+
margin-left: 1.0cm; }
|
804
|
+
|
793
805
|
span.note_label, span.example_label, td.example_label, td.note_label {
|
794
806
|
font-size: 10.0pt;
|
795
807
|
font-family: {{bodyfont}}; }
|
data/lib/isodoc/cc/html/cc.scss
CHANGED
@@ -633,7 +633,7 @@ div.WordSection2
|
|
633
633
|
mso-paper-source:0;}
|
634
634
|
div.WordSection3
|
635
635
|
{page:WordSection3;}
|
636
|
-
table.MsoISOTable
|
636
|
+
table.MsoISOTable, table.MsoISOTableBig
|
637
637
|
{mso-style-name:"Table ISO";
|
638
638
|
mso-tstyle-rowband-size:0;
|
639
639
|
mso-tstyle-colband-size:0;
|
@@ -653,15 +653,15 @@ table.MsoISOTable
|
|
653
653
|
mso-border-insidev:.75pt solid windowtext;
|
654
654
|
font-size:10.0pt;
|
655
655
|
font-family:$bodyfont;}
|
656
|
-
table.MsoISOTable th
|
656
|
+
table.MsoISOTable th, table.MsoISOTableBig th
|
657
657
|
{border:solid windowtext 1pt;
|
658
658
|
mso-border-alt:solid windowtext 1pt;
|
659
659
|
padding:0cm 2.85pt 0cm 2.85pt;}
|
660
|
-
table.MsoISOTable td
|
660
|
+
table.MsoISOTable td, table.MsoISOTableBig td
|
661
661
|
{border:solid windowtext 1pt;
|
662
662
|
mso-border-alt:solid windowtext 1pt;
|
663
663
|
padding:0cm 2.85pt 0cm 2.85pt;}
|
664
|
-
table.MsoISOTable p
|
664
|
+
table.MsoISOTable p, table.MsoISOTableBig p
|
665
665
|
{font-size:10.0pt; }
|
666
666
|
table.MsoTableGrid
|
667
667
|
{mso-style-name:"Table Grid";
|
@@ -748,6 +748,20 @@ div.example p.MsoListParagraph {
|
|
748
748
|
|
749
749
|
div.Note p.MsoListParagraph {
|
750
750
|
font-size: 10.0pt;
|
751
|
+
margin-left: 1.0cm;
|
752
|
+
}
|
753
|
+
|
754
|
+
div.Note span.stem {
|
755
|
+
font-size: 10.0pt; }
|
756
|
+
|
757
|
+
div.Note p.Sourcecode, div.Note pre.Sourcecode {
|
758
|
+
font-size: 8.0pt;
|
759
|
+
margin-left: 1.0cm;
|
760
|
+
}
|
761
|
+
|
762
|
+
div.Note table.dl {
|
763
|
+
font-size: 10.0pt;
|
764
|
+
margin-left: 1.0cm;
|
751
765
|
}
|
752
766
|
|
753
767
|
span.note_label, span.example_label, td.example_label, td.note_label
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "isodoc"
|
2
|
+
require_relative "metadata"
|
3
|
+
require_relative "xref"
|
4
|
+
require_relative "i18n"
|
5
|
+
|
6
|
+
module IsoDoc
|
7
|
+
module CC
|
8
|
+
module Init
|
9
|
+
def metadata_init(lang, script, i18n)
|
10
|
+
@meta = Metadata.new(lang, script, i18n)
|
11
|
+
end
|
12
|
+
|
13
|
+
def xref_init(lang, script, klass, i18n, options)
|
14
|
+
@xrefs = Xref.new(lang, script, HtmlConvert.new(language: lang, script: script), i18n, options)
|
15
|
+
end
|
16
|
+
|
17
|
+
def i18n_init(lang, script, i18nyaml = nil)
|
18
|
+
@i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
data/lib/isodoc/cc/metadata.rb
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
-
require_relative "
|
1
|
+
require_relative "init"
|
2
2
|
require "isodoc"
|
3
3
|
|
4
4
|
module IsoDoc
|
5
5
|
module CC
|
6
6
|
class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
|
7
|
+
def annex1(f)
|
8
|
+
lbl = @xrefs.anchor(f['id'], :label)
|
9
|
+
if t = f.at(ns("./title"))
|
10
|
+
t.children = "<strong>#{t.children.to_xml}</strong>"
|
11
|
+
end
|
12
|
+
prefix_name(f, "<br/>", lbl, "title")
|
13
|
+
end
|
14
|
+
|
15
|
+
include Init
|
7
16
|
end
|
8
17
|
end
|
9
18
|
end
|
@@ -38,7 +38,7 @@ module Metanorma
|
|
38
38
|
IsoDoc::CC::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
39
39
|
when :pdf
|
40
40
|
IsoDoc::CC::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
41
|
-
when :
|
41
|
+
when :presentation
|
42
42
|
IsoDoc::CC::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
43
43
|
else
|
44
44
|
super
|
data/lib/metanorma/cc/version.rb
CHANGED
data/metanorma-cc.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
30
30
|
|
31
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
32
|
-
spec.add_dependency "isodoc", "~> 1.
|
31
|
+
spec.add_dependency "metanorma-standoc", "~> 1.6.0"
|
32
|
+
spec.add_dependency "isodoc", "~> 1.2.0"
|
33
33
|
|
34
34
|
spec.add_development_dependency "byebug", "~> 9.1"
|
35
35
|
spec.add_development_dependency "sassc", "2.4.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: isodoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2.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: 1.
|
40
|
+
version: 1.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,10 +236,14 @@ files:
|
|
236
236
|
- lib/isodoc/cc/html/wordstyle.css
|
237
237
|
- lib/isodoc/cc/html/wordstyle.scss
|
238
238
|
- lib/isodoc/cc/html_convert.rb
|
239
|
+
- lib/isodoc/cc/i18n-en.yaml
|
240
|
+
- lib/isodoc/cc/i18n.rb
|
241
|
+
- lib/isodoc/cc/init.rb
|
239
242
|
- lib/isodoc/cc/metadata.rb
|
240
243
|
- lib/isodoc/cc/pdf_convert.rb
|
241
244
|
- lib/isodoc/cc/presentation_xml_convert.rb
|
242
245
|
- lib/isodoc/cc/word_convert.rb
|
246
|
+
- lib/isodoc/cc/xref.rb
|
243
247
|
- lib/metanorma-cc.rb
|
244
248
|
- lib/metanorma/cc.rb
|
245
249
|
- lib/metanorma/cc/processor.rb
|