Sha256: 63f68eb5b044c6b6d2883d3649990797efe09e94f3abc122a96649fa353e1966

Contents?: true

Size: 1005 Bytes

Versions: 12

Compression:

Stored size: 1005 Bytes

Contents

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

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

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

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

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

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