Sha256: 754d9797d9343ae012a9a651905678e7fda9e1383ba66e9a0f22cb0b66575a64

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

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

        # output methods
        def to_latex(**)
          "\\downtriangleleftblack"
        end

        def to_asciimath(**)
          parsing_wrapper("downtriangleleftblack", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x29e8;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x29e8;"
        end

        def to_html(**)
          "&#x29e8;"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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