Sha256: bfe1e7d5557acad14f580f45a5aab765c3900434435b827a935c1b2e84f5296d
Contents?: true
Size: 1.16 KB
Versions: 10
Compression:
Stored size: 1.16 KB
Contents
module Plurimath module Math module Symbols class Ii < Symbol INPUT = { unicodemath: [["ii", "ⅈ"], parsing_wrapper(["ComplexI"], lang: :unicode)], asciimath: [["ⅈ"], parsing_wrapper(["ii", "ComplexI"], lang: :asciimath)], mathml: ["ⅈ"], latex: [["ComplexI", "ii", "ⅈ"]], omml: ["ⅈ"], html: ["ⅈ"], }.freeze # output methods def to_latex(**) "\\ComplexI" end def to_asciimath(**) parsing_wrapper("ii", lang: :asciimath) end def to_unicodemath(**) encoded end def to_mathml_without_math_tag(intent, **) attributes = { intent: encoded } if intent ox_element("mi", attributes: attributes) << "ⅈ" end def to_omml_without_math_tag(_, **) "ⅈ" end def to_html(**) "ⅈ" end def intent_names { name: encoded } end private def encoded Utility.html_entity_to_unicode("ⅈ") end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems