Sha256: 33ab4000eb05b1a2e67399ae12a787c07c8a4949391b395e9d8380355b1f8a7f

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Wedge < Symbol
        INPUT = {
          unicodemath: [["wedge", "&#x2227;"], parsing_wrapper(["^^", "land"])],
          asciimath: [["wedge", "^^", "&#x2227;"], parsing_wrapper(["land"])],
          mathml: ["&#x2227;"],
          latex: [["wedge", "land", "&#x2227;"], parsing_wrapper(["^^"])],
          omml: ["&#x2227;"],
          html: ["&#x2227;"],
        }.freeze

        # output methods
        def to_latex
          "\\wedge"
        end

        def to_asciimath
          "wedge"
        end

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

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

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

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