Sha256: 22e1b75ac5d52f484a4fd29ca01fd68d08183db55952118b621c106608edf843

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

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

        # output methods
        def to_latex
          "\\curlywedge"
        end

        def to_asciimath
          parsing_wrapper("curlywedge")
        end

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

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

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

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