Sha256: ecf5a27efcd5b67111c184f703673aef8f2bced696ef52bfbcb3e68b61f7af2d

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sixteenthnote"
        end

        def to_asciimath
          parsing_wrapper("sixteenthnote")
        end

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

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

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

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