Sha256: e955bc3df55443c40de227b1c568f047e721ea9f3de48ebf52139a9596ad5708

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightarrowtriangle"
        end

        def to_asciimath
          parsing_wrapper("rightarrowtriangle")
        end

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

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

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

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