Sha256: 9c9fdc7f123cd0235f9fb60f530c0b6c520b33c6848932ac93c5bb05f15e4e22

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Lvec < Symbol
        INPUT = {
          unicodemath: [["&#x20d6;"], parsing_wrapper(["overleftarrow", "LVec"])],
          asciimath: [["&#x20d6;"], parsing_wrapper(["overleftarrow", "LVec"])],
          mathml: ["&#x20d6;"],
          latex: [["overleftarrow", "LVec", "&#x20d6;"]],
          omml: ["&#x20d6;"],
          html: ["&#x20d6;"],
        }.freeze

        # output methods
        def to_latex
          "\\overleftarrow"
        end

        def to_asciimath
          parsing_wrapper("LVec")
        end

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

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

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

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