lib/asciidoctor/standoc/base.rb in metanorma-standoc-1.4.4 vs lib/asciidoctor/standoc/base.rb in metanorma-standoc-1.5.0

- old
+ new

@@ -109,12 +109,13 @@ @datauriimage = node.attr("data-uri-image") @boilerplateauthority = node.attr("boilerplate-authority") @log = Asciidoctor::Standoc::Log.new init_bib_caches(node) init_iev_caches(node) - lang = (node.attr("language") || "en") - script = (node.attr("script") || "en") - i18n_init(lang, script) + @lang = (node.attr("language") || "en") + @script = (node.attr("script") || "Latn") + @isodoc = isodoc(@lang, @script, node.attr("i18nyaml")) + @i18n = @isodoc.i18n end def default_fonts(node) b = node.attr("body-font") || (node.attr("script") == "Hans" ? '"SimSun",serif' :