metanorma-rsd 1.3.8 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +5 -1
- data/.github/workflows/ubuntu.yml +5 -1
- data/.github/workflows/windows.yml +5 -1
- data/lib/asciidoctor/rsd.rb +0 -3
- data/lib/asciidoctor/rsd/basicdoc.rng +20 -6
- data/lib/asciidoctor/rsd/biblio.rng +2 -2
- data/lib/asciidoctor/rsd/boilerplate.xml +47 -0
- data/lib/asciidoctor/rsd/converter.rb +4 -133
- data/lib/asciidoctor/rsd/isodoc.rng +532 -18
- data/lib/asciidoctor/rsd/reqt.rng +8 -2
- data/lib/asciidoctor/rsd/rsd.rng +2 -42
- data/lib/isodoc/rsd/html/header.html +64 -6
- data/lib/isodoc/rsd/html/html_rsd_titlepage.html +72 -94
- data/lib/isodoc/rsd/html/htmlstyle.scss +346 -673
- data/lib/isodoc/rsd/html/rsd.scss +65 -2
- data/lib/isodoc/rsd/html/word_rsd_intro.html +2 -11
- data/lib/isodoc/rsd/html/word_rsd_titlepage.html +4 -25
- data/lib/isodoc/rsd/html/wordstyle.scss +22 -0
- data/lib/isodoc/rsd/html_convert.rb +10 -37
- data/lib/isodoc/rsd/metadata.rb +6 -42
- data/lib/isodoc/rsd/pdf_convert.rb +10 -40
- data/lib/isodoc/rsd/word_convert.rb +10 -34
- data/lib/metanorma/rsd.rb +26 -1
- data/lib/metanorma/rsd/version.rb +1 -1
- data/metanorma-rsd.gemspec +1 -0
- data/metanorma.yml +23 -0
- metadata +18 -4
- data/lib/asciidoctor/rsd/isostandard.rng +0 -860
- data/lib/isodoc/rsd/base_convert.rb +0 -56
@@ -1,56 +0,0 @@
|
|
1
|
-
require_relative "metadata"
|
2
|
-
require "fileutils"
|
3
|
-
|
4
|
-
module IsoDoc
|
5
|
-
module Rsd
|
6
|
-
module BaseConvert
|
7
|
-
#def convert1(docxml, filename, dir)
|
8
|
-
#FileUtils.cp html_doc_path('logo.svg'), File.join(@localdir, "logo.svg")
|
9
|
-
#@files_to_delete << File.join(@localdir, "logo.svg")
|
10
|
-
#super
|
11
|
-
#end
|
12
|
-
|
13
|
-
def metadata_init(lang, script, labels)
|
14
|
-
@meta = Metadata.new(lang, script, labels)
|
15
|
-
end
|
16
|
-
|
17
|
-
def annex_name(annex, name, div)
|
18
|
-
div.h1 **{ class: "Annex" } do |t|
|
19
|
-
t << "#{anchor(annex['id'], :label)} "
|
20
|
-
t.br
|
21
|
-
t.b do |b|
|
22
|
-
name&.children&.each { |c2| parse(c2, b) }
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def i18n_init(lang, script)
|
28
|
-
super
|
29
|
-
@annex_lbl = "Appendix"
|
30
|
-
end
|
31
|
-
|
32
|
-
def fileloc(loc)
|
33
|
-
File.join(File.dirname(__FILE__), loc)
|
34
|
-
end
|
35
|
-
|
36
|
-
def cleanup(docxml)
|
37
|
-
super
|
38
|
-
term_cleanup(docxml)
|
39
|
-
end
|
40
|
-
|
41
|
-
def term_cleanup(docxml)
|
42
|
-
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
43
|
-
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
44
|
-
h2.add_child(" ")
|
45
|
-
h2.add_child(d.remove)
|
46
|
-
end
|
47
|
-
docxml
|
48
|
-
end
|
49
|
-
|
50
|
-
def info(isoxml, out)
|
51
|
-
@meta.security isoxml, out
|
52
|
-
super
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|