Sha256: ec53238638a81a0e3b78e45fb6a8ff477b2fabcf7a75dd7987c477bd96ca6b9e

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Angmsd < Symbol
        INPUT = {
          unicodemath: [["angmsd", "&#x2221;"], parsing_wrapper(["measuredangle"], lang: :unicode)],
          asciimath: [["&#x2221;"], parsing_wrapper(["angmsd", "measuredangle"], lang: :asciimath)],
          mathml: ["&#x2221;"],
          latex: [["measuredangle", "&#x2221;"], parsing_wrapper(["angmsd"], lang: :latex)],
          omml: ["&#x2221;"],
          html: ["&#x2221;"],
        }.freeze

        # output methods
        def to_latex
          "\\measuredangle"
        end

        def to_asciimath
          parsing_wrapper("angmsd", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2221;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/angmsd.rb
plurimath-0.8.13 lib/plurimath/math/symbols/angmsd.rb