Sha256: b5747a14817370f66c7f8459df17390189cbca703471ff144789ee1aa31d937a

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrtriangleeq"
        end

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

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

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

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

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