Sha256: 6fc1826111475a3f8ebd129452bcf9377b965f6fc128330c114cddd0111b52bc

Contents?: true

Size: 964 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.23 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.22 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.21 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.20 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.19 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.18 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.17 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.16 lib/plurimath/math/symbols/leftarrowtail.rb
plurimath-0.8.15 lib/plurimath/math/symbols/leftarrowtail.rb