Sha256: 2af8f6e5e1cc508aa152d13aca7aac12efea3633cfffe16513fec4d4544d080a

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

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

        # output methods
        def to_latex
          "\\exclam"
        end

        def to_asciimath
          "!"
        end

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

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

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

        def to_html
          "&#x21;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/exclam.rb
plurimath-0.8.11 lib/plurimath/math/symbols/exclam.rb