Hi, this PR is successor of PR #107 made by PocketMiner82 (With his approve)
Main goal of PR is to change entitiy name if it contain symbol | as it cause problems when speaking dialogs. Text after | is not read.
To preserve enitity name in original, text normalization is done only to dialogs.
New internal function _speak_dialog is presented and used with a new decorator function normalize_dialog to handle text normalization a hand it then to standard speak_dialog. Not only entity name is normalized.
Type of PR
[x] Bugfix
[ ] Feature implementation
[ ] Refactor of code (without functional changes)
[ ] Documentation improvements
[ ] Test improvements
Testing
New unittests are present for a new functions.
Documentation
All new functions have a basic informaition in docstrings.
Description
Hi, this PR is successor of PR #107 made by PocketMiner82 (With his approve)
Main goal of PR is to change entitiy name if it contain symbol
|
as it cause problems when speaking dialogs. Text after|
is not read.To preserve enitity name in original, text normalization is done only to dialogs.
New internal function
_speak_dialog
is presented and used with a new decorator functionnormalize_dialog
to handle text normalization a hand it then to standardspeak_dialog
. Not only entity name is normalized.Type of PR
Testing
New unittests are present for a new functions.
Documentation
All new functions have a basic informaition in docstrings.