Sha256: 5e4f6c858a3209508e7813dec3f2ec1645b1dcf5f3fc35481fc39ae302d75ac8

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowtail"
        end

        def to_asciimath
          parsing_wrapper("leftarrowtail")
        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.12 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.11 lib/plurimath/math/symbols/leftarrowtail.rb