Remove the alternative double apostrophe again
This commit is contained in:
@@ -234,7 +234,6 @@ class nwUnicode:
|
|||||||
U_EMDASH = "\u2014" # Long dash
|
U_EMDASH = "\u2014" # Long dash
|
||||||
U_HELLIP = "\u2026" # Ellipsis
|
U_HELLIP = "\u2026" # Ellipsis
|
||||||
U_MAPOSS = "\u02bc" # Modifier letter single apostrophe
|
U_MAPOSS = "\u02bc" # Modifier letter single apostrophe
|
||||||
U_MAPOSD = "\u02ee" # Modifier letter double apostrophe
|
|
||||||
|
|
||||||
## Spaces and Lines
|
## Spaces and Lines
|
||||||
U_NBSP = "\u00a0" # Non-breaking space
|
U_NBSP = "\u00a0" # Non-breaking space
|
||||||
@@ -286,7 +285,6 @@ class nwUnicode:
|
|||||||
H_EMDASH = "—"
|
H_EMDASH = "—"
|
||||||
H_HELLIP = "…"
|
H_HELLIP = "…"
|
||||||
H_MAPOSS = "ʼ"
|
H_MAPOSS = "ʼ"
|
||||||
H_MAPOSD = "ˮ"
|
|
||||||
|
|
||||||
## Spaces
|
## Spaces
|
||||||
H_NBSP = " "
|
H_NBSP = " "
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ class nwDocInsert(Enum):
|
|||||||
QUOTE_LD = 10
|
QUOTE_LD = 10
|
||||||
QUOTE_RD = 11
|
QUOTE_RD = 11
|
||||||
MODAPOS_S = 12
|
MODAPOS_S = 12
|
||||||
MODAPOS_D = 13
|
|
||||||
|
|
||||||
# END Enum nwDocInsert
|
# END Enum nwDocInsert
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ class ToHtml(Tokenizer):
|
|||||||
nwUnicode.U_THNSP : nwUnicode.H_THNSP,
|
nwUnicode.U_THNSP : nwUnicode.H_THNSP,
|
||||||
nwUnicode.U_THNBSP : nwUnicode.H_THNBSP,
|
nwUnicode.U_THNBSP : nwUnicode.H_THNBSP,
|
||||||
nwUnicode.U_MAPOSS : nwUnicode.H_RSQUO,
|
nwUnicode.U_MAPOSS : nwUnicode.H_RSQUO,
|
||||||
nwUnicode.U_MAPOSD : nwUnicode.H_RDQUO,
|
|
||||||
}
|
}
|
||||||
self.revDict = {}
|
self.revDict = {}
|
||||||
self.reReplace = []
|
self.reReplace = []
|
||||||
|
|||||||
@@ -614,8 +614,6 @@ class GuiDocEditor(QTextEdit):
|
|||||||
theText = nwUnicode.U_HELLIP
|
theText = nwUnicode.U_HELLIP
|
||||||
elif theInsert == nwDocInsert.MODAPOS_S:
|
elif theInsert == nwDocInsert.MODAPOS_S:
|
||||||
theText = nwUnicode.U_MAPOSS
|
theText = nwUnicode.U_MAPOSS
|
||||||
elif theInsert == nwDocInsert.MODAPOS_D:
|
|
||||||
theText = nwUnicode.U_MAPOSD
|
|
||||||
elif theInsert == nwDocInsert.QUOTE_LS:
|
elif theInsert == nwDocInsert.QUOTE_LS:
|
||||||
theText = self.typSQOpen
|
theText = self.typSQOpen
|
||||||
elif theInsert == nwDocInsert.QUOTE_RS:
|
elif theInsert == nwDocInsert.QUOTE_RS:
|
||||||
|
|||||||
+2
-9
@@ -554,20 +554,13 @@ class GuiMainMenu(QMenuBar):
|
|||||||
# Insert > Separator
|
# Insert > Separator
|
||||||
self.insertMenu.addSeparator()
|
self.insertMenu.addSeparator()
|
||||||
|
|
||||||
# Insert > Alt. Single Apostrophe
|
# Insert > Alternative Apostrophe
|
||||||
self.aInsMSApos = QAction("Alt. Single Apostrophe", self)
|
self.aInsMSApos = QAction("Alternative Apostrophe", self)
|
||||||
self.aInsMSApos.setStatusTip("Insert unicode modifier letter single apostrophe")
|
self.aInsMSApos.setStatusTip("Insert unicode modifier letter single apostrophe")
|
||||||
self.aInsMSApos.setShortcut("Ctrl+K, '")
|
self.aInsMSApos.setShortcut("Ctrl+K, '")
|
||||||
self.aInsMSApos.triggered.connect(lambda: self._docInsert(nwDocInsert.MODAPOS_S))
|
self.aInsMSApos.triggered.connect(lambda: self._docInsert(nwDocInsert.MODAPOS_S))
|
||||||
self.insertMenu.addAction(self.aInsMSApos)
|
self.insertMenu.addAction(self.aInsMSApos)
|
||||||
|
|
||||||
# Insert > Alt. Double Apostrophe
|
|
||||||
self.aInsMDApos = QAction("Alt. Double Apostrophe", self)
|
|
||||||
self.aInsMDApos.setStatusTip("Insert unicode modifier letter double apostrophe")
|
|
||||||
self.aInsMDApos.setShortcut("Ctrl+K, \"")
|
|
||||||
self.aInsMDApos.triggered.connect(lambda: self._docInsert(nwDocInsert.MODAPOS_D))
|
|
||||||
self.insertMenu.addAction(self.aInsMDApos)
|
|
||||||
|
|
||||||
# Insert > Separator
|
# Insert > Separator
|
||||||
self.insertMenu.addSeparator()
|
self.insertMenu.addSeparator()
|
||||||
|
|
||||||
|
|||||||
@@ -1040,7 +1040,6 @@ class GuiMain(QMainWindow):
|
|||||||
self.addAction(self.mainMenu.aInsQuoteLD)
|
self.addAction(self.mainMenu.aInsQuoteLD)
|
||||||
self.addAction(self.mainMenu.aInsQuoteRD)
|
self.addAction(self.mainMenu.aInsQuoteRD)
|
||||||
self.addAction(self.mainMenu.aInsMSApos)
|
self.addAction(self.mainMenu.aInsMSApos)
|
||||||
self.addAction(self.mainMenu.aInsMDApos)
|
|
||||||
self.addAction(self.mainMenu.aInsHardBreak)
|
self.addAction(self.mainMenu.aInsHardBreak)
|
||||||
self.addAction(self.mainMenu.aInsNBSpace)
|
self.addAction(self.mainMenu.aInsNBSpace)
|
||||||
self.addAction(self.mainMenu.aInsThinSpace)
|
self.addAction(self.mainMenu.aInsThinSpace)
|
||||||
|
|||||||
Reference in New Issue
Block a user