metanorma-csand 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b7a7301a69e7fbc2707f013c4217a111c4e67b8ef997634d6c90fce08e3833
4
- data.tar.gz: a6329cf4b60098b3673dec7000d8061ec904e2dc1bfd61069b1824ace37adc2c
3
+ metadata.gz: 3f72fb053ef6f5498b07128eab4938b772ae6f978dc405fe7410dd1ce536d25c
4
+ data.tar.gz: 94cfb906070e72023908f51d3dd0719a564adc365fa8a7931534f5a1f2ac39af
5
5
  SHA512:
6
- metadata.gz: 471e2aabf44fd8379d62597599b7cd40b7aecb46789653465d0fa456697e721dcaba9976422e18828039305a10442fee534a49adcf2be6b7aa6c97aa59635ddd
7
- data.tar.gz: bfdb9b031cfb401aecf485eaea9ebdfc87bfce0589c07894d9e2cff046dd14ca86a02b89547aa70e2cf4d6f0612c842662948801c11612c43524ff65ba1a285a
6
+ metadata.gz: 5742c99c1d46d8d6c7eef7edd12e63e7b6e97a7cd99c27039a94b3bc6ec4eb51280f6f6bb9c2089f66ab535c9e775b3f79b4436cc9997e2fac97f3b9e519da58
7
+ data.tar.gz: bdd4cfc7feb8223270814bcef373258b2a1c3ba2334e6a4466d71af39de1b0b5d213b8cf6b2391bd54a6ad42a0ef8e3ea9bfed5a29611ad6acc57fecc042875c
@@ -414,6 +414,20 @@
414
414
  <ref name="BibliographicItem"/>
415
415
  </element>
416
416
  </define>
417
+ <define name="relaton_collection">
418
+ <element name="relaton-collection">
419
+ <optional>
420
+ <attribute name="type"/>
421
+ </optional>
422
+ <ref name="btitle"/>
423
+ <zeroOrMore>
424
+ <ref name="contributor"/>
425
+ </zeroOrMore>
426
+ <zeroOrMore>
427
+ <ref name="docrelation"/>
428
+ </zeroOrMore>
429
+ </element>
430
+ </define>
417
431
  <define name="BibItemType" combine="choice">
418
432
  <choice>
419
433
  <value>article</value>
@@ -531,7 +545,10 @@
531
545
  </define>
532
546
  <define name="fetched">
533
547
  <element name="fetched">
534
- <data type="dateTime"/>
548
+ <choice>
549
+ <data type="dateTime"/>
550
+ <data type="date"/>
551
+ </choice>
535
552
  </element>
536
553
  </define>
537
554
  <define name="validity">
@@ -549,17 +566,26 @@
549
566
  </define>
550
567
  <define name="validityBegins">
551
568
  <element name="validityBegins">
552
- <data type="dateTime"/>
569
+ <choice>
570
+ <data type="dateTime"/>
571
+ <data type="date"/>
572
+ </choice>
553
573
  </element>
554
574
  </define>
555
575
  <define name="validityEnds">
556
576
  <element name="validityEnds">
557
- <data type="dateTime"/>
577
+ <choice>
578
+ <data type="dateTime"/>
579
+ <data type="date"/>
580
+ </choice>
558
581
  </element>
559
582
  </define>
560
583
  <define name="validityRevision">
561
584
  <element name="revision">
562
- <data type="dateTime"/>
585
+ <choice>
586
+ <data type="dateTime"/>
587
+ <data type="date"/>
588
+ </choice>
563
589
  </element>
564
590
  </define>
565
591
  <define name="TypedTitleString">
@@ -744,6 +770,7 @@
744
770
  <element name="from">
745
771
  <choice>
746
772
  <data type="dateTime"/>
773
+ <data type="date"/>
747
774
  <data type="gYear"/>
748
775
  </choice>
749
776
  </element>
@@ -752,6 +779,7 @@
752
779
  <element name="to">
753
780
  <choice>
754
781
  <data type="dateTime"/>
782
+ <data type="date"/>
755
783
  <data type="gYear"/>
756
784
  </choice>
757
785
  </element>
@@ -88,6 +88,7 @@ dl {
88
88
  }
89
89
 
90
90
  dt {
91
+ font-weight: 500;
91
92
  grid-column-start: 1;
92
93
  }
93
94
 
@@ -212,6 +213,12 @@ main {
212
213
 
213
214
  }
214
215
 
216
+ @media screen {
217
+ img {
218
+ width: 100%;
219
+ height: auto;
220
+ }
221
+ }
215
222
 
216
223
 
217
224
  #toc ul {
@@ -399,16 +406,17 @@ p.document-stage {
399
406
 
400
407
  h1,h2,h3,h4,h5,h6 {
401
408
  font-family: $headerfont;
409
+ line-height: 1.2em;
402
410
  color: black;
403
411
  font-weight: 600;
404
- margin-top: 2em;
412
+ margin-top: 1.5em;
405
413
  margin-bottom: 0.3em;
406
414
  }
407
415
 
408
416
  h1 {
409
417
  font-size: 1.8em;
410
418
  text-transform: uppercase;
411
- margin-top: 2em;
419
+ /* margin-top: 2em;*/
412
420
  }
413
421
 
414
422
  h1#content {
@@ -503,7 +511,7 @@ a:hover {
503
511
  */
504
512
 
505
513
  ul, ol {
506
- margin-left: 0.5em;
514
+ margin-left: 1em;
507
515
  list-style-position: inside;
508
516
  }
509
517
 
@@ -572,24 +580,33 @@ p.Biblio, p.NormRef {
572
580
  background-color: #F5F6F6;
573
581
  border-left: solid 5px #B1B6B8;
574
582
  color: rgb(91, 94, 95);
575
- padding: 1.2em 1.2em 1.2em 2.2em;
576
- margin: 2em 0 2em -1em;
583
+ padding: 0.5em 1em;
584
+ }
585
+
586
+ .note_label {
587
+ font-weight: 700;
577
588
  }
578
589
 
579
590
  /*
580
591
  3.8 Examples
581
592
  */
582
593
 
583
- .example {
594
+ td.example,
595
+ td.example_label {
584
596
  background-color: #F5F6F6;
585
- border-left: solid 5px #B1B6B8;
586
597
  color: rgb(91, 94, 95);
587
- padding: 1.2em 1.2em 1.2em 2.2em;
588
- margin: 2em 0 2em -1em;;
598
+ padding: 0;
599
+ }
600
+
601
+ td > p.example {
602
+ margin: 0;
603
+ border-left: solid 5px #B1B6B8;
604
+ padding: 1em;
589
605
  }
590
606
 
591
- .example .example-title {
607
+ td.example_label {
592
608
  font-weight: 700;
609
+ font-size: 1.2em;
593
610
  text-transform: uppercase;
594
611
  text-align: center;
595
612
  margin-top: 0;
@@ -857,6 +874,7 @@ padding: 2em 0;
857
874
 
858
875
  img.csa-logo {
859
876
  height: 50px;
877
+ width: auto;
860
878
  float: right;
861
879
  margin-right: 2em;
862
880
  }
@@ -35,16 +35,13 @@ module IsoDoc
35
35
  def annex_name(annex, name, div)
36
36
  div.h1 **{ class: "Annex" } do |t|
37
37
  t << "#{get_anchors[annex['id']][:label]} "
38
- t << "<b>#{name.text}</b>"
38
+ t.br
39
+ t.b do |b|
40
+ name&.children&.each { |c2| parse(c2, b) }
41
+ end
39
42
  end
40
43
  end
41
44
 
42
- def annex_name_lbl(clause, num)
43
- obl = l10n("(#{@inform_annex_lbl})")
44
- obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
45
- l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
46
- end
47
-
48
45
  def pre_parse(node, out)
49
46
  out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;")
50
47
  end
@@ -12,7 +12,9 @@ module Metanorma
12
12
 
13
13
  def output_formats
14
14
  super.merge(
15
- html: "html"
15
+ html: "html",
16
+ # doc: "doc",
17
+ # pdf: "pdf"
16
18
  )
17
19
  end
18
20
 
@@ -20,14 +22,18 @@ module Metanorma
20
22
  "Metanorma::Csand #{Metanorma::Csand::VERSION}"
21
23
  end
22
24
 
23
- def input_to_isodoc(file)
24
- Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend)
25
+ def input_to_isodoc(file, filename)
26
+ Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
25
27
  end
26
28
 
27
29
  def output(isodoc_node, outname, format, options={})
28
30
  case format
29
31
  when :html
30
32
  IsoDoc::Csand::HtmlConvert.new(options).convert(outname, isodoc_node)
33
+ # when :doc
34
+ # IsoDoc::Csand::WordConvert.new(options).convert(outname, isodoc_node)
35
+ # when :pdf
36
+ # IsoDoc::Csand::PdfConvert.new(options).convert(outname, isodoc_node)
31
37
  else
32
38
  super
33
39
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csand
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csand
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor