Sha256: 309130f78633f71698580edc9aa51e42c02ee7fc59eac846ac3b5457fa33c6f5

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "."
        end

        def to_asciimath
          "."
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x2e;"
        end

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

        def to_html
          "&#x2e;"
        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/period.rb
plurimath-0.8.11 lib/plurimath/math/symbols/period.rb