Sha256: 32c02d1ec54eeb79b03e9f449777044608cbe4e3d0dbee9edf7b6adaabe003aa

Contents?: true

Size: 901 Bytes

Versions: 7

Compression:

Stored size: 901 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.9 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.8 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.7 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.6 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.5 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.4 lib/plurimath/math/symbols/leftarrowtail.rb