Sha256: 4070859e0f47843e6d698ed9f92b32326ef12c1bd4052fb5fe3aab27640c4545

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 Bytes

Contents

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

        # output methods
        def to_latex
          "\\intx"
        end

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

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

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

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

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