Sha256: af9d77f58e55031c37318130f5dc4276c4a9ec5f027bd83990d6ed53bd1c6227

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\intbottom"
        end

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

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

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

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

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