14
14
15
15
__author__ = 'Lasha Gogua'
16
16
17
- __version__ = '0.2.0 '
17
+ __version__ = '0.2.1 '
18
18
19
19
__all__ = ['GeoLangToolKit' , 'encode_slugify' , 'encode_text' ]
20
20
@@ -23,7 +23,7 @@ class GeoLangToolKit(object):
23
23
24
24
def __init__ (
25
25
self ,
26
- ka2latin_script : Union [str , List [str ], Tuple [Iterable [str ]]] = None
26
+ latin_script : Union [str , List [str ], Tuple [Iterable [str ]]] = None
27
27
) -> None :
28
28
"""
29
29
Romanization of Georgian is the process of transliterating the Georgian
@@ -48,16 +48,16 @@ def __init__(
48
48
"""
49
49
self .ka_script : str = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ'
50
50
51
- if isinstance (ka2latin_script , (list , tuple )):
52
- self .latin_script = ka2latin_script
53
- elif isinstance (ka2latin_script , str ):
54
- if len (ka2latin_script ) < 33 :
51
+ if isinstance (latin_script , (list , tuple )):
52
+ self .latin_script = latin_script
53
+ elif isinstance (latin_script , str ):
54
+ if len (latin_script ) < 33 :
55
55
raise ValueError (
56
56
'Wrong latin script characters, available list, '
57
57
'tuple or comma separated string, max length 33.'
58
58
)
59
59
else :
60
- self .latin_script = ka2latin_script .split (',' )
60
+ self .latin_script = latin_script .split (',' )
61
61
else :
62
62
self .latin_script : Iterable [str ] = (
63
63
'a' , 'b' , 'g' , 'd' , 'e' , 'v' , 'z' , 't' , 'i' , 'k' , 'l' , 'm' ,
0 commit comments