
Quote from Talker on September 5, 2022, 9:52 pmIs there any way in Neo to highlight (or otherwise bold, colorize, italicize etc.) arbitrary text by the CharacterPosition and the Length of the text to be highlighted?
Perhaps with Editors Toolbox plug-in...
If so, is it possible to post a simple example?
Thanks.
Is there any way in Neo to highlight (or otherwise bold, colorize, italicize etc.) arbitrary text by the CharacterPosition and the Length of the text to be highlighted?
Perhaps with Editors Toolbox plug-in...
If so, is it possible to post a simple example?
Thanks.

Quote from AsleyCruz on September 7, 2022, 9:27 pmHi @talker
Unable to apply styles (bold, italic, etc) to selected text in simple TextEntry control.
But I have got a little plugin to find a text in TextEntry controls. See below demo in the animated gif.
If you would like to add it more functions before buying it, please contact me (in case you are interested on it).Regards
Hi @talker
Unable to apply styles (bold, italic, etc) to selected text in simple TextEntry control.
But I have got a little plugin to find a text in TextEntry controls. See below demo in the animated gif.
If you would like to add it more functions before buying it, please contact me (in case you are interested on it).
Regards



Quote from Vadim on September 13, 2022, 6:28 pm@talker
Yes, the EditorsToolbox 1.75 plugin (C. Giebel) has the ability to format text (set its color, outline, and so on).
Yes, the EditorsToolbox 1.75 plugin (C. Giebel) has the ability to format text (set its color, outline, and so on).

Quote from fkapnist on September 22, 2022, 2:29 amHere's a simple Text Entry example you requested (with Editors Toolbox).
Change the text color or style etc., according to your needs
https://awareware.com/NEOWINPLUGINS/textenter.zip
By "Character Position and the Length of the text" do you mean (for example) that if the text is a certain length, it would be blue, but if another length it would be red? I'm not sure what you mean.
.
Here's a simple Text Entry example you requested (with Editors Toolbox).
Change the text color or style etc., according to your needs
https://awareware.com/NEOWINPLUGINS/textenter.zip
By "Character Position and the Length of the text" do you mean (for example) that if the text is a certain length, it would be blue, but if another length it would be red? I'm not sure what you mean.
.

Quote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!
@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."
I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
Uploaded files:
Quote from fkapnist on September 22, 2022, 9:48 amQuote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
You have too many parameters for npSapiPlay. It only takes four parameters, but you gave it seven!
Quote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
You have too many parameters for npSapiPlay. It only takes four parameters, but you gave it seven!

Quote from fkapnist on September 22, 2022, 10:01 amQuote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
@talker
You had too many parameters in your script. This one works now
https://awareware.com/NEOWINPLUGINS/textenter2.zip
Quote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
You had too many parameters in your script. This one works now
https://awareware.com/NEOWINPLUGINS/textenter2.zip

Quote from fkapnist on September 22, 2022, 10:26 am@talker
The npSapi plug-in has been published in various versions. I am using an older "registered" version on my system which takes only four parameters. The plugin you posted is a newer version which takes seven parameters. Since the parameters changed considerably, maybe they should have renamed the new plugin to avoid confusion? Anyway, I installed the new plugin and your pub works okay with it. Did you want the text to be highlighted in TextEntry2 ?
The npSapi plug-in has been published in various versions. I am using an older "registered" version on my system which takes only four parameters. The plugin you posted is a newer version which takes seven parameters. Since the parameters changed considerably, maybe they should have renamed the new plugin to avoid confusion? Anyway, I installed the new plugin and your pub works okay with it. Did you want the text to be highlighted in TextEntry2 ?

Quote from fkapnist on September 22, 2022, 11:15 amQuote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
This example works with the new version of the npSapi plugin.
https://awareware.com/NEOWINPLUGINS/TextEnter3.zip
I installed the plugin EditorsToolbox and replaced "TextEntry1" with "Rectangle1"
and used the variable "[Rectangle1_Text]" instead of "[TextEntry1]"
.......
Here is another fancier version - closer to what you want, I think
https://awareware.com/NEOWINPLUGINS/TextEnter4.zip
I hope this helps you!
Quote from Talker on September 22, 2022, 5:44 am@Vadim
Thanks. I've taken a closer look at this plug-in and indeed it seems to have all formatting/styling options. Great plug-in, particularly for a free one!@fkapnist
Thank you very much for your sample app! Please let me clarify a little about what I want to achieve with "Character Position and the Length of the text."I'm working on a Reader app using DecSoft's npSapi plug-in. The plug-in has an event named:
npOnSapiWord
"Set a subroutine to be executed when a word is speeched in the reproduction. The Character position variable store the current character position in the text to be reproduced. The Length variable stores the total length of the reproduced word."
In this case I'm using TextEntry2 to (sort of) display the "currently spoken word in real-time".
However, this is not completely working the way I want it to. Besides, I want the currently spoken word to be highlighted in the main TextEntry1 field (this is where the users can type or paste their text).
Since highlighting/formatting is not possible in a regular TextEntry control I was thinking that replacing it with Rectangle1 (using Editor's Toolbox) might give that option...
If highlighting is not possible then real-time bolding or italicizing the currently spoken word would also be fine.
Is this possible?
I've attached my sample app. You will need the npSapi plug-in to test it. You can download the demo version here
This example works with the new version of the npSapi plugin.
https://awareware.com/NEOWINPLUGINS/TextEnter3.zip
I installed the plugin EditorsToolbox and replaced "TextEntry1" with "Rectangle1"
and used the variable "[Rectangle1_Text]" instead of "[TextEntry1]"
.......
Here is another fancier version - closer to what you want, I think
https://awareware.com/NEOWINPLUGINS/TextEnter4.zip
I hope this helps you!

Quote from Talker on September 23, 2022, 3:23 am@fkapnist
Thank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?
Thank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?

Quote from fkapnist on September 23, 2022, 10:19 amQuote from Talker on September 23, 2022, 3:23 am@fkapnist
Thank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?
If the Edge browser gives you results you want, why not use it instead?
I use Edge for the very same reason:
RUN EDGE BROWSER Run "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" "--window-size=800x600 --app-shell-host-window-size=800x600 --app=file:\\\[TempDir]HELP.htm" "LoadComplete" "" "[web2winhlp]" MOVE AND RESIZE BROWSER hpwAutoItWinMove "[TempDir]" "New Page 1" "[web2winhlp]" "0" "0" "530" "500" START SPEECH SendKeys "[web2winhlp]" "{CtrlDn}{ShiftDn}U{ShiftUp}{CtrlUp}"If you must use the npSapi plugin why not get in touch with DecSoft for more help? Because you want to read a "TextEntry" field, it is more difficult. When does the speech start, when you type a single letter, after a blank space, or do you click on a "go" button to initiate speech? Your example has a button "read" to start the speech. Why not link you button to aNEO Win action that opens the Edge browser and speaks your text?
Quote from Talker on September 23, 2022, 3:23 amThank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?
If the Edge browser gives you results you want, why not use it instead?
I use Edge for the very same reason:
RUN EDGE BROWSER
Run "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" "--window-size=800x600 --app-shell-host-window-size=800x600 --app=file:\\\[TempDir]HELP.htm" "LoadComplete" "" "[web2winhlp]"
MOVE AND RESIZE BROWSER
hpwAutoItWinMove "[TempDir]" "New Page 1" "[web2winhlp]" "0" "0" "530" "500"
START SPEECH
SendKeys "[web2winhlp]" "{CtrlDn}{ShiftDn}U{ShiftUp}{CtrlUp}"
If you must use the npSapi plugin why not get in touch with DecSoft for more help? Because you want to read a "TextEntry" field, it is more difficult. When does the speech start, when you type a single letter, after a blank space, or do you click on a "go" button to initiate speech? Your example has a button "read" to start the speech. Why not link you button to aNEO Win action that opens the Edge browser and speaks your text?

Quote from fkapnist on September 23, 2022, 12:24 pmQuote from Talker on September 23, 2022, 3:23 am@fkapnist
Thank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?
Here is an example of how I use the msEdge reader (in over 20 languages).
I could not do this with my registered Sapi plugins.
https://www.youtube.com/watch?v=UVQg_Jr_5Wo
Quote from Talker on September 23, 2022, 3:23 amThank you for your help with this. I appreciate it!
However, the result is now more or less the same as my Reader sample app except with a different text control. The words being read appear in real-time. The npOnSapiWord event skips punctuation marks (because they are not words) and has a tendency to double characters that appear before a ©, ® (and presumably some other chars as well). When it comes to reliably displaying the currently read contents, using npOnSapiSentence gives more consistent results.
However, my end goal is to have only one text field (Rectangle1) with static text, but with highlighting of the word that is currently being read by npSapi.
What I'm after is very similar to using the built-in reader of Microsoft Edge. Try it. Select some text from this webpage in Microsoft Edge, then right-click and choose "Read aloud section". See how the currently read word is being highlighted yellow.
I would also settle with the currently read word being bold (while all other text in the text control remains regular).
Maybe this is not possible with Neo?
Here is an example of how I use the msEdge reader (in over 20 languages).
I could not do this with my registered Sapi plugins.
https://www.youtube.com/watch?v=UVQg_Jr_5Wo

Quote from Talker on September 23, 2022, 4:52 pmDavid from DecSoft already gave a lot of support but we ran into some limitations when it comes to highlighting text.
Anyway, using the Microsoft Edge reader could be a nice workaround.However, I am mostly after reading out loud text copied from any source. The Edge reader only allows reading of HTML files, correct?
So, this process would involve converting clipboard (or textEntry1) contents to HTML and then making sure that HTML file will be launched by Edge and then sending {CtrlDn}{ShiftDn}U{ShiftUp}{CtrlUp} to the Edge window.
It would also probably be good to delete the HTML document after the reading is done...Or do you know a faster way of doing this?
Of course, it would be best if any of the existing Neo (WebView/Chromium-based) browser plug-ins would support the Read Aloud function in combination with setting a local HTML text entry page as their default URL. That way one would almost have a complete Text-to-speech app....
Or does your Web2Win4neo app provide some options for this?
Interesting video by the way!
David from DecSoft already gave a lot of support but we ran into some limitations when it comes to highlighting text.
Anyway, using the Microsoft Edge reader could be a nice workaround.
However, I am mostly after reading out loud text copied from any source. The Edge reader only allows reading of HTML files, correct?
So, this process would involve converting clipboard (or textEntry1) contents to HTML and then making sure that HTML file will be launched by Edge and then sending {CtrlDn}{ShiftDn}U{ShiftUp}{CtrlUp} to the Edge window.
It would also probably be good to delete the HTML document after the reading is done...
Or do you know a faster way of doing this?
Of course, it would be best if any of the existing Neo (WebView/Chromium-based) browser plug-ins would support the Read Aloud function in combination with setting a local HTML text entry page as their default URL. That way one would almost have a complete Text-to-speech app....
Or does your Web2Win4neo app provide some options for this?
Interesting video by the way!