Sha256: 4ee71a24e78b051f891bf58812183a71286b31f47dd8e71530e35bf3ffd7a7d4

Contents?: true

Size: 996 Bytes

Versions: 7

Compression:

Stored size: 996 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Bij < Symbol
        INPUT = {
          unicodemath: [["&#x2916;"], parsing_wrapper(["twoheadrightarrowtail", ">->>", "bij"])],
          asciimath: [["twoheadrightarrowtail", ">->>", "&#x2916;"], parsing_wrapper(["bij"])],
          mathml: ["&#x2916;"],
          latex: [["twoheadrightarrowtail", "bij", "&#x2916;"], parsing_wrapper([">->>"])],
          omml: ["&#x2916;"],
          html: ["&#x2916;"],
        }.freeze

        # output methods
        def to_latex
          "\\twoheadrightarrowtail"
        end

        def to_asciimath
          parsing_wrapper("bij")
        end

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

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

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

        def to_html
          "&#x2916;"
        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/bij.rb
plurimath-0.8.9 lib/plurimath/math/symbols/bij.rb
plurimath-0.8.8 lib/plurimath/math/symbols/bij.rb
plurimath-0.8.7 lib/plurimath/math/symbols/bij.rb
plurimath-0.8.6 lib/plurimath/math/symbols/bij.rb
plurimath-0.8.5 lib/plurimath/math/symbols/bij.rb
plurimath-0.8.4 lib/plurimath/math/symbols/bij.rb