Sha256: 62b64567e681aab12c3f9e5d5b743ad811107dc72f6c921f3303d618a325c3d5

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvartheta"
        end

        def to_asciimath
          "vartheta"
        end

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

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

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

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