Sha256: b57180ce35b13bb0de105a2abd5efb8666cd55e2f2bd342bc92f5f1579eaae2f

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smallni"
        end

        def to_asciimath
          parsing_wrapper("smallni")
        end

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

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

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

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