Sha256: 7aca88816457acbf093ff472e9fe669443f99b4b40d72fb037af680780137ee2

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

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

        # output methods
        def to_latex
          "\\jmath"
        end

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

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

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

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

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