Sha256: b4a82beca99d70c96d818f697b933612bc749ab2366f2ca4b0d5812c3cebd3bb

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowx"
        end

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

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

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

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

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