Sha256: 31069a8738a68bb55bca0e7c68e4b390f557d56c46851f735b668f9319db183e

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\scurel"
        end

        def to_asciimath
          parsing_wrapper("scurel")
        end

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

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

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

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