Sha256: b49897889843c95d8e70862b7320a9c696bf338ce225e2cee29ef1b1b65f6ab3

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowtriangle"
        end

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

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

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

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

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