Sha256: 5c91dc9e109a839840ce5e8ba34d2ea653b4634dc8b2f949e4993167349ecb52

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smallin"
        end

        def to_asciimath
          parsing_wrapper("smallin")
        end

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

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

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

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