Sha256: dfdbc2a35eff6e17a38cd9345e6e35393d2452a854dccdc279ecdaa520be9a76

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\eparsl"
        end

        def to_asciimath
          parsing_wrapper("eparsl")
        end

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

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

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

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