class Xlsxrb::Ooxml::Reader::PhoneticPrListener
SAX2 listener for parsing <phoneticPr> element.
Attributes
phonetic_pr
[R]
untyped
Public Class Methods
() → untyped
Source
# File lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb, line 401 def initialize @phonetic_pr = nil end
Public Instance Methods
(untyped _uri, untyped local_name, untyped qname, untyped attributes) → untyped
Source
# File lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb, line 405 def start_element(_uri, local_name, qname, attributes) name = element_name(local_name, qname) return unless name == "phoneticPr" pr = {} pr[:font_id] = attributes["fontId"].to_i if attributes["fontId"] pr[:type] = attributes["type"] if attributes["type"] pr[:alignment] = attributes["alignment"] if attributes["alignment"] @phonetic_pr = pr end