Sha256: c192e4d784b13542380cc7994e774f1808afbfd21c66f6f0a0c6b959d6c7a518

Contents?: true

Size: 865 Bytes

Versions: 7

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\between"
        end

        def to_asciimath
          parsing_wrapper("between")
        end

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

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

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

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