lib/hatemile/implementation/accessible_css_implementation.rb
##
# The operation method of _speak_as method for literal-punctuation.
#
# @param content [String] The text content of element.
# @param index [Integer] The index of pattern in text content of element.
# @param children [Array<Hatemile::Util::Html::HTMLDOMElement>] The
#   children of element.
# @return [Array<Hatemile::Util::Html::HTMLDOMElement>] The new children
#   of element.
The operation method of _speak_as method for literal-punctuation.
The operation method of _speak_as method for literal - punctuation .
def operation_speak_as_literal_punctuation(content, index, children)
        data_property_value = 'literal-punctuation'
        unless index.zero?
          children.push(
            create_content_element(content[0..(index - 1)], data_property_value)
          )
        end
        children.push(
          create_aural_content_element(
            " #{get_description_of_symbol(content[index..index])} ",
            data_property_value
          )
        )
        children.push(
          create_visual_content_element(
            content[index..index],
            data_property_value
          )
        )
        children
      end
def operation_speak_as_literal_punctuation ( content , index , children ) data_property_value = 'literal-punctuation' unless index . zero? children . push ( create_content_element ( content [ 0 .. ( index - 1 ) ] , data_property_value ) ) end children . push ( create_aural_content_element ( " #{get_description_of_symbol(content[index..index])} " , data_property_value ) ) children . push ( create_visual_content_element ( content [ index .. index ] , data_property_value ) ) children end
The operation method of _speak_as method for literal-punctuation.
The operation method of _speak_as method for literal - punctuation .
The new children of element.
The new children of element .
Array<Hatemile::Util::Html::HTMLDOMElement>
content
The text content of element.
The text content of element .
index
The index of pattern in text content of element.
The index of pattern in text content of element .
children
The children of element.
The children of element .