Sha256: 099fad15e360de427486d1f767f33577c434c581206f3cd5e518e3240243c2ca

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sqrtbottom"
        end

        def to_asciimath
          parsing_wrapper("sqrtbottom")
        end

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

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

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

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