@@ -311,12 +311,14 @@ sText = sText.replace(" ", ' ') # nbsp if " " in sText: sText = sText.replace(" ", ' ') # nnbsp if "'" in sText: sText = sText.replace("'", "’") + if "‐" in sText: + sText = sText.replace("‐", "-") # Hyphen (U+2010) if "‑" in sText: - sText = sText.replace("‑", "-") # nobreakdash + sText = sText.replace("‑", "-") # Non-Breaking Hyphen (U+2011) if "@@" in sText: sText = re.sub("@@+", "", sText) return sText def parseText (self, sText, sText0, bParagraph, nOffset, sCountry, dOptions, bShowRuleId, bDebug, bContext):