Sha256: d7c673257dbe39a2a4b44d6799bec5fd6e3dfc183987ab34dad2e470f92c4f67

Contents?: true

Size: 981 Bytes

Versions: 10

Compression:

Stored size: 981 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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.23 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.22 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.21 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.20 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.19 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.18 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.17 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.16 lib/plurimath/math/symbols/lrtriangle.rb
plurimath-0.8.15 lib/plurimath/math/symbols/lrtriangle.rb