Sha256: 87f849538ceba2621925e90de1c0a16230cc4a6a3f3920427d28a9e4512207c5

Contents?: true

Size: 838 Bytes

Versions: 2

Compression:

Stored size: 838 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Re"
        end

        def to_asciimath
          parsing_wrapper("Re")
        end

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

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

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

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