From 80dd3bb5e1abd3e137fe01ced3386e6845080aa6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 20 Nov 2018 14:17:46 +0000 Subject: [PATCH] Don't count Unknown towards additional scripts count (mixed_unicode.py) --- modules/mixed_unicode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mixed_unicode.py b/modules/mixed_unicode.py index 58218829..c03dbd1c 100644 --- a/modules/mixed_unicode.py +++ b/modules/mixed_unicode.py @@ -62,8 +62,8 @@ class Module(ModuleManager.BaseModule): last_was_separator = True else: script = self._detect_script(char) - scripts.add(script) if not script == Script.Unknown: + scripts.add(script) if last_script and not script == last_script: reasons.append(ScoreReason.ScriptChange) if not last_was_separator: