Sha256: 15c30f8baf6f232e8007b0a4191094c46c849166e0689a9dd37102c96ddced8b

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\npolint"
        end

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

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

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

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

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