Sha256: 2aef88adf7804cb7ba5b12a3abc4dbcd3e16a7f631599a06f9a753aeac53c78e

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

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

        # output methods
        def to_latex
          "\\barleftharpoonup"
        end

        def to_asciimath
          parsing_wrapper("LeftVectorBar", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2952;"
        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/leftvectorbar.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftvectorbar.rb