Sha256: c8a3b8746111751348e09cd45d45b84253f2abffa0bafa685868f222aaa35d51

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\angdnr"
        end

        def to_asciimath
          parsing_wrapper("angdnr")
        end

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

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

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

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