Sha256: 52c0f05e406748c6fd9accd55734282f9e529b53b5797cbec2ef5cd756764571

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.22 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.21 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.20 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.19 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.18 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.17 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.16 lib/plurimath/math/symbols/barleftarrow.rb
plurimath-0.8.15 lib/plurimath/math/symbols/barleftarrow.rb