Sha256: db5f79994ea013475918723104a92df3194f24f8c146bfdff6cafd1f38e991ba

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\obrbrak"
        end

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

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

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

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

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