Sha256: cc0f151f66f4e357f0ad4dd2bc44c95593af89521baba8181a16c08fb3df9660

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex
          "\\backsimeq"
        end

        def to_asciimath
          parsing_wrapper("backsimeq", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/backsimeq.rb
plurimath-0.8.13 lib/plurimath/math/symbols/backsimeq.rb