Sha256: c71eead10f52d43aa8ecce1ec35482f257ca7ddda703b3581d3aa7785e9785ea
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
module Plurimath module Math module Symbols class Ii < Symbol INPUT = { unicodemath: [["ii", "ⅈ"], parsing_wrapper(["ComplexI"])], asciimath: [["ⅈ"], parsing_wrapper(["ii", "ComplexI"])], mathml: ["ⅈ"], latex: [["ComplexI", "ii", "ⅈ"]], omml: ["ⅈ"], html: ["ⅈ"], }.freeze # output methods def to_latex "\\ComplexI" end def to_asciimath parsing_wrapper("ii") 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 private def encoded Utility.html_entity_to_unicode("ⅈ") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.8.12 | lib/plurimath/math/symbols/ii.rb |
plurimath-0.8.11 | lib/plurimath/math/symbols/ii.rb |