Sha256: bbe1c6d02e4f73059b86dc116cd34c3bfdb19984109b37dcbc1410aa2b6c5425

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bbrktbrk"
        end

        def to_asciimath
          parsing_wrapper("bbrktbrk")
        end

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

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

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

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