Sha256: 6ce76d025449fbbe34602468b4884ac08ce34cf7698aa3e6257b4eb0e5d17bf4

Contents?: true

Size: 871 Bytes

Versions: 7

Compression:

Stored size: 871 Bytes

Contents

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

        # output methods
        def to_latex
          "\\mathdollar"
        end

        def to_asciimath
          "$"
        end

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

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

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

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