Sha256: 5c88590807d3ab7d8e716954ce080e3ca8a38075d0a3d1d0ca5af964d67648b4

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nequiv"
        end

        def to_asciimath
          parsing_wrapper("nequiv")
        end

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

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

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

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