Sha256: 78d4fc8bfc3a49cca5f84b41118f5dc0516156fcc84b058f71143c399f6ebca2

Contents?: true

Size: 835 Bytes

Versions: 7

Compression:

Stored size: 835 Bytes

Contents

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

        # output methods
        def to_latex
          "="
        end

        def to_asciimath
          "="
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("=")
        end

        def to_mathml_without_math_tag
          ox_element("mo") << "="
        end

        def to_omml_without_math_tag(_)
          "="
        end

        def to_html
          "="
        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/equal.rb
plurimath-0.8.9 lib/plurimath/math/symbols/equal.rb
plurimath-0.8.8 lib/plurimath/math/symbols/equal.rb
plurimath-0.8.7 lib/plurimath/math/symbols/equal.rb
plurimath-0.8.6 lib/plurimath/math/symbols/equal.rb
plurimath-0.8.5 lib/plurimath/math/symbols/equal.rb
plurimath-0.8.4 lib/plurimath/math/symbols/equal.rb