Sha256: fb2ed7f667541ef12f4eafb75867c822cf98018de6ed37052d1c20f219e64781

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\varcarriagereturn"
        end

        def to_asciimath
          parsing_wrapper("varcarriagereturn")
        end

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

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

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

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