Sha256: 2dc1e2a265e3b6f5175e0017d092a00f225234842c5113ce2c9c870e5d64cf1b

Contents?: true

Size: 937 Bytes

Versions: 7

Compression:

Stored size: 937 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Dualmap < Symbol
        INPUT = {
          unicodemath: [["&#x29df;"], parsing_wrapper(["multimapboth", "dualmap"])],
          asciimath: [["&#x29df;"], parsing_wrapper(["multimapboth", "dualmap"])],
          mathml: ["&#x29df;"],
          latex: [["multimapboth", "dualmap", "&#x29df;"]],
          omml: ["&#x29df;"],
          html: ["&#x29df;"],
        }.freeze

        # output methods
        def to_latex
          "\\multimapboth"
        end

        def to_asciimath
          parsing_wrapper("dualmap")
        end

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

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

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

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