Sha256: 9a6afb9a1989886dbfb806ae1d0401fb974c3adb48424d5e49c4aaa75c604458

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Oint < Symbol
        INPUT = {
          unicodemath: [["&#x222e;"]],
          asciimath: [["&#x222e;"]],
          mathml: ["&#x222e;"],
          latex: [["&#x222e;"]],
          omml: ["&#x222e;"],
          html: ["&#x222e;"],
        }.freeze

        # output methods
        def to_latex
          "\\oint"
        end

        def to_asciimath
          "oint"
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x222e;"
        end

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

        def to_html
          "&#x222e;"
        end

        def is_nary_symbol?
          true
        end

        def nary_intent_name
          "contour integral"
        end

        def tag_name
          "underover"
        end

        def omml_tag_name
          "undOvr"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/oint.rb
plurimath-0.8.13 lib/plurimath/math/symbols/oint.rb
plurimath-0.8.12 lib/plurimath/math/symbols/oint.rb
plurimath-0.8.11 lib/plurimath/math/symbols/oint.rb