Sha256: 018e3d7dbfefcef21d0256f41a0884c289b783aab463e8ac72132e805cd213bb
Contents?: true
Size: 1.47 KB
Versions: 9
Compression:
Stored size: 1.47 KB
Contents
require "isodoc" require "metanorma-iso" require_relative "base_convert" require_relative "init" module IsoDoc module Jis class HtmlConvert < IsoDoc::Iso::HtmlConvert def initialize(options) super @libdir = File.dirname(__FILE__) end def convert1(docxml, filename, dir) @options.merge!(default_fonts({})) # updated @script super end def default_fonts(_options) { bodyfont: (@script == "Jpan" ? '"MS Mincho",serif' : '"Times New Roman",serif'), headerfont: (@script == "Jpan" ? '"MS Gothic",sans-serif' : '"Arial",sans-serif'), monospacefont: '"Courier New",monospace', monospacefontsize: "1.0em", footnotefontsize: "0.9em", } end def default_file_locations(_options) @libdir = File.dirname(__FILE__) { htmlstylesheet: html_doc_path("style-iso.scss"), htmlcoverpage: html_doc_path("html_jis_titlepage.html"), htmlintropage: html_doc_path("html_jis_intro.html"), } end # TODO to Presentation XML def make_table_footnote_target(out, fnid, fnref) attrs = { id: fnid, class: "TableFootnoteRef" } out.span do |s| # TODO to Presentation XML s << @i18n.table_footnote out.span **attrs do |a| a << fnref end insert_tab(s, 1) end end include BaseConvert include Init end end end
Version data entries
9 entries across 9 versions & 1 rubygems