Sha256: f9a03b1c8239f6862c9f7f12559bdaf0c58b60838c059f073f1477ac302565f9

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lbrackubar"
        end

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

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

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

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

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