Sha256: 2a414721e67b879f2e2eee78366def571c74684e75f8736a6390251a723193d1

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gla"
        end

        def to_asciimath
          parsing_wrapper("gla", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2aa5;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/gla.rb
plurimath-0.8.13 lib/plurimath/math/symbols/gla.rb