Sha256: 0ccd514b1a1777690d3e9b98b5f3b41b648da88555431ebb581459d607f092c0

Contents?: true

Size: 993 Bytes

Versions: 2

Compression:

Stored size: 993 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Leftarrowsimilar < Symbol
        INPUT = {
          unicodemath: [["&#x2973;"], parsing_wrapper(["leftarrowsimilar"], lang: :unicode)],
          asciimath: [["&#x2973;"], parsing_wrapper(["leftarrowsimilar"], lang: :asciimath)],
          mathml: ["&#x2973;"],
          latex: [["leftarrowsimilar", "&#x2973;"]],
          omml: ["&#x2973;"],
          html: ["&#x2973;"],
        }.freeze

        # output methods
        def to_latex
          "\\leftarrowsimilar"
        end

        def to_asciimath
          parsing_wrapper("leftarrowsimilar", lang: :asciimath)
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x2973;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x2973;"
        end

        def to_omml_without_math_tag(_)
          "&#x2973;"
        end

        def to_html
          "&#x2973;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/leftarrowsimilar.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftarrowsimilar.rb