Sha256: 63fc981095a6dce0da46381c16ed549dbcca8aecb32b9dfbc4f5437bca3ca307

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fisheye"
        end

        def to_asciimath
          parsing_wrapper("fisheye")
        end

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

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

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

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