Sha256: cff6b61f79cd3751fd1d0c9c1a461f52743cb74cec1c4b5a512a0da7a5b13555
Contents?: true
Size: 1.13 KB
Versions: 9
Compression:
Stored size: 1.13 KB
Contents
require "isodoc" require "metanorma-iso" require_relative "base_convert" require_relative "init" module IsoDoc module Iec class HtmlConvert < IsoDoc::Iso::HtmlConvert def initialize(options) super @libdir = File.dirname(__FILE__) end def default_fonts(options) { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Arial",sans-serif'), headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Arial",sans-serif'), monospacefont: ('"Courier New",monospace'), } end def default_file_locations(options) @libdir = File.dirname(__FILE__) { htmlstylesheet: html_doc_path("htmlstyle.scss"), htmlcoverpage: html_doc_path("html_iec_titlepage.html"), htmlintropage: html_doc_path("html_iec_intro.html"), scripts: html_doc_path("scripts.html"), } end def htmlstyle(docxml) docxml = super b = docxml.at("div[@class = 'boilerplate_legal']/ol") b and b["type"] = "1" docxml end include BaseConvert include Init end end end
Version data entries
9 entries across 9 versions & 2 rubygems