Sha256: 40bd369803715eb71562de9de7d0e0ac5271feddde1b78c5ca475ca49f67045c

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lgE"
        end

        def to_asciimath
          parsing_wrapper("lgE", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2a91;"
        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/lge.rb
plurimath-0.8.13 lib/plurimath/math/symbols/lge.rb