Sha256: 09cf4cdbe099f56a2607f7c7837a2d4acbbc1a3606a532f1093da18b6ed17aad

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\underbracket"
        end

        def to_asciimath
          parsing_wrapper("underbracket")
        end

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

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

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

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