Sha256: b6265a53453f20dde2d923551f5a50d3f9abff65e115b2ac4281c2750a680c18

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\hermitmatrix"
        end

        def to_asciimath
          parsing_wrapper("hermitmatrix")
        end

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

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

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

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