Sha256: ddacc389733874a37657874511b1978c1e56c46174c306bab51e4bc95a224a7c

Contents?: true

Size: 939 Bytes

Versions: 10

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\glj"
        end

        def to_asciimath(**)
          parsing_wrapper("glj", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x2aa4;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2aa4;"
        end

        def to_html(**)
          "&#x2aa4;"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.23 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.22 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.21 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.20 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.19 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.18 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.17 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.16 lib/plurimath/math/symbols/glj.rb
plurimath-0.8.15 lib/plurimath/math/symbols/glj.rb