metanorma-iho 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iho/basicdoc.rng +31 -1
- data/lib/asciidoctor/iho/isodoc.rng +108 -8
- data/lib/isodoc/iho/base_convert.rb +121 -0
- data/lib/isodoc/iho/html/iho.css +16 -4
- data/lib/isodoc/iho/html/iho.scss +18 -4
- data/lib/isodoc/iho/i18n-en.yaml +2 -0
- data/lib/isodoc/iho/iho.specification.xsl +555 -198
- data/lib/isodoc/iho/iho.standard.xsl +555 -198
- data/lib/isodoc/iho/init.rb +3 -1
- data/lib/isodoc/iho/xref.rb +10 -0
- data/lib/metanorma/iho/version.rb +1 -1
- data/metanorma.yml +1 -0
- metadata +3 -2
data/lib/isodoc/iho/init.rb
CHANGED
data/lib/isodoc/iho/xref.rb
CHANGED
@@ -59,6 +59,16 @@ module IsoDoc
|
|
59
59
|
@anchors[c["id"]][:container] = clause["id"]
|
60
60
|
end
|
61
61
|
end
|
62
|
+
|
63
|
+
def section_names1(clause, num, level)
|
64
|
+
@anchors[clause["id"]] =
|
65
|
+
{ label: num, level: level, xref: l10n("#{@labels["subclause"]} #{num}"),
|
66
|
+
type: "clause" }
|
67
|
+
clause.xpath(ns(SUBCLAUSES)).
|
68
|
+
each_with_index do |c, i|
|
69
|
+
section_names1(c, "#{num}.#{i + 1}", level + 1)
|
70
|
+
end
|
71
|
+
end
|
62
72
|
end
|
63
73
|
end
|
64
74
|
end
|
data/metanorma.yml
CHANGED
@@ -9,6 +9,7 @@ logo_paths:
|
|
9
9
|
- lib/isodoc/iho/html/image002.png
|
10
10
|
- lib/isodoc/iho/html/image003.png
|
11
11
|
validate_rng_file: lib/asciidoctor/iho/iho.rng
|
12
|
+
i18nyaml: lib/isodoc/iho/i18n-en.yaml
|
12
13
|
htmlcoverpage: lib/isodoc/iho/html/html_iho_titlepage.html
|
13
14
|
htmlintropage: lib/isodoc/iho/html/html_iho_intro.html
|
14
15
|
htmlstylesheet: lib/isodoc/iho/html/htmlstyle.scss
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -254,6 +254,7 @@ files:
|
|
254
254
|
- lib/isodoc/iho/html/wordstyle.css
|
255
255
|
- lib/isodoc/iho/html/wordstyle.scss
|
256
256
|
- lib/isodoc/iho/html_convert.rb
|
257
|
+
- lib/isodoc/iho/i18n-en.yaml
|
257
258
|
- lib/isodoc/iho/iho.specification.xsl
|
258
259
|
- lib/isodoc/iho/iho.standard.xsl
|
259
260
|
- lib/isodoc/iho/init.rb
|