Sha256: 80bc811df194ca8d310a415a09daf882110b037ed2fa252a7c48f67877eafdd3

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nsim"
        end

        def to_asciimath
          parsing_wrapper("nsim", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/nsim.rb
plurimath-0.8.13 lib/plurimath/math/symbols/nsim.rb