Sha256: 88d357893589df0cea6715411fd62bd63214f2ac3e8b43c33099f04d14368cbd

Contents?: true

Size: 926 Bytes

Versions: 7

Compression:

Stored size: 926 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.9 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.8 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.7 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.6 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.5 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.4 lib/plurimath/math/symbols/lvec.rb