Sha256: 034f1d3db90556d80db64e2ad91298081b819dead7f1096c4f2a5e752d477aef

Contents?: true

Size: 1017 Bytes

Versions: 2

Compression:

Stored size: 1017 Bytes

Contents

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

        # output methods
        def to_latex
          "\\LeftArrowBar"
        end

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

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

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

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

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