Sha256: 5f105ff06e39b2e75bba9d0659940ba532d1e80b3ab0cba1ae02ef65cf4e070e

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\veedot"
        end

        def to_asciimath
          parsing_wrapper("veedot")
        end

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

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

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

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