Sha256: e2923d853b6aa0fb0ab25bbda328f20f6cc0ef1d8c1214cb0d546fb6524ae06a

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circleurquad"
        end

        def to_asciimath
          parsing_wrapper("circleurquad")
        end

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

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

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

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