Sha256: adf83f61a04e746a006795a3bab9d8633f2e60030bc2007b901b619805165a07

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Backsimeq < Symbol
        INPUT = {
          unicodemath: [["backsimeq", "&#x22cd;"]],
          asciimath: [["&#x22cd;"], parsing_wrapper(["backsimeq"])],
          mathml: ["&#x22cd;"],
          latex: [["backsimeq", "&#x22cd;"]],
          omml: ["&#x22cd;"],
          html: ["&#x22cd;"],
        }.freeze

        # output methods
        def to_latex
          "\\backsimeq"
        end

        def to_asciimath
          parsing_wrapper("backsimeq")
        end

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

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

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

        def to_html
          "&#x22cd;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/backsimeq.rb
plurimath-0.8.11 lib/plurimath/math/symbols/backsimeq.rb