Sha256: 1ff1d2e5569c73c49f3017dbc9ec4dec33b4a5a2a5dbe20ef7e293cd10d6c6eb

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\virgo"
        end

        def to_asciimath
          parsing_wrapper("virgo")
        end

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

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

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

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