Sha256: be8d6cd0ce099d6b07ffbc2ad789322771564847a9aad69dc4f7e253e83083cb

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\eighthnote"
        end

        def to_asciimath
          parsing_wrapper("eighthnote")
        end

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

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

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

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