Sha256: fdbf72bb7524b1ce027107ae255919fa8ac487ca1f3b912d1ad019586c7e573f

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvarbeta"
        end

        def to_asciimath
          parsing_wrapper("varbeta")
        end

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

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

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

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