Sha256: 36a9ec3065aa9d65477282b0bb9c671d8db116b2fcc2ae835f30f93a65c052ba

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\pullback"
        end

        def to_asciimath
          parsing_wrapper("pullback")
        end

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

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

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

        def to_html
          "&#x27d3;"
        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/pullback.rb
plurimath-0.8.11 lib/plurimath/math/symbols/pullback.rb