Sha256: c4a803ab05ae9a1f3a4aa64812edea739e664d2abc2ed9e93a17a61614dbc191
Contents?: true
Size: 1.27 KB
Versions: 10
Compression:
Stored size: 1.27 KB
Contents
require "relaton_gb" module Asciidoctor module Gb # A {Converter} implementation that generates GB output, and a document # schema encapsulation of the document for validation class Converter < ISO::Converter def sectiontype_streamline(ret) case ret when "前言" then "foreword" when "致謝" then "acknowledgements" when "引言" then "introduction" when "范围" then "scope" when "规范性引用文件" then "normative references" when "术语和定义", "术语、定义、符号、代号和缩略语" "terms and definitions" when "符号、代号和缩略语" then "symbols and abbreviated terms" when "参考文献" then "bibliography" when "致谢" then "acknowledgements" else super end end def symbols_attrs(node, a) case sectiontype1(node) when "符号" then a.merge(type: "symbols") when "代号和缩略语" then a.merge(type: "abbreviated_terms") else super end end def appendix_parse(attrs, xml, node) # UNSAFE, there is no unset_option() in asciidoctor node.remove_attr("appendix-option") clause_parse(attrs, xml, node) end end end end
Version data entries
10 entries across 10 versions & 2 rubygems