require "metanorma" require "metanorma-generic" require "metanorma/bipm/processor" require "metanorma/bipm/converter" module Metanorma module Bipm def self.fonts_used { html: ["Times New Roman", "STIX", "Courier New"], pdf: ["Arial", "Times New Roman", "Work Sans", "STIX"] } end class Configuration < Metanorma::Generic::Configuration def initialize(*args) super html_configs ||= File.join(File.expand_path('config', __dir__), 'bipm_html.yml') end end class << self extend Forwardable attr_accessor :configuration Configuration::CONFIG_ATTRS.each do |attr_name| def_delegator :@configuration, attr_name end def configure self.configuration ||= Configuration.new yield(configuration) end end configure {} end end Metanorma::Registry.instance.register(Metanorma::Bipm::Processor)