Sha256: 9e4b03bb73aba6256c8ab22fa14a5939f42af2d57edb3cfdb29230e577085a9b

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\overbracket"
        end

        def to_asciimath
          parsing_wrapper("overbracket")
        end

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

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

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

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