Sha256: 12680c677171c1796cecc2a3ea64125bd1c5a036acc4b8892ea4bff95b361e47

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowtail"
        end

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

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

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

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

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