Sha256: f4833840a4a5f091b7fd9cd4a488de20deceef4b18ac8071cc79de9a62aef00d
Contents?: true
Size: 1.2 KB
Versions: 7
Compression:
Stored size: 1.2 KB
Contents
module Plurimath module Math module Symbols class Jj < Symbol INPUT = { unicodemath: [["jj", "ⅉ"], parsing_wrapper(["ComplexJ"], lang: :unicode)], asciimath: [["ⅉ"], parsing_wrapper(["jj", "ComplexJ"], lang: :asciimath)], mathml: ["ⅉ"], latex: [["ComplexJ", "jj", "ⅉ"]], omml: ["ⅉ"], html: ["ⅉ"], }.freeze # output methods def to_latex(**) "\\ComplexJ" end def to_asciimath(**) parsing_wrapper("jj", lang: :asciimath) end def to_unicodemath(**) Utility.html_entity_to_unicode("ⅉ") 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
7 entries across 7 versions & 1 rubygems