Sha256: cdb52691420857b5d83a6398f0f631e03c0347e3efb28350c985ae21a0d14fa8

Contents?: true

Size: 974 Bytes

Versions: 2

Compression:

Stored size: 974 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rightarrowbar < Symbol
        INPUT = {
          unicodemath: [["&#x21e5;"], parsing_wrapper(["RightArrowBar", "rightarrowbar"])],
          asciimath: [["&#x21e5;"], parsing_wrapper(["RightArrowBar", "rightarrowbar"])],
          mathml: ["&#x21e5;"],
          latex: [["RightArrowBar", "rightarrowbar", "&#x21e5;"]],
          omml: ["&#x21e5;"],
          html: ["&#x21e5;"],
        }.freeze

        # output methods
        def to_latex
          "\\RightArrowBar"
        end

        def to_asciimath
          parsing_wrapper("rightarrowbar")
        end

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

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

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

        def to_html
          "&#x21e5;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/rightarrowbar.rb
plurimath-0.8.11 lib/plurimath/math/symbols/rightarrowbar.rb