Sha256: a945b30931e538bfb39cefd6d68e92db20ecb182289adf4e61abd53589f55bd6

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\righttail"
        end

        def to_asciimath
          parsing_wrapper("righttail")
        end

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

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

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

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