Sha256: ec29ff21dd7070100a5075cd8fbb914e2e7188543cb55c71432f85341a603aa4

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\UpArrowBar"
        end

        def to_asciimath
          parsing_wrapper("baruparrow")
        end

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

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

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

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