Method: IsoDoc::PresentationXMLConvert#extract_custom_charsets

Defined in:
lib/isodoc/presentation_function/inline.rb

#extract_custom_charsets(docxml) ⇒ Object



199
200
201
202
203
204
205
206
207
# File 'lib/isodoc/presentation_function/inline.rb', line 199

def extract_custom_charsets(docxml)
  docxml.xpath(ns("//presentation-metadata/custom-charset-font"))
    .each_with_object({}) do |line, m|
    line.text.split(",").map(&:strip).each do |x|
      kv = x.split(":", 2)
      m[kv[0]] = kv[1]
    end
  end
end