Exclude improperly named entries from ISO-639-3

Fixes #1851909 [Some strange languages is shown in the list](https://bugs.launchpad.net/calibre/+bug/1851909)
This commit is contained in:
Kovid Goyal 2019-11-09 13:46:46 +05:30
parent 5fbfe3fb36
commit 4feb684c89
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -813,6 +813,8 @@ class ISO639(Command): # {{{
name = x.get('name')
if name:
name = unicode_type(name)
if not name or name[0] in '!~=/\'"':
continue
if two is not None:
by_2[two] = name