Sha256: 6125b2678f551863387aafc02fa31114bc53972a36471d72b8c254b906668a81

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gleichstark"
        end

        def to_asciimath
          parsing_wrapper("gleichstark")
        end

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

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

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

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