Sha256: 747f133778d1768de3cbb7b41b68f7b17c6a1195fabe04aa0ab122eb1b5a0ac7

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangleubar"
        end

        def to_asciimath
          parsing_wrapper("triangleubar")
        end

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

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

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

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