Sha256: 1f7a65e6699b3675c0c56dcdf3f3f5277be45fde9a5dbb2581c713610b1e69f8

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Vee"
        end

        def to_asciimath
          parsing_wrapper("Vee")
        end

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

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

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

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