Sha256: bb6861cce42959f5b9566a44f3f974565c72265c6ff48580affb2f4c766e855b

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upfishtail"
        end

        def to_asciimath
          parsing_wrapper("upfishtail")
        end

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

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

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

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