etchen commited on
Commit
c88c23b
·
verified ·
1 Parent(s): 912ccda

Update TaiwaneseHokkien.py

Browse files
Files changed (1) hide show
  1. TaiwaneseHokkien.py +3 -3
TaiwaneseHokkien.py CHANGED
@@ -22,9 +22,9 @@ class TaiwaneseHokkien(Language):
22
  for i in min(len(target_pron), len(user_pron)):
23
  target_syls = [x for x in target_pron[i].split('-') if x]
24
  user_syls = [x for x in user_pron[i].split('-') if x]
25
- for j in min(len(target_syls), len(user_syls));
26
- target_syl = util._Converter__get_number_tone(target_syls[i])
27
- user_syl = util._Converter__get_number_tone(user_syls[i])
28
  til = get_initial_length(target_syl)
29
  uil = get_initial_length(user_syl)
30
  if target_syl[:til] != user_syl[:uil]:
 
22
  for i in min(len(target_pron), len(user_pron)):
23
  target_syls = [x for x in target_pron[i].split('-') if x]
24
  user_syls = [x for x in user_pron[i].split('-') if x]
25
+ for j in min(len(target_syls), len(user_syls)):
26
+ target_syl = util._Converter__get_number_tone(target_syls[j])
27
+ user_syl = util._Converter__get_number_tone(user_syls[j])
28
  til = get_initial_length(target_syl)
29
  uil = get_initial_length(user_syl)
30
  if target_syl[:til] != user_syl[:uil]: