Sha256: 6050e779834c2930dab64e97f62053ba61edcb7de7df2e35fa17f413e60acfd6
Contents?: true
Size: 1.41 KB
Versions: 11
Compression:
Stored size: 1.41 KB
Contents
require "htmlentities" require "uri" if /^2\./.match?(RUBY_VERSION) module Metanorma module ISO class Converter < Standoc::Converter def clause_parse(attrs, xml, node) node.option? "appendix" and return appendix_parse(attrs, xml, node) super end def scope_parse(attrs, xml, node) attrs = attrs.merge(type: "scope") unless @amd clause_parse(attrs, xml, node) end def appendix_parse(attrs, xml, node) attrs[:"inline-header"] = node.option? "inline-header" set_obligation(attrs, node) xml.appendix **attr_code(attrs) do |xml_section| xml_section.title { |name| name << node.title } xml_section << node.content end end def patent_notice_parse(xml, node) # xml.patent_notice do |xml_section| # xml_section << node.content # end xml << node.content end def sectiontype(node, level = true) return nil if @amd ret = sectiontype_streamline(sectiontype1(node)) return ret if ret == "terms and definitions" && @vocab super end def term_def_subclause_parse(attrs, xml, node) node.role == "term" and return term_def_subclause_parse1(attrs, xml, node) super end def term_contains_subclauses(node) @vocab and return false # treat this as a term super end end end end
Version data entries
11 entries across 11 versions & 1 rubygems