Sha256: f76da17d021090f0394e6d7341ba84c43d5b7863b2c4472edfc3439c3598a90d

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\isinE"
        end

        def to_asciimath
          parsing_wrapper("isinE", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x22f9;"
        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/isine.rb
plurimath-0.8.13 lib/plurimath/math/symbols/isine.rb