Sha256: b73bcc09367843c0acd2f195cc9fc451417e8ee74beef55aa1d855d9c45817a9

Contents?: true

Size: 1017 Bytes

Versions: 2

Compression:

Stored size: 1017 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightarrowcircle"
        end

        def to_asciimath
          parsing_wrapper("leftrightarrowcircle", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2948;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/leftrightarrowcircle.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftrightarrowcircle.rb