Sha256: 05f8b7cb1681c3f26a1a9234a6ec66af4a5c8d86ce5f4820a607f65b1950c11a

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/intextender.rb
plurimath-0.8.11 lib/plurimath/math/symbols/intextender.rb