Sha256: 06f1bd12d7b53d43e950255f64414c9e332c572246a4011c6aca9586fbb2db1f

Contents?: true

Size: 991 Bytes

Versions: 2

Compression:

Stored size: 991 Bytes

Contents

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

        # output methods
        def to_latex
          "\\NotRightTriangle"
        end

        def to_asciimath
          parsing_wrapper("ntriangleright")
        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.12 lib/plurimath/math/symbols/ntriangleright.rb
plurimath-0.8.11 lib/plurimath/math/symbols/ntriangleright.rb