Sha256: a1a14f35ddbc10f938164e937e9d947bac3d670ae5a0945f4c3ba4a0d8850972

Contents?: true

Size: 908 Bytes

Versions: 7

Compression:

Stored size: 908 Bytes

Contents

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

        # output methods
        def to_latex
          "\\intextender"
        end

        def to_asciimath
          parsing_wrapper("intextender")
        end

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

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

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

        def to_html
          "&#x23ae;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.9 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.8 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.7 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.6 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.5 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.4 lib/plurimath/math/symbols/intextender.rb