From 653fe396de606a6418c9bd8b3d9d11529e3d96f1 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Tue, 17 Dec 2024 11:29:42 -0500 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20=C3=A7=20and=20=C3=87=20commands,?= =?UTF-8?q?=20\cc=20and=20\CC,=20respectively.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/SwiftMath/MathRender/MTMathAtomFactory.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift b/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift index fe5f77d..839a808 100755 --- a/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift +++ b/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift @@ -101,8 +101,7 @@ public class MTMathAtomFactory { "check" : "\u{030C}", "vec" : "\u{20D7}", "widehat" : "\u{0302}", - "widetilde" : "\u{0303}", - "c" : "\u{0327}" + "widetilde" : "\u{0303}" ] private static let accentValueLock = NSLock() @@ -364,6 +363,8 @@ public class MTMathAtomFactory { "o" : MTMathAtom(type: .ordinary, value: "\u{00F8}"), "oe" : MTMathAtom(type: .ordinary, value: "\u{0153}"), "ss" : MTMathAtom(type: .ordinary, value: "\u{00DF}"), + "cc" : MTMathAtom(type: .ordinary, value: "ç"), + "CC" : MTMathAtom(type: .ordinary, value: "Ç"), "O" : MTMathAtom(type: .ordinary, value: "\u{00DB}"), "AE" : MTMathAtom(type: .ordinary, value: "\u{00C6}"), "OE" : MTMathAtom(type: .ordinary, value: "\u{0152}"), @@ -432,13 +433,13 @@ public class MTMathAtomFactory { "ã": ("tilde", "a"), "ñ": ("tilde", "n"), "õ": ("tilde", "o"), // Special characters - "ç": ("c", "c"), + "ç": ("cc", ""), "ø": ("o", ""), "å": ("aa", ""), "æ": ("ae", ""), "œ": ("oe", ""), "ß": ("ss", ""), - "'": ("upquote", ""), + "'": ("upquote", ""), // this may be dangerous in math mode // Upper case variants "Á": ("acute", "A"), "É": ("acute", "E"), "Í": ("acute", "I"), @@ -450,7 +451,7 @@ public class MTMathAtomFactory { "Ä": ("ddot", "A"), "Ë": ("ddot", "E"), "Ï": ("ddot", "I"), "Ö": ("ddot", "O"), "Ü": ("ddot", "U"), "Ã": ("tilde", "A"), "Ñ": ("tilde", "N"), "Õ": ("tilde", "O"), - "Ç": ("c", "C"), + "Ç": ("CC", ""), "Ø": ("O", ""), "Å": ("AA", ""), "Æ": ("AE", ""),