Sha256: be31c32e3ba50a6be5ea5b1be138c5aaff537fbf6f3744cc01360016ded08d13

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\inttop"
        end

        def to_asciimath
          parsing_wrapper("inttop")
        end

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

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

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

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