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