Sha256: 07bb34769e6201b43efb59b5f9685fc16bb795201681d86411d44e17e31fe455

Contents?: true

Size: 857 Bytes

Versions: 2

Compression:

Stored size: 857 Bytes

Contents

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

        # output methods
        def to_latex
          "\\QQ"
        end

        def to_asciimath
          parsing_wrapper("QQ")
        end

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

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

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

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