Sha256: 59857a6af22a14cbd2088e51d48addb361c1c78faf2ebaeb058c57a3fd00aa4e

Contents?: true

Size: 906 Bytes

Versions: 9

Compression:

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

9 entries across 9 versions & 1 rubygems

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