Sha256: 7dc2a5c45d1fcccf5f5f52677ffbffc2ca83c7a719dc680c1d0094b07bf898a4

Contents?: true

Size: 866 Bytes

Versions: 7

Compression:

Stored size: 866 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Game"
        end

        def to_asciimath
          parsing_wrapper("Game")
        end

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

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

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

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