Sha256: 6f2d1ee1a0dbae54a2f520ab870ce131ab094dd1c5029025f6f0148908d3f752

Contents?: true

Size: 1017 Bytes

Versions: 2

Compression:

Stored size: 1017 Bytes

Contents

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

        # output methods
        def to_latex
          "\\barrightarrowdiamond"
        end

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

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

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

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

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