metanorma-vsd 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ce1a2c93a35081a0774df586cca5f9ad54e51293743ac90a191ef5762db81d6
4
- data.tar.gz: a0f93a3d02b550a9e3ed9c10b66349d75e8fc9c4fdec74d7514a1fea0a4b005a
3
+ metadata.gz: 896a130011121b3bbe755b5e4d1d2ae17dda85a8a985b9a2464555177dbbe852
4
+ data.tar.gz: fb1339512d034ee79ceb8d3f4612589ea7ca4739ef2cce23336456fdca85849f
5
5
  SHA512:
6
- metadata.gz: e4ec6b4aebad9e0d4478390257ffead9ce13f20f5db4d8e738450566c63174e884576db6efc77e481cbb99fbf761b39487db11435b9c81c3e1d0654427e96c31
7
- data.tar.gz: f11e0b6dfaac1973fac566398ee0e3290e1c8774ca13c35115ea1931c09f4fa1bb1db4e1f0fff592f70188dae52b841312e1289f736b3c827d83dba369fb1824
6
+ metadata.gz: b997a5ffc902c682c4396a8322e0a5a696536459e85b0c5d09b56eb6f5cf03957df13180a405ec1992b70c695859fc22f3c9013eb440349760fc8ffe72c21748
7
+ data.tar.gz: f7a8ab3d540358cf0ab400422134a84608e7ea40a1b938c9e7103f1bf5670ff2b24ea5b4b490b30e4d719ea83c82b0bf512ed0cf46062b7d118a6c61308834e9
@@ -1,9 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <include href="biblio.rng"/>
4
- <start>
5
- <ref name="document"/>
6
- </start>
3
+ <include href="biblio.rng">
4
+ <start>
5
+ <ref name="document"/>
6
+ </start>
7
+ </include>
7
8
  <define name="document">
8
9
  <element name="document">
9
10
  <optional>
@@ -33,6 +33,9 @@
33
33
  <param name="pattern">([\+\-]?\d{4})((-?)((0[1-9]|1[0-2])((-?)([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6]))))?</param>
34
34
  </data>
35
35
  </define>
36
+ <start>
37
+ <ref name="relaton_collection"/>
38
+ </start>
36
39
  <define name="status">
37
40
  <element name="status">
38
41
  <ref name="stage"/>
@@ -459,10 +459,6 @@ div.WordSection2
459
459
  mso-paper-source:0;}
460
460
  div.WordSection3
461
461
  {page:WordSection3;}
462
- ol
463
- {margin-bottom:0cm;}
464
- ul
465
- {margin-bottom:0cm;}
466
462
  table.MsoISOTable
467
463
  {mso-style-name:"Table ISO";
468
464
  mso-tstyle-rowband-size:0;
@@ -483,8 +479,6 @@ table.MsoISOTable
483
479
  mso-border-insidev:.75pt solid windowtext;
484
480
  font-size:10.0pt;
485
481
  font-family:$bodyfont;}
486
- table.MsoISOTable tr
487
- {page-break-inside:avoid;}
488
482
  table.MsoISOTable th
489
483
  {border:solid windowtext 1pt;
490
484
  mso-border-alt:solid windowtext 1pt;
@@ -511,20 +505,10 @@ table.MsoTableGrid
511
505
  mso-pagination:widow-orphan;
512
506
  font-size:10.0pt;
513
507
  font-family:$bodyfont;}
514
- td { page-break-inside:avoid; }
515
- tr { page-break-after:avoid; }
516
- span.stem
517
- {font-family:"Cambria Math",serif;
518
- mso-ascii-font-family:"Cambria Math";
519
- font-style:
520
- italic;}
521
508
  div.formula
522
509
  {tab-stops:right 487.45pt;}
523
510
  body
524
511
  {tab-interval:36.0pt;}
525
- dt
526
- {page-break-inside:avoid;
527
- page-break-after:avoid}
528
512
  .coverpage_docnumber
529
513
  {text-align:center;
530
514
  font-size:14.0pt;
@@ -1068,6 +1068,44 @@ p.Tablebody, li.Tablebody, div.Tablebody
1068
1068
  margin-left:162.0pt;
1069
1069
  text-indent:-18.0pt;}
1070
1070
 
1071
+ div.ListContLevel1
1072
+ {mso-style-priority:34;
1073
+ margin-left:18.0pt;
1074
+ margin-right:0cm;}
1075
+ div.ListContLevel2
1076
+ {mso-style-priority:34;
1077
+ margin-top:0cm;
1078
+ margin-left:36.0pt;
1079
+ margin-right:0cm;}
1080
+ div.ListContLevel3
1081
+ {mso-style-priority:34;
1082
+ margin-left:54.0pt;
1083
+ margin-right:0cm;}
1084
+ div.ListContLevel4
1085
+ {mso-style-priority:34;
1086
+ margin-left:72.0pt;
1087
+ margin-right:0cm;}
1088
+ div.ListContLevel5
1089
+ {mso-style-priority:34;
1090
+ margin-left:90.0pt;
1091
+ margin-right:0cm;}
1092
+ div.ListContLevel6
1093
+ {mso-style-priority:34;
1094
+ margin-left:108.0pt;
1095
+ margin-right:0cm;}
1096
+ div.ListContLevel7
1097
+ {mso-style-priority:34;
1098
+ margin-left:126.0pt;
1099
+ margin-right:0cm;}
1100
+ div.ListContLevel8
1101
+ {mso-style-priority:34;
1102
+ margin-left:144.0pt;
1103
+ margin-right:0cm;}
1104
+ div.ListContLevel9
1105
+ {mso-style-priority:34;
1106
+ margin-left:162.0pt;
1107
+ margin-right:0cm;}
1108
+
1071
1109
  table.MsoNormalTable
1072
1110
  {mso-style-name:"Table Normal";
1073
1111
  mso-tstyle-rowband-size:0;
@@ -1081,12 +1119,6 @@ table.MsoNormalTable
1081
1119
  mso-pagination:widow-orphan;
1082
1120
  font-size:10.0pt;
1083
1121
  font-family:$bodyfont;}
1084
- br.section
1085
- {page-break-before:always;
1086
- mso-break-type:section-break;}
1087
- br.pagebreak
1088
- {page-break-before:always;
1089
- mso-special-character:line-break;}
1090
1122
  div.figure, p.figure {
1091
1123
  text-align:center;}
1092
1124
  ol
@@ -13,11 +13,11 @@ module IsoDoc
13
13
  super
14
14
  end
15
15
 
16
- def convert1(docxml, filename, dir)
17
- FileUtils.cp html_doc_path('logo.png'), File.join(@localdir, "logo.png")
18
- @files_to_delete << File.join(@localdir, "logo.png")
19
- super
20
- end
16
+ #def convert1(docxml, filename, dir)
17
+ # FileUtils.cp html_doc_path('logo.png'), File.join(@localdir, "logo.png")
18
+ # @files_to_delete << File.join(@localdir, "logo.png")
19
+ # super
20
+ #end
21
21
 
22
22
  def default_fonts(options)
23
23
  {
@@ -3,6 +3,12 @@ require "isodoc"
3
3
  module IsoDoc
4
4
  module Vsd
5
5
  class Metadata < IsoDoc::Metadata
6
+ def initialize(lang, script, labels)
7
+ super
8
+ here = File.dirname(__FILE__)
9
+ set(:logo,
10
+ File.expand_path(File.join(here, "html", "logo.png")))
11
+ end
6
12
 
7
13
  def security(isoxml, _out)
8
14
  keywords = []
@@ -45,17 +45,16 @@ module IsoDoc
45
45
  end
46
46
  end
47
47
 
48
- def generate_header(filename, dir)
49
- return unless @header
50
- template = Liquid::Template.parse(File.read(@header, encoding: "UTF-8"))
51
- meta = @meta.get
52
- meta[:filename] = filename
53
- params = meta.map { |k, v| [k.to_s, v] }.to_h
54
- File.open("header.html", "w") { |f| f.write(template.render(params)) }
55
- @files_to_delete << "header.html"
56
- "header.html"
57
- end
58
-
48
+ #def generate_header(filename, dir)
49
+ #return unless @header
50
+ #template = Liquid::Template.parse(File.read(@header, encoding: "UTF-8"))
51
+ #meta = @meta.get
52
+ #meta[:filename] = filename
53
+ #params = meta.map { |k, v| [k.to_s, v] }.to_h
54
+ #File.open("header.html", "w") { |f| f.write(template.render(params)) }
55
+ #@files_to_delete << "header.html"
56
+ #"header.html"
57
+ #end
59
58
  end
60
59
  end
61
60
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Vsd
3
- VERSION = "0.5.6"
3
+ VERSION = "0.5.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-vsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.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: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities