Sha256: a114b96285bd4a478b2408b8495a3c300765be7887d29d131a5b6dfdc0cfe36e

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sqrint"
        end

        def to_asciimath
          parsing_wrapper("sqint")
        end

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

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

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

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