Sha256: 7095187334b41eae19cf3943ca55940c4ee00fd3e7c1118c4a632347fb179912

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\simlE"
        end

        def to_asciimath
          parsing_wrapper("simlE")
        end

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

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

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

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