Sha256: a0bfcb3a6363606449f8d2aec042756fb057d236f2f27def2fb6d0d3340b369d

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 Bytes

Contents

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

        # output methods
        def to_latex
          "\\csub"
        end

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

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

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

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

        def to_html
          "&#x2acf;"
        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/csub.rb
plurimath-0.8.13 lib/plurimath/math/symbols/csub.rb