lib/isodoc/gb/gbhtmlconvert.rb in asciidoctor-gb-0.3.2 vs lib/isodoc/gb/gbhtmlconvert.rb in asciidoctor-gb-0.3.3
- old
+ new
@@ -1,7 +1,7 @@
require_relative "gbconvert"
-require_relative "agencies"
+require "gb_agencies"
require_relative "gbcleanup"
require_relative "metadata"
require_relative "gbhtmlrender"
module IsoDoc
@@ -26,17 +26,28 @@
end
def initialize(options)
@common = IsoDoc::Gb::Common.new(options)
super
- @htmlstylesheet = generate_css(html_doc_path("htmlstyle.scss"), true, default_fonts(options))
- @standardstylesheet = generate_css(html_doc_path("gb.scss"), true, default_fonts(options))
- @htmlcoverpage = html_doc_path("html_gb_titlepage.html")
+ if options[:compliant]
+ @htmlstylesheet = generate_css(html_doc_path("htmlcompliantstyle.scss"), true, default_fonts(options))
+ @htmlcoverpage = html_doc_path("html_compliant_gb_titlepage.html")
+ else
+ @htmlstylesheet = generate_css(html_doc_path("htmlstyle.scss"), true, default_fonts(options))
+ #@htmlcoverpage = html_doc_path("html_gb_titlepage.html")
+ @htmlcoverpage = html_doc_path("html_compliant_gb_titlepage.html")
+ end
@htmlintropage = html_doc_path("html_gb_intro.html")
@scripts = html_doc_path("scripts.html")
+ @lang = "zh"
+ @script = "Hans"
end
def metadata_init(lang, script, labels)
+ unless ["en", "zh"].include? lang
+ lang = "zh"
+ script = "Hans"
+ end
@meta = Metadata.new(lang, script, labels)
@common = IsoDoc::Gb::Common.new(meta: @meta)
end
def cleanup(docxml)