Sha256: 916322aa5f01b8ac77ca109eaaf2938d055f3d5778ed417208788788123bd0d1

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\disin"
        end

        def to_asciimath
          parsing_wrapper("disin")
        end

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

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

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

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