Sha256: ab26baff3069ff462e01cb60c89d04b96f56ab5c4e87aea0ee9c3e2aab8e297b

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\eparsl"
        end

        def to_asciimath
          parsing_wrapper("eparsl", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/eparsl.rb
plurimath-0.8.13 lib/plurimath/math/symbols/eparsl.rb