Sha256: c6cb61b85dd385c58f965404d8253f2f82004f68cc2d2c1552e77ed0bb7b6441

Contents?: true

Size: 930 Bytes

Versions: 7

Compression:

Stored size: 930 Bytes

Contents

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

        # output methods
        def to_latex
          "\\medspace"
        end

        def to_asciimath
          parsing_wrapper("medsp")
        end

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

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

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

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