Sha256: 604e7f0adc0ba34c589df0c5c5a6ac5e3b7a6f0fdae8bec9fead4d3cfcb63e27

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

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

        # output methods
        def to_latex
          "\\invamp"
        end

        def to_asciimath
          parsing_wrapper("upand")
        end

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

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

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

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