Sha256: 4308196f39376fb256bf17a2e3b7cae68163b62f1d4f040e5cde47af26dd9b89

Contents?: true

Size: 922 Bytes

Versions: 2

Compression:

Stored size: 922 Bytes

Contents

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

        # output methods
        def to_latex
          "\\curlywedge"
        end

        def to_asciimath
          parsing_wrapper("curlywedge", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/curlywedge.rb
plurimath-0.8.13 lib/plurimath/math/symbols/curlywedge.rb