diff --git a/Lib/gftools/utils.py b/Lib/gftools/utils.py index f6620f23e..9b73c029e 100644 --- a/Lib/gftools/utils.py +++ b/Lib/gftools/utils.py @@ -470,7 +470,7 @@ def _add_words(words, text, seen_chars): _add_words(words, uhdr, seen_chars) - if not words: + if len(seen_chars) < len(cmap): languages = LoadLanguages() for file, proto in languages.items(): if hasattr(proto, "sample_text"):