Sha256: 06f2707e7d62fc0a59221387ca944160fc591c7e885772ccb5d99119e0e3402a

Contents?: true

Size: 1005 Bytes

Versions: 16

Compression:

Stored size: 1005 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\overleftarrow"
        end

        def to_asciimath(**)
          parsing_wrapper("LVec", lang: :asciimath)
        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

16 entries across 16 versions & 1 rubygems

Version Path
plurimath-0.9.2 lib/plurimath/math/symbols/lvec.rb
plurimath-0.9.1 lib/plurimath/math/symbols/lvec.rb
plurimath-0.9.0 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.27 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.26 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.25 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.24 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.23 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.22 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.21 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.20 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.19 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.18 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.17 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.16 lib/plurimath/math/symbols/lvec.rb
plurimath-0.8.15 lib/plurimath/math/symbols/lvec.rb