Sha256: 17fb41fed7c367405496d98728c29403cf707f5ad5d1e5089d3bbe4d145b5638

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\awint"
        end

        def to_asciimath
          parsing_wrapper("awint")
        end

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

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

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

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