Sha256: 77c69c3daf9abd0d2f72f1af1bea52f908ff134082e18fb347fb098a2cb2ed3b

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\obrbrak"
        end

        def to_asciimath
          parsing_wrapper("obrbrak")
        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.12 lib/plurimath/math/symbols/obrbrak.rb
plurimath-0.8.11 lib/plurimath/math/symbols/obrbrak.rb