Sha256: 175259ff20df05de8225debf10e2cd7a1c0e98f55b92c322b4803b7105df9929

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nsim"
        end

        def to_asciimath
          parsing_wrapper("nsim")
        end

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

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

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

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