Sha256: 35996aec5f9f1e6ec27012d5d1a8e7f0faa90f116502c86b7674bec1b48063a3

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\APLinv"
        end

        def to_asciimath
          parsing_wrapper("APLinv")
        end

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

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

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

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