Sha256: bdd51db3e5967aa481bc2eb444a834755e3270f0803a0c3f8ea77099a8beff45

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bigbot"
        end

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

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

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

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

        def to_html
          "&#x27d8;"
        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/bigbot.rb
plurimath-0.8.13 lib/plurimath/math/symbols/bigbot.rb