metanorma-nist 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,6 +63,7 @@ module IsoDoc
63
63
  end
64
64
 
65
65
  def bibliography_parse(node, out)
66
+ return if node["hidden"] == "true"
66
67
  title = node&.at(ns("./title"))&.text || ""
67
68
  out.div do |div|
68
69
  unless suppress_biblio_title(node)
@@ -76,6 +77,7 @@ module IsoDoc
76
77
  f = isoxml.at(ns("//bibliography/clause | //bibliography/references")) || return
77
78
  page_break(out)
78
79
  isoxml.xpath(ns("//bibliography/clause | //bibliography/references")).each do |f|
80
+ next if f["hidden"] == "true"
79
81
  out.div do |div|
80
82
  div.h1 **{ class: "Section3" } do |h1|
81
83
  f&.at(ns("./title"))&.children.each { |n| parse(n, h1) }
@@ -40,7 +40,12 @@ module IsoDoc
40
40
  '"Times New Roman",serif'),
41
41
  headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
42
42
  '"Arial",sans-serif'),
43
- monospacefont: '"Courier New",monospace' }
43
+ monospacefont: '"Courier New",monospace',
44
+ normalfontsize: "12.0pt",
45
+ footnotefontsize: "10.0pt",
46
+ monospacefontsize: "10.0pt",
47
+ smallerfontsize: "10.0pt",
48
+ }
44
49
  end
45
50
 
46
51
  def default_file_locations(_options)
@@ -0,0 +1,6 @@
1
+ ---
2
+ SimSun:
3
+ Cambria:
4
+ SimHei:
5
+ Calibri:
6
+ Courier New:
@@ -3,14 +3,6 @@ require "metanorma/processor"
3
3
  module Metanorma
4
4
  module NIST
5
5
  class Processor < Metanorma::Processor
6
- def self.fonts_used
7
- {
8
- html: ["Times New Roman", "Arial", "Courier New"],
9
- doc: ["Times New Roman", "Arial", "Courier New"],
10
- pdf: ["Times New Roman", "Arial", "Courier New"],
11
- }
12
- end
13
-
14
6
  def initialize
15
7
  @short = :nist
16
8
  @input_format = :asciidoc
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module NIST
3
- VERSION = "1.2.7"
3
+ VERSION = "1.2.8"
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "tzinfo-data" # we need this for windows only
32
32
 
33
33
  spec.add_dependency "metanorma-standoc", "~> 1.6.0"
34
- spec.add_dependency "isodoc", "~> 1.2.0"
34
+ spec.add_dependency "isodoc", "~> 1.3.0"
35
35
  #spec.add_dependency "relaton-nist", "~> 0.3.0"
36
36
 
37
37
  spec.add_development_dependency "byebug", "~> 9.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-nist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
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-09 00:00:00.000000000 Z
11
+ date: 2020-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2.0
103
+ version: 1.3.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.2.0
110
+ version: 1.3.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -285,6 +285,7 @@ files:
285
285
  - lib/asciidoctor/nist/validate.rb
286
286
  - lib/isodoc/nist/base_convert.rb
287
287
  - lib/isodoc/nist/common.xsl
288
+ - lib/isodoc/nist/fonts_manifest.yaml
288
289
  - lib/isodoc/nist/html/_coverpage.css
289
290
  - lib/isodoc/nist/html/_coverpage.scss
290
291
  - lib/isodoc/nist/html/commerce-logo-color.png
@@ -330,6 +331,7 @@ files:
330
331
  - lib/isodoc/nist/xref.rb
331
332
  - lib/metanorma-nist.rb
332
333
  - lib/metanorma/nist.rb
334
+ - lib/metanorma/nist/fonts_manifest.yaml
333
335
  - lib/metanorma/nist/processor.rb
334
336
  - lib/metanorma/nist/version.rb
335
337
  - metanorma-nist.gemspec