Sha256: 16a17653df236492e1f9320795c1fb93b713bf6b68cb88473466885d27d76d54

Contents?: true

Size: 878 Bytes

Versions: 7

Compression:

Stored size: 878 Bytes

Contents

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

        # output methods
        def to_latex
          "\\niobar"
        end

        def to_asciimath
          parsing_wrapper("niobar")
        end

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

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

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

        def to_html
          "&#x22fe;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.9 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.8 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.7 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.6 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.5 lib/plurimath/math/symbols/niobar.rb
plurimath-0.8.4 lib/plurimath/math/symbols/niobar.rb