Skip to content

don't speak unless given text, ignore > and <#4706

Merged
Kebap merged 39 commits intodevelopmentfrom
tts_dont_speak
Feb 2, 2021
Merged

don't speak unless given text, ignore > and <#4706
Kebap merged 39 commits intodevelopmentfrom
tts_dont_speak

Conversation

@Kebap
Copy link
Copy Markdown
Contributor

@Kebap Kebap commented Jan 29, 2021

Brief overview of PR changes/additions

only feed text to TTS engine when it contains more than whitespace, but remove > and < characters before

Motivation for adding to Mudlet

fix #4688
fix #4689

Other info (issues closed, discussion etc)

May be worthwile to raise this bug upsteam, but no idea how to build a minimal example without too much effort

@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 29, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@Kebap
Copy link
Copy Markdown
Contributor Author

Kebap commented Jan 29, 2021

Works for me, please review.

@Kebap Kebap marked this pull request as ready for review January 29, 2021 00:43
@Kebap Kebap requested a review from a team as a code owner January 29, 2021 00:43
@Kebap Kebap requested review from a team January 29, 2021 00:43
@atari2600tim
Copy link
Copy Markdown
Contributor

Works good on Windows 10, and code logic looks sensible enough.

Co-authored-by: mudlet-machine-account <mudlet-machine-account@users.noreply.github.com>
Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I'd return nil+msg in case the text is autogenerated and someone wonders why isn't it doing anything

Co-authored-by: mudlet-machine-account <mudlet-machine-account@users.noreply.github.com>
@Kebap
Copy link
Copy Markdown
Contributor Author

Kebap commented Jan 29, 2021

return nil+msg

I was pondering that also.
In that case, need to await #4678 merged though.

evilmog and others added 7 commits January 29, 2021 10:34
* Fixes problem blocking compilation of TMxpSendTagHandlerTest

- Extracts TMediaData to a header in order to remove dependencies on MediaPlayer in testing environment

* Adds override specifier to TMxpStubClient functions
Retitled from:
"BugFix: correctly evaluate room m(in|ax)(x|y) values in all cases"

We previously set them all to be 0.0 when there is no custom lines but
technically, since they are supposed to be extremes of the room and it's
custom exit lines they should be initialised to the room's own coordinates.

Not doing this meant that in some cases they were being used but they
did not hold sensible values.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@Kebap
Copy link
Copy Markdown
Contributor Author

Kebap commented Jan 30, 2021

Enhanced this scope to include #4689 as well. Need to review again.

There is double code now, but did not refactor.
My c fu wasn't strong enough.

@Kebap Kebap changed the title don't speak unless given text don't speak unless given text, ignore > and < Jan 30, 2021
SlySven and others added 8 commits January 30, 2021 23:12
This is an error that slipped in as a result of #4526 and resulted in the
exit room id being stored as the special exit name in the BGL graph that is
built for the A* search algorithm to work on. Consquently if that route was
used in a path the special exit command produced for that step was garbage
which also tripped off warnings about invalid characters being sent to the
MUD as an exit direction.

Thanks to @ryanstadther for bringing this to my attention!

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
This should close #4682.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@Kebap Kebap requested a review from a team February 1, 2021 10:15
@Kebap
Copy link
Copy Markdown
Contributor Author

Kebap commented Feb 1, 2021

Oh no, I push/pulled in a wrong way, now many recent commits from development (?) are shown here as well..

@Kebap
Copy link
Copy Markdown
Contributor Author

Kebap commented Feb 1, 2021

Those last 3 commits were the actual ones intended.
Ready for review.

@Kebap Kebap merged commit faad424 into development Feb 2, 2021
@Kebap Kebap deleted the tts_dont_speak branch February 2, 2021 09:14
@atari2600tim
Copy link
Copy Markdown
Contributor

fixes #3108

@Kebap Kebap restored the tts_dont_speak branch February 3, 2021 08:57
vadi2 added a commit to vadi2/Mudlet that referenced this pull request Feb 3, 2021
vadi2 added a commit that referenced this pull request Feb 3, 2021
@Kebap Kebap mentioned this pull request Feb 3, 2021
@Kebap Kebap deleted the tts_dont_speak branch February 3, 2021 13:28
Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTS does not like single < sign TTS stops the queue unexpectedly

6 participants