Sha256: 1887618c9b1fc89a127d67fad5982565f2fc5a5a25aab178c10eb03ec9bd4217

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowtriangle"
        end

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