Skip to content

Commit

Permalink
Bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Halvani committed Jun 13, 2024
1 parent c50f215 commit 3650bf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions alphabetic/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,26 +949,25 @@ def by_language(self,
script = self.by_syllabary(self.Syllabary[language.name], as_list=True)
return script if as_list else {language.name : script}

elif language.name in logographic_dict:
if language.name in logographic_dict:
script = self.by_logographic(self.Logographic[language.name], as_list=True)
return script if as_list else {language.name : script}

elif language.name in featural_dict:
if language.name in featural_dict:
script = self.by_featural(self.Featural[language.name], as_list=True)
return script if as_list else {language.name : script}

elif language.name in abjad_dict:
if language.name in abjad_dict:
script = self.by_abjad(self.Abjad[language.name], as_list=True)
return script if as_list else {language.name : script}

elif language.name in abugida_dict:
if language.name in abugida_dict:
script = self.by_abugida(self.Abugida[language.name], as_list=True)
return script if as_list else {language.name : script}
else:
alphabet = alphabet_json[language_code]["script"]


# In case the given language has an alphabet, the following filters are optional.
# In case the given language has an alphabet, the following filters are optional.
# ---------------------------------------------------------------------------------------
if strip_diacritics:
diacritics = set(self.extract_diacritics(alphabet))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "alphabetic"
version = "0.0.5"
version = "0.0.6"
authors = [{name="Oren Halvani"}]
description = "A Python module for retrieving script types of writing systems including alphabets, abjads, abugidas, syllabaries, logographs, featurals as well as Latin script codes"
readme = "README.md"
Expand Down

0 comments on commit 3650bf6

Please sign in to comment.