Sha256: a45f8d873444cae45ee86497c7f08860d0946e832fc6759ebe413f820f0ba756

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\downfishtail"
        end

        def to_asciimath
          parsing_wrapper("downfishtail", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x297f;"
        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/downfishtail.rb
plurimath-0.8.13 lib/plurimath/math/symbols/downfishtail.rb