metanorma-ribose 1.6.7 → 1.6.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- each_with_index do |c, i|
26
- section_names1(c, "#{num}.#{i + 1}", level + 1)
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.6.7"
3
+ VERSION = "1.6.12"
4
4
  end
5
5
  end
@@ -28,8 +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 "isodoc", "~> 1.2.0"
32
- spec.add_dependency 'metanorma-generic', '~> 1.7.0'
31
+ spec.add_dependency 'metanorma-generic', '~> 1.9.0'
33
32
 
34
33
  spec.add_development_dependency "byebug", "~> 9.1"
35
34
  spec.add_development_dependency "sassc", "2.4.0"
@@ -11,6 +11,8 @@ htmlstylesheet: lib/isodoc/ribose/html/htmlstyle.scss
11
11
  html_bodyfont: '"Source Sans Pro",sans-serif'
12
12
  html_headerfont: '"Source Sans Pro",sans-serif'
13
13
  html_monospacefont: '"Source Code Pro",monospace'
14
+ html_normalfontsize: "15px"
15
+ html_footnotefontsize: "0.9em"
14
16
  scripts: lib/isodoc/ribose/html/scripts.html
15
17
  scripts_pdf: lib/isodoc/ribose/html/scripts.pdf.html
16
18
  standardstylesheet: lib/isodoc/ribose/html/rsd.scss
@@ -21,6 +23,10 @@ wordstylesheet: lib/isodoc/ribose/html/wordstyle.scss
21
23
  word_bodyfont: '"Source Sans Pro","Arial",sans-serif'
22
24
  word_headerfont: '"Source Sans Pro","Arial",sans-serif'
23
25
  word_monospacefont: '"Source Code Pro",monospace'
26
+ word_normalfontsize: "12.0pt"
27
+ word_smallerfontsize: "11.0pt"
28
+ word_monospacefontsize: "10.0pt"
29
+ word_footnotefontsize: "10.0pt"
24
30
  docid_template: "{{ docnumeric }}{% if stageabbr %}({{ stageabbr }}){%endif%}"
25
31
  published_stages:
26
32
  - published
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7
4
+ version: 1.6.12
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: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: isodoc
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 1.2.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 1.2.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: metanorma-generic
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 1.7.0
19
+ version: 1.9.0
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 1.7.0
26
+ version: 1.9.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: byebug
43
29
  requirement: !ruby/object:Gem::Requirement