class IsoDoc::BSI::HtmlConvert
Public Class Methods
new(options)
click to toggle source
Calls superclass method
# File lib/isodoc/bsi/html_convert.rb, line 9 def initialize(options) super @libdir = File.dirname(__FILE__) end
Public Instance Methods
default_file_locations(_options)
click to toggle source
# File lib/isodoc/bsi/html_convert.rb, line 25 def default_file_locations(_options) @libdir = File.dirname(__FILE__) { htmlstylesheet: html_doc_path("htmlstyle.scss"), htmlcoverpage: html_doc_path("html_bsi_titlepage.html"), htmlintropage: html_doc_path("html_bsi_intro.html"), } end
default_fonts(options)
click to toggle source
TODO : true font is BSI
Gesta, which is a webfont
# File lib/isodoc/bsi/html_convert.rb, line 15 def default_fonts(options) { bodyfont: (options[:script] == "Hans" ? '"Source Han Sans",serif' : '"Gesta","Tahoma",sans-serif'), headerfont: (options[:script] == "Hans" ? '"Source Han Sans",sans-serif' : '"Gesta","Tahoma",sans-serif'), monospacefont: '"Courier New",monospace', monospacefontsize: "1.0em", footnotefontsize: "0.9em", } end
htmlstyle(docxml)
click to toggle source
Calls superclass method
# File lib/isodoc/bsi/html_convert.rb, line 34 def htmlstyle(docxml) ret = super b = ret.at("div[@class = 'boilerplate_legal']/ol") b and b["type"] = "1" ret end
insert_tab(out, n)
click to toggle source
# File lib/isodoc/bsi/html_convert.rb, line 47 def insert_tab(out, n) tab = " " [1..n].each { out << tab } end