Sha256: a6e4bada34d49849c38569f753061d5f35f7588f43a832fc6749cfa5ca5169e5

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\pisces"
        end

        def to_asciimath
          parsing_wrapper("pisces")
        end

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

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

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

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