Class: IsoDoc::JIS::HtmlConvert
- Inherits:
-
Iso::HtmlConvert
- Object
- Iso::HtmlConvert
- IsoDoc::JIS::HtmlConvert
- Includes:
- BaseConvert, Init
- Defined in:
- lib/isodoc/jis/html_convert.rb
Instance Method Summary collapse
- #default_file_locations(_options) ⇒ Object
- #default_fonts(options) ⇒ Object
-
#initialize(options) ⇒ HtmlConvert
constructor
A new instance of HtmlConvert.
Methods included from Init
#i18n_init, #metadata_init, #omit_docid_prefix, #std_docid_semantic, #xref_init
Methods included from BaseConvert
#middle_subtitle_main, #middle_title, #middle_title_main
Constructor Details
#initialize(options) ⇒ HtmlConvert
Returns a new instance of HtmlConvert.
9 10 11 12 |
# File 'lib/isodoc/jis/html_convert.rb', line 9 def initialize() super @libdir = File.dirname(__FILE__) end |
Instance Method Details
#default_file_locations(_options) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/isodoc/jis/html_convert.rb', line 24 def default_file_locations() @libdir = File.dirname(__FILE__) { htmlstylesheet: html_doc_path("htmlstyle.scss"), htmlcoverpage: html_doc_path("html_jis_titlepage.html"), htmlintropage: html_doc_path("html_jis_intro.html"), } end |
#default_fonts(options) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/isodoc/jis/html_convert.rb', line 14 def default_fonts() { 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 |