metanorma-ribose 1.6.8 → 1.6.13
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 +20 -0
- data/lib/asciidoctor/ribose/basicdoc.rng +52 -3
- data/lib/asciidoctor/ribose/isodoc.rng +114 -3
- data/lib/isodoc/ribose/html/wordstyle.css +4 -4
- data/lib/isodoc/ribose/html/wordstyle.scss +4 -4
- data/lib/isodoc/ribose/rsd.standard.xsl +456 -183
- data/lib/isodoc/ribose/xref.rb +7 -2
- data/lib/metanorma/ribose/processor.rb +9 -0
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +1 -1
- metadata +5 -6
- data/lib/metanorma/ribose/fonts_manifest.yaml +0 -2
data/lib/isodoc/ribose/xref.rb
CHANGED
@@ -2,6 +2,9 @@ require "metanorma-generic"
|
|
2
2
|
|
3
3
|
module IsoDoc
|
4
4
|
module Ribose
|
5
|
+
class Counter < IsoDoc::XrefGen::Counter
|
6
|
+
end
|
7
|
+
|
5
8
|
class Xref < IsoDoc::Generic::Xref
|
6
9
|
def annex_name_lbl(clause, num)
|
7
10
|
obl = l10n("(#{@labels['inform_annex']})")
|
@@ -21,9 +24,11 @@ module IsoDoc
|
|
21
24
|
@anchors[clause["id"]] =
|
22
25
|
{ label: num, level: level, xref: num }
|
23
26
|
# subclauses are not prefixed with "Clause"
|
27
|
+
i = Counter.new
|
24
28
|
clause.xpath(ns("./clause | ./terms | ./term | ./definitions | ./references")).
|
25
|
-
|
26
|
-
|
29
|
+
each do |c|
|
30
|
+
i.increment(c)
|
31
|
+
section_names1(c, "#{num}.#{i.print}", level + 1)
|
27
32
|
end
|
28
33
|
end
|
29
34
|
end
|
@@ -15,6 +15,15 @@ module Metanorma
|
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
18
|
+
def fonts_manifest
|
19
|
+
{
|
20
|
+
"Source Sans Pro" => nil,
|
21
|
+
"STIX Two Math" => nil,
|
22
|
+
"Source Serif Pro" => nil,
|
23
|
+
"Source Code Pro" => nil,
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
18
27
|
def version
|
19
28
|
"Metanorma::Ribose #{Metanorma::Ribose::VERSION}"
|
20
29
|
end
|
data/metanorma-ribose.gemspec
CHANGED
@@ -28,7 +28,7 @@ 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-generic', '~> 1.
|
31
|
+
spec.add_dependency 'metanorma-generic', '~> 1.9.0'
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug", "~> 9.1"
|
34
34
|
spec.add_development_dependency "sassc", "2.4.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.9.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.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +221,6 @@ files:
|
|
221
221
|
- lib/isodoc/ribose/xref.rb
|
222
222
|
- lib/metanorma-ribose.rb
|
223
223
|
- lib/metanorma/ribose.rb
|
224
|
-
- lib/metanorma/ribose/fonts_manifest.yaml
|
225
224
|
- lib/metanorma/ribose/processor.rb
|
226
225
|
- lib/metanorma/ribose/version.rb
|
227
226
|
- metanorma-ribose.gemspec
|
@@ -245,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
244
|
- !ruby/object:Gem::Version
|
246
245
|
version: '0'
|
247
246
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.1.4
|
249
248
|
signing_key:
|
250
249
|
specification_version: 4
|
251
250
|
summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
|