From 9eeb7897f14eb80e45215dff6a0a886c0c6e0dda Mon Sep 17 00:00:00 2001 From: cidoku Date: Sun, 23 Feb 2025 15:32:09 -0300 Subject: [PATCH] have autocaps deal with some more closing special chars --- gameview.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gameview.py b/gameview.py index a18bc1d..2c5eae5 100644 --- a/gameview.py +++ b/gameview.py @@ -1924,7 +1924,7 @@ class gui(QtGui.QWidget): l = QtCore.QStringList(list(text)) l[0] = l[0].toUpper() - last = [".", "?", "!"] + last = [".", "?", "!", ")", "]"] if not l[-1] in last: l.append(".") text = l.join("").replace(" i ", " I ").replace("i'm", "I'm").replace("it's", "It's") @@ -1939,15 +1939,13 @@ class gui(QtGui.QWidget): def onICreturn(self): text = str(self.icchatinput.text().toUtf8()).replace('#', '').replace('%', '').replace('&', '').replace('$', '')#.replace('/n', '\n') - #if not text: - # return if self.mocktext.isChecked(): text = mockStr(text) if self.autocaps.isChecked(): l = list(text) l[0] = l[0].upper() - last = [".", "?", "!"] + last = [".", "?", "!", "<", ">", ")", "]"] if not l[-1] in last: l.append(".") text = "".join(l).replace(" i ", " I ").replace("i'm", "I'm").replace("it's", "It's")