Sha256: 68ce2b554e896b0769aae7e9d750b857e6d07623594c73fb5b7988c6bb8b77c3
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true require_relative 'base_convert' require_relative 'init' require 'isodoc' module IsoDoc module Csa # A {Converter} implementation that generates CSA output, and a document # schema encapsulation of the document for validation class WordConvert < IsoDoc::WordConvert def initialize(options) @libdir = File.dirname(__FILE__) super end def default_fonts(options) is_hans = options[:script] == 'Hans' { bodyfont: (is_hans ? '"SimSun",serif' : 'AzoSans,Arial,sans-serif'), headerfont: (is_hans ? '"SimHei",sans-serif' : 'AzoSans,Arial,sans-serif'), monospacefont: '"Source Code Pro","Courier New",monospace', normalfontsize: "10.5pt", footnotefontsize: "10.0pt", monospacefontsize: "10.0pt", smallerfontsize: "10.0pt", } end def default_file_locations(options) { wordstylesheet: html_doc_path('wordstyle.scss'), standardstylesheet: html_doc_path('csa.scss'), header: html_doc_path('header.html'), wordcoverpage: html_doc_path('word_csa_titlepage.html'), wordintropage: html_doc_path('word_csa_intro.html'), ulstyle: 'l3', olstyle: 'l2' } end include BaseConvert include Init end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metanorma-csa-1.6.8 | lib/isodoc/csa/word_convert.rb |