Sha256: dc5736b148764c48add3614a3c80b10137ae3eeb08f4da9532262e177a6b1806

Contents?: true

Size: 847 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.9 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.8 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.7 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.6 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.5 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.4 lib/plurimath/math/symbols/nsim.rb