Sha256: 1181b7ee473df3bc6af6df4ace24f6e8667953146be5a1baac266ee226be5d44

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\stareq"
        end

        def to_asciimath
          parsing_wrapper("stareq")
        end

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

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

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

        def to_html
          "&#x225b;"
        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/stareq.rb
plurimath-0.8.11 lib/plurimath/math/symbols/stareq.rb