Sha256: 9364a45f0faff4a19735ea0b2c06fafa59f3399db25bca08da5b33b204b84706

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bbrktbrk"
        end

        def to_asciimath
          parsing_wrapper("bbrktbrk", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/bbrktbrk.rb
plurimath-0.8.13 lib/plurimath/math/symbols/bbrktbrk.rb