diff --git a/gramps/gen/soundex.py b/gramps/gen/soundex.py index 28035d6dd..f062c0f08 100644 --- a/gramps/gen/soundex.py +++ b/gramps/gen/soundex.py @@ -52,6 +52,8 @@ def soundex(strval): return "Z000" strval = strval.decode('ASCII', 'ignore') str2 = strval[0] + translator = strval.maketrans('','',IGNORE) + strval = strval.translate(translator) strval = strval.translate(TABLE) if not strval: return "Z000"