Sha256: 040e01a828d5d560ec8707098e7986757f6af7cb3e462208ddbfcc883d6f9432

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex
          "\\vartriangleleft"
        end

        def to_asciimath
          parsing_wrapper("vartriangleleft")
        end

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

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

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

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