Sha256: 26ea588004db486eeb8ee2d487be0584cecdf3686ce7d491593156a2e1cccf3e

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Rightturn < Symbol
        INPUT = {
          unicodemath: [["circlearrowright", "&#x21bb;"], parsing_wrapper(["cwopencirclearrow", "rightturn"])],
          asciimath: [["&#x21bb;"], parsing_wrapper(["circlearrowright", "cwopencirclearrow", "rightturn"])],
          mathml: ["&#x21bb;"],
          latex: [["cwopencirclearrow", "circlearrowright", "rightturn", "&#x21bb;"]],
          omml: ["&#x21bb;"],
          html: ["&#x21bb;"],
        }.freeze

        # output methods
        def to_latex
          "\\cwopencirclearrow"
        end

        def to_asciimath
          parsing_wrapper("rightturn")
        end

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

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

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

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