Sha256: a9fa6f75dc3f1a645b68ba2469a19e9a9437058b637d95139c659097a31e584f

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/between.rb
plurimath-0.8.11 lib/plurimath/math/symbols/between.rb