Sha256: 5a2f430928815d38cb9a95974f4a3ba782d626e52cc06c26bcfd11ae9f2987ab

Contents?: true

Size: 928 Bytes

Versions: 9

Compression:

Stored size: 928 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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/between.rb
plurimath-0.8.22 lib/plurimath/math/symbols/between.rb
plurimath-0.8.21 lib/plurimath/math/symbols/between.rb
plurimath-0.8.20 lib/plurimath/math/symbols/between.rb
plurimath-0.8.19 lib/plurimath/math/symbols/between.rb
plurimath-0.8.18 lib/plurimath/math/symbols/between.rb
plurimath-0.8.17 lib/plurimath/math/symbols/between.rb
plurimath-0.8.16 lib/plurimath/math/symbols/between.rb
plurimath-0.8.15 lib/plurimath/math/symbols/between.rb