Skip to content

Commit

Permalink
1.5.7 patch: language ID/names tweaked so LoC table is parsed to get …
Browse files Browse the repository at this point in the history
…'modern' lang name
  • Loading branch information
mubaldino committed Apr 3, 2024
1 parent 8121150 commit 7c9b8cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion python/opensextant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,12 @@ def add_language(lg: Language, override=False):

if lg.names:
for nm in lg.names:
codes.append(nm.lower())
lang_name_norm = nm.lower()
codes.append(lang_name_norm)
if "modern" in lang_name_norm:
nm2 = get_list(lang_name_norm, delim=",")[0]
codes.append(nm2)
override = True

for k in set(codes):
if k in language_map and not override:
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='opensextant',
version='1.5.6',
version='1.5.7',

description='OpenSextant APIs and Utilities',
long_description=long_description,
Expand Down

0 comments on commit 7c9b8cf

Please sign in to comment.