Sha256: 9a17d529e463371d35a4eb1b4fe5b4d2f12724bfb97213fde37a574ad0de34d4

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\errbarsquare"
        end

        def to_asciimath
          parsing_wrapper("errbarsquare")
        end

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

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

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

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