Sha256: 6687d39cdda558a1c4bcf165ad3dba9c8d505fe8b5c5df4066f37b8365af4866

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circlelrquad"
        end

        def to_asciimath
          parsing_wrapper("circlelrquad")
        end

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

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

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

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