Sha256: cdac49f5bb8dad402e1d470e08833a8eb77d0253dfab64c754f4422d530c9a82

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

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

        # output methods
        def to_latex
          "\\NotRightTriangle"
        end

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

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

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

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

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