Sha256: 960453cd8f672e515d2a5ac611617a6026f8a4963e5eff1e6c2a905e5f47b819

Contents?: true

Size: 878 Bytes

Versions: 7

Compression:

Stored size: 878 Bytes

Contents

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

        # output methods
        def to_latex
          "\\neuter"
        end

        def to_asciimath
          parsing_wrapper("neuter")
        end

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

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

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

        def to_html
          "&#x26b2;"
        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/neuter.rb
plurimath-0.8.9 lib/plurimath/math/symbols/neuter.rb
plurimath-0.8.8 lib/plurimath/math/symbols/neuter.rb
plurimath-0.8.7 lib/plurimath/math/symbols/neuter.rb
plurimath-0.8.6 lib/plurimath/math/symbols/neuter.rb
plurimath-0.8.5 lib/plurimath/math/symbols/neuter.rb
plurimath-0.8.4 lib/plurimath/math/symbols/neuter.rb