Don't count Unknown towards additional scripts count (mixed_unicode.py)

This commit is contained in:
jesopo 2018-11-20 14:17:46 +00:00
parent 549c12da10
commit 80dd3bb5e1

View file

@ -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: