Sha256: baea184c9c4636aed1564cf08966254efadd66f827568d99ab83a540e0cc5a18

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

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

9 entries across 9 versions & 1 rubygems

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