Sha256: fa98053cbc665e3a6f957119b8ac8dec561015b8eaaa72a9e872717eb9739dcd

Contents?: true

Size: 1009 Bytes

Versions: 7

Compression:

Stored size: 1009 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Barrightharpoon < Symbol
        INPUT = {
          unicodemath: [["&#x296d;"], parsing_wrapper(["dashrightharpoondown", "barrightharpoon"])],
          asciimath: [["&#x296d;"], parsing_wrapper(["dashrightharpoondown", "barrightharpoon"])],
          mathml: ["&#x296d;"],
          latex: [["dashrightharpoondown", "barrightharpoon", "&#x296d;"]],
          omml: ["&#x296d;"],
          html: ["&#x296d;"],
        }.freeze

        # output methods
        def to_latex
          "\\dashrightharpoondown"
        end

        def to_asciimath
          parsing_wrapper("barrightharpoon")
        end

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

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

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

        def to_html
          "&#x296d;"
        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/barrightharpoon.rb
plurimath-0.8.9 lib/plurimath/math/symbols/barrightharpoon.rb
plurimath-0.8.8 lib/plurimath/math/symbols/barrightharpoon.rb
plurimath-0.8.7 lib/plurimath/math/symbols/barrightharpoon.rb
plurimath-0.8.6 lib/plurimath/math/symbols/barrightharpoon.rb
plurimath-0.8.5 lib/plurimath/math/symbols/barrightharpoon.rb
plurimath-0.8.4 lib/plurimath/math/symbols/barrightharpoon.rb