Sha256: e19b19c06ec4662ff5623aa7a27ec835d1f8a9562313eb8b483357c2654fa268

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gla"
        end

        def to_asciimath
          parsing_wrapper("gla")
        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.12 lib/plurimath/math/symbols/gla.rb
plurimath-0.8.11 lib/plurimath/math/symbols/gla.rb