Sha256: 435dbe38e3b33c6f0f33e2e530d4eec6e9c018ae35866a4b2a5df9c95c3bb276

Contents?: true

Size: 1005 Bytes

Versions: 2

Compression:

Stored size: 1005 Bytes

Contents

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

        # output methods
        def to_latex
          "\\barupharpoonright"
        end

        def to_asciimath
          parsing_wrapper("RightUpVectorBar")
        end

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

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

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

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