Sha256: fb9daca897fcfa3f6269c41e78d356eb5b7c6be34ab27f9f3c79d4b828fa9e0d

Contents?: true

Size: 914 Bytes

Versions: 7

Compression:

Stored size: 914 Bytes

Contents

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

        # output methods
        def to_latex
          "\\medwhitestar"
        end

        def to_asciimath
          parsing_wrapper("medwhitestar")
        end

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

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

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

        def to_html
          "&#x2b50;"
        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/medwhitestar.rb
plurimath-0.8.9 lib/plurimath/math/symbols/medwhitestar.rb
plurimath-0.8.8 lib/plurimath/math/symbols/medwhitestar.rb
plurimath-0.8.7 lib/plurimath/math/symbols/medwhitestar.rb
plurimath-0.8.6 lib/plurimath/math/symbols/medwhitestar.rb
plurimath-0.8.5 lib/plurimath/math/symbols/medwhitestar.rb
plurimath-0.8.4 lib/plurimath/math/symbols/medwhitestar.rb