Spaces:
Sleeping
Sleeping
Update TaiwaneseHokkien.py
Browse files- TaiwaneseHokkien.py +2 -2
TaiwaneseHokkien.py
CHANGED
@@ -20,10 +20,10 @@ class TaiwaneseHokkien(Language):
|
|
20 |
target_pron = target_pron.lower().split()
|
21 |
user_pron = user_pron.lower().split()
|
22 |
result = []
|
23 |
-
for i in min(len(target_pron), len(user_pron)):
|
24 |
target_syls = [x for x in target_pron[i].split('-') if x]
|
25 |
user_syls = [x for x in user_pron[i].split('-') if x]
|
26 |
-
for j in min(len(target_syls), len(user_syls)):
|
27 |
target_syl = util._Converter__get_number_tone(target_syls[j])
|
28 |
user_syl = util._Converter__get_number_tone(user_syls[j])
|
29 |
til = get_initial_length(target_syl)
|
|
|
20 |
target_pron = target_pron.lower().split()
|
21 |
user_pron = user_pron.lower().split()
|
22 |
result = []
|
23 |
+
for i in range(min(len(target_pron), len(user_pron))):
|
24 |
target_syls = [x for x in target_pron[i].split('-') if x]
|
25 |
user_syls = [x for x in user_pron[i].split('-') if x]
|
26 |
+
for j in range(min(len(target_syls), len(user_syls))):
|
27 |
target_syl = util._Converter__get_number_tone(target_syls[j])
|
28 |
user_syl = util._Converter__get_number_tone(user_syls[j])
|
29 |
til = get_initial_length(target_syl)
|