Sha256: 117c6fce3534f841760bb942dfc0256b79f842bf9e79a438f3505d177bf525c5

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

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

        # output methods
        def to_latex
          "\\downharpoonleftbar"
        end

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

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

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

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

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