Sha256: cdd48d36824e2c57dfe0a200bf3f3959d2327747cdc469182dc4d47b0baaa94e

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex
          "\\UpArrowBar"
        end

        def to_asciimath
          parsing_wrapper("baruparrow", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/baruparrow.rb
plurimath-0.8.13 lib/plurimath/math/symbols/baruparrow.rb