Added the complete list of horizontal text quote marks in unicode format from wikipedia

This commit is contained in:
Veronica K. B. Olsen
2019-06-11 16:14:33 +02:00
parent 213bafe61e
commit 4b72c856c8
2 changed files with 53 additions and 10 deletions
+3 -10
View File
@@ -23,7 +23,8 @@ from PyQt5.QtWidgets import (
QWidget, QTabWidget, QDialogButtonBox, QSpinBox, QGroupBox, QComboBox, QMessageBox,
QCheckBox, QGridLayout, QFontComboBox
)
from nw.enum import nwAlert
from nw.enum import nwAlert
from nw.constants import nwQuotes
logger = logging.getLogger(__name__)
@@ -460,17 +461,9 @@ class GuiConfigEditEditor(QWidget):
##
def _checkQuoteSymbol(self, toCheck):
validOnes = [
"\"","'",
"","","",
"","","",
"«","»","","",
"","","","",
"","","",""
]
if len(toCheck) != 1:
return False
if toCheck in validOnes:
if toCheck in nwQuotes.SYMBOLS:
return True
return False