Sha256: 16889a6346f4eae3f9c63f8b124210659181da1373a21b3330a62a03067dc21f

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Equiv"
        end

        def to_asciimath
          parsing_wrapper("Equiv")
        end

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

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

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

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