Sha256: 6c781c2b9b4c83fa76ec3a45f003c9126734a17a6c281818bfd259745265d8e9

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrtriangle"
        end

        def to_asciimath
          parsing_wrapper("lrtriangle")
        end

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

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

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

        def to_html
          "&#x25ff;"
        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/lrtriangle.rb
plurimath-0.8.11 lib/plurimath/math/symbols/lrtriangle.rb