Skip to content

Commit

Permalink
quick
Browse files Browse the repository at this point in the history
  • Loading branch information
Mart Lubbers committed Sep 7, 2015
1 parent 513694b commit 040c583
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions align.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,17 @@ def parsesettings(filepath):
logging.info('Unicode error')
with open('temp.status', 'w') as f:
f.write('unicode')
exit()
except IOError as e:
if e.filename == sett['DCT']:
error = 'dictnotfound'
elif e.filename == sett['RUL']:
error = 'rulnotfound'
else:
error = 'generalio'
with open('temp.status', 'w') as f:
f.write(error)
exit()

exp = sett['LAN'] == 'exp'
p = phone[1]
Expand Down
6 changes: 6 additions & 0 deletions alignannotation.praat
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ elif returnstatus$ == "mishvite"
pause HVite couldn't be found, please set it manually in the settings window
elif returnstatus$ == "unicode"
pause Error parsing dictionary or ruleset. Is the encoding UTF-8?
elif returnstatus$ == "dictnotfound"
pause Dictionary file not accessible, does it still exist?
elif returnstatus$ == "rulnotfound"
pause Ruleset file not accessible, does it still exist?
elif returnstatus$ == "generalio"
pause Unknown IO error
endif

# Reset pitch, intensity and spectrum if they were unset before
Expand Down
2 changes: 1 addition & 1 deletion book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ \section{Version history}
& \tabitem Added language for using the general sampa model without
phonetizer.\\
& \tabitem Created a better error when loading rulesets or dictionaries in
non supported encodings.\\
non supported encodings or non existent files.\\
& \tabitem Changed the licence to MIT.\\
\hline
1.50 (2015-07-07) & \tabitem Spanish models merged in original master.\\
Expand Down

0 comments on commit 040c583

Please sign in to comment.