Sha256: 5b0942f05c8d82b6323c844315f1976f9de5a6b5968130e7b5bd1a164214e4eb

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

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

        # output methods
        def to_latex
          "\\measanglerutone"
        end

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

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

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

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

        def to_html
          "&#x29a8;"
        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/measanglerutone.rb
plurimath-0.8.13 lib/plurimath/math/symbols/measanglerutone.rb