Sha256: e4f80ac2a00e397c6ad93e0c3b73cf4d2513f9ff75a37d436345df12ed69f3b2

Contents?: true

Size: 871 Bytes

Versions: 7

Compression:

Stored size: 871 Bytes

Contents

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

        # output methods
        def to_latex
          "\\multimap"
        end

        def to_asciimath
          parsing_wrapper("multimap")
        end

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

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

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

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