Sha256: 9c746c5a75dbce8dee75e961f332d2f67511dadf6a44aff85b1a3ae0bdefd04b

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ncong"
        end

        def to_asciimath
          parsing_wrapper("ncong")
        end

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

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

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

        def to_html
          "&#x2247;"
        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/ncong.rb
plurimath-0.8.11 lib/plurimath/math/symbols/ncong.rb