Make sure that user symbols without a replacement are properly ignored#8932
Conversation
|
Thanks for this, it fixes the issue, but imo it produces an inconsistency and is not exactly the expected behavior:
This is my opinion. Your feedback is appreciated. Thanks |
This is true. However, it is not very trivial to fix this. IN short, it probably requires treating emoji dictionaries as separate dictionaries, and that requires a lot of work.
I agree that this is inconsistent. The erroneous part of this issue is fixed though. Let's leave #8931 open for now. |
|
Many thanks. I think it's a good idea treat emojis in separate dictionaries, or in a general way, profile dictionaries for symbols. I could try to collaborate if needed, but I don't like to make things difficult to experiment devs like you, since sometimes devs may find easier to work yourself than review and discuss with other people. |
|
I created a branch that:
Thanks |
Problem with this is that you do not know whether you're editing an emoji o regular symbol. We somehow need to save the source of a symbol to have an edited instance saved in the proper user dictionary. |
|
leonardder commented
In _getSpeechSymbolsForLocale(locale): This code is included: ... emojis takes the value of added emojis when they are checked in config. Anyway, I have thought about adding a checkbox or combo box to determine if a symbol should be added to user or profileSymbols, if profiles would be supported. |
|
@michaelDCurran: This is now also reported in #8758 (comment) I changed the base branch back to beta. It might make sense to have this workaround in 2018.4. We can leave out the changes file entry? |
Link to issue number:
Related to #8931. It does not yet fix it, but provides a fix for the error involved.
Summary of the issue:
When adding a symbol without a replacement to the user symbols, an error is raised when this symbol is encountered in text. This is because the symbol is properly removed from the list of symbols, but it is still included in the regex that is created to extract symbols from text in order to replace them.
Description of how this pull request fixes the issue:
Remove the symbol identifier for a symbol without a replacement from the list of characters before building the regular expression.
Testing performed:
Tested the steps to reproduce as explained in #8931.
Known issues with pull request:
It does not fix #8931, this will require additional work and is a bit lower in priority.
Change log entry: