Sha256: 9b6f32b33c8cc31be254f44360f85b9288c7a815e087ea8df653d996b7663565

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\disjquant"
        end

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

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

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

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

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