Sha256: 31620fbca9cddb7cbe5930d2f6dc76ff22d2df3e0b94b4bd00802dd26ab5e20e

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ubrbrak"
        end

        def to_asciimath
          parsing_wrapper("ubrbrak")
        end

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

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

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

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