Sha256: 88b9a8618fb4d4baa3770188f5e78dca4607533f02d767cc3aab4d19082a7f39

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrtriangle"
        end

        def to_asciimath
          parsing_wrapper("lrtriangle", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.13 lib/plurimath/math/symbols/lrtriangle.rb