Sha256: 16deb0c5475eb64237ec8f93d50a942cc455518eded8b18886f0c7201c77a1bf

Contents?: true

Size: 926 Bytes

Versions: 7

Compression:

Stored size: 926 Bytes

Contents

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

        # output methods
        def to_latex
          "\\equalparallel"
        end

        def to_asciimath
          parsing_wrapper("hash")
        end

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

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

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

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