Sha256: b7325be04a893bfa4711fe0291f0ca60af48661f6a32bf43509b13b41a09e57c
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
module Plurimath module Math module Symbols class Dd < Symbol INPUT = { unicodemath: [["dd", "ⅆ"], parsing_wrapper(["DifferentialD"], lang: :unicode)], asciimath: [["ⅆ"], parsing_wrapper(["dd", "DifferentialD"], lang: :asciimath)], mathml: ["ⅆ"], latex: [["DifferentialD", "dd", "ⅆ"]], omml: ["ⅆ"], html: ["ⅆ"], }.freeze # output methods def to_latex "\\DifferentialD" end def to_asciimath parsing_wrapper("dd", 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 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.14 | lib/plurimath/math/symbols/dd.rb |
plurimath-0.8.13 | lib/plurimath/math/symbols/dd.rb |