Sha256: 4ea041430150681fec7cbe548130c2bee12a9b52f9f3aadf4ab4e30d8d2dd30e

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

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

        # output methods
        def to_latex
          "\\maltese"
        end

        def to_asciimath
          parsing_wrapper("maltese")
        end

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

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

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

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