lib/asciidoctor/iso/cleanup.rb in metanorma-iso-1.3.17 vs lib/asciidoctor/iso/cleanup.rb in metanorma-iso-1.3.18

- old
+ new

@@ -7,18 +7,19 @@ require "pp" module Asciidoctor module ISO class Converter < Standoc::Converter - PRE_NORMREF_FOOTNOTES = "//foreword//fn | //introduction//fn |"\ - "//clause[title = 'Scope']//fn" .freeze + PRE_NORMREF_FOOTNOTES = "//preface//fn | "\ + "//clause[title = 'Scope']//fn".freeze NORMREF_FOOTNOTES = "//references[title = 'Normative References']//fn".freeze POST_NORMREF_FOOTNOTES = - "//clause[not(title = 'Scope')]//fn | "\ + "//sections//clause[not(title = 'Scope')]//fn | "\ + "//annex//fn | "\ "//references[title = 'Bibliography']//fn".freeze def other_footnote_renumber(xmldoc) seen = {} i = 0 @@ -61,9 +62,10 @@ def format_ref(ref, type, isopub) ref = ref.sub(/ \(All Parts\)/i, "") super end + TERM_CLAUSE = "//sections//terms".freeze PUBLISHER = "./contributor[role/@type = 'publisher']/organization".freeze OTHERIDS = "@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or "\ "@type = 'ISBN'".freeze def pub_class(bib)