Sha256: 8d02ba3297c3acdf8f99e4960fe5017f8448c4a9d91b9507c94fe768652c77ed

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\midbarvee"
        end

        def to_asciimath
          parsing_wrapper("midbarvee")
        end

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

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

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

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