Sha256: 21417e88dca1ce97bae3d342eb5d98a4425e18a2d4237af1b343ef0d8313b058
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 KB
Contents
require_relative "init" require "isodoc" require "metanorma-generic" require_relative "../../relaton/render/general" module IsoDoc module IHO class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert def bibrenderer ::Relaton::Render::IHO::General.new(language: @lang) end def norm_ref_entry_code(ordinal, _idents, _ids, _standard, _datefn, _bib) "[#{ordinal}]<tab/>" end def biblio_ref_entry_code(ordinal, _idents, _ids, _standard, _datefn, _bib) "[#{ordinal}]<tab/>" end def preface_rearrange(doc) preface_move(doc.at(ns("//preface/abstract")), %w(foreword executivesummary introduction clause acknowledgements), doc) preface_move(doc.at(ns("//preface/foreword")), %w(executivesummary introduction clause acknowledgements), doc) preface_move(doc.at(ns("//preface/executivesummary")), %w(introduction clause acknowledgements), doc) preface_move(doc.at(ns("//preface/introduction")), %w(clause acknowledgements), doc) preface_move(doc.at(ns("//preface/acknowledgements")), %w(), doc) end include Init end end end
Version data entries
6 entries across 6 versions & 1 rubygems