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.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -5
- data/lib/asciidoctor/nist/cleanup.rb +1 -0
- data/lib/asciidoctor/nist/converter.rb +2 -0
- data/lib/asciidoctor/nist/nist.rng +1 -0
- data/lib/isodoc/nist/fonts_manifest.yaml +4 -0
- data/lib/isodoc/nist/html/htmlstyle.css +221 -221
- data/lib/isodoc/nist/html/htmlstyle.scss +5 -6
- data/lib/isodoc/nist/html/nist.css +49 -50
- data/lib/isodoc/nist/html/nist.scss +49 -50
- data/lib/isodoc/nist/html/nist_cswp.css +48 -49
- data/lib/isodoc/nist/html/nist_cswp.scss +48 -49
- data/lib/isodoc/nist/html/wordstyle.css +42 -42
- data/lib/isodoc/nist/html/wordstyle.scss +42 -42
- data/lib/isodoc/nist/html/wordstyle_cswp.css +52 -52
- data/lib/isodoc/nist/html/wordstyle_cswp.scss +52 -52
- data/lib/isodoc/nist/html_convert.rb +4 -1
- data/lib/isodoc/nist/nist.cswp.xsl +106 -25
- data/lib/isodoc/nist/nist.sp.xsl +106 -25
- data/lib/isodoc/nist/refs.rb +2 -0
- data/lib/isodoc/nist/word_convert.rb +6 -1
- data/lib/metanorma/nist/fonts_manifest.yaml +6 -0
- data/lib/metanorma/nist/processor.rb +0 -8
- data/lib/metanorma/nist/version.rb +1 -1
- data/metanorma-nist.gemspec +1 -1
- metadata +6 -4
data/lib/isodoc/nist/refs.rb
CHANGED
@@ -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)
|
@@ -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
|
data/metanorma-nist.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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
|