Sha256: e702d936882ac7d650362e3855a287c18be768c0fb57773a368be54a772b18e9

Contents?: true

Size: 901 Bytes

Versions: 2

Compression:

Stored size: 901 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rAngle"
        end

        def to_asciimath
          parsing_wrapper("rang")
        end

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

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

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

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