Sha256: b46e594b5475f6b26140e347b9d2f8c48359f1ecd604dd646fe2c1eea75a0e5a

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\between"
        end

        def to_asciimath
          parsing_wrapper("between", lang: :asciimath)
        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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/between.rb
plurimath-0.8.13 lib/plurimath/math/symbols/between.rb