Skip to content

Commit

Permalink
Merge pull request #24 from EricWilbanks/debug_p_flag
Browse files Browse the repository at this point in the history
Syllabification and Hiatus Fixes
  • Loading branch information
EricWilbanks committed Oct 14, 2022
2 parents 9c10e16 + 4db43ba commit 004d7db
Show file tree
Hide file tree
Showing 6 changed files with 832 additions and 827 deletions.
10 changes: 3 additions & 7 deletions bin/faseAlign
Original file line number Diff line number Diff line change
Expand Up @@ -736,13 +736,9 @@ def process_tg_intervals(tmppath,output_intervals,args_syllables,custom_words):
word_e = entry[1]
phones = [p for p in output_intervals[speaker]["phones"] if ((p[0] >= word_s) and (p[1] <= word_e))] # all phones which fall within word times

# override phones generated from spanish_word() for words defined in the custom dictionary
if entry[2] in custom_words:
# setting custom_phones to be just the phone label, e[2], for all entries in output phones
current = spanish_word(entry[2], override = True, custom_phones = [e[2] for e in phones])
else:
current = spanish_word(entry[2])

# override phones generated from spanish_word() for words defined in dictionaries
current = spanish_word(entry[2], override = True, custom_phones = [e[2] for e in phones])

# sanity check that custom phone override process was successful
if len(phones) != len(current.phones):
print('WARNING! - unequal phone numbers: ' + str(phones) + ' - ' + str(current.phones))
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

Changelog
=========
#. **Version 1.1.14**: October 13, 2022

#. Fixed issue where words in `dict_sort` whose pronunciations differ from the automatic phonemicizations would cause syllabification to fail with an IndexError.
#. Fixed issue where syllabification could fail when custom dictionaries weren't also enabled.
#. Fixed issue where digraphs (NY and CH) were not correctly treated when syllabifying words from custom dictionaries.

#. **Version 1.1.13**: June 12, 2021

#. Fixed bug where custom dictionary entries (-m) did not correctly interact with automatic syllabification (-y)
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = '1.1.13'
version = '1.1.14'
# The full version, including alpha/beta/rc tags.
release = '1.1.13'
release = '1.1.14'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 004d7db

Please sign in to comment.