-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed argument ka2latin_script to latin_script
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
__author__ = 'Lasha Gogua' | ||
__email__ = '[email protected]' | ||
__version__ = '0.2.0' | ||
__version__ = '0.2.1' | ||
|
||
__all__ = ['GeoLangToolKit', 'encode_slugify', 'encode_text'] | ||
|
||
|
@@ -23,7 +23,7 @@ class GeoLangToolKit(object): | |
|
||
def __init__( | ||
self, | ||
ka2latin_script: Union[str, List[str], Tuple[Iterable[str]]] = None | ||
latin_script: Union[str, List[str], Tuple[Iterable[str]]] = None | ||
) -> None: | ||
""" | ||
Romanization of Georgian is the process of transliterating the Georgian | ||
|
@@ -48,16 +48,16 @@ def __init__( | |
""" | ||
self.ka_script: str = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ' | ||
|
||
if isinstance(ka2latin_script, (list, tuple)): | ||
self.latin_script = ka2latin_script | ||
elif isinstance(ka2latin_script, str): | ||
if len(ka2latin_script) < 33: | ||
if isinstance(latin_script, (list, tuple)): | ||
self.latin_script = latin_script | ||
elif isinstance(latin_script, str): | ||
if len(latin_script) < 33: | ||
raise ValueError( | ||
'Wrong latin script characters, available list, ' | ||
'tuple or comma separated string, max length 33.' | ||
) | ||
else: | ||
self.latin_script = ka2latin_script.split(',') | ||
self.latin_script = latin_script.split(',') | ||
else: | ||
self.latin_script: Iterable[str] = ( | ||
'a', 'b', 'g', 'd', 'e', 'v', 'z', 't', 'i', 'k', 'l', 'm', | ||
|