Sha256: b5b134e2336a6827dfe048594c67a2571540e2e29f2cc3a6d28c99b10d4191b2

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\topbot"
        end

        def to_asciimath
          parsing_wrapper("topbot")
        end

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

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

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

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