Sha256: 18f506614b1e4536827b3bea4578a1c9e519c299a6167b9031e13a3830b4b88d

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\wedgedot"
        end

        def to_asciimath
          parsing_wrapper("wedgedot")
        end

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

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

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

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