Method: IsoDoc::PresentationXMLConvert#text_transform1

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

#text_transform1(span) ⇒ Object



146
147
148
149
150
151
152
153
# File 'lib/isodoc/presentation_function/inline.rb', line 146

def text_transform1(span)
  m = span["style"].split(/;\s*/)
  i = m.index { |x| /^text-transform/.match?(x) }
  value = m[i].sub(/^text-transform:/, "")
  change_case(span, value, true)
  m[i] = "text-transform:none"
  span["style"] = m.join(";")
end