Unwelcome change in the way text form TextSoap works within LivingWriter

23 views
Skip to first unread message

K in KOP

unread,
Nov 22, 2024, 7:02:06 PM11/22/24
to TextSoap
Since I first started using TextSoap, I have been copying and pasting the text into a program called Living Writer and from living writer I then make further refinements. Everything has been going smoothly, but just recently I noticed that when I cut and paste text that previously came from TextSoap, it is adding an extra space after whatever I paste. I then have to delete that extra space. This must have happened with one of the updates to TextSoap, because it was not happening before. Or maybe it was living writer that did an update and it's not playing well with TextSoap now.

I'm wondering if I can use a cleaner to prevent this from happening within TS first before I copy it into living writer, or alternatively, can I use it from within living writer to clean it up on the backend? Sorry if it is a little confusing. Here's what happens.

When I cut and paste the words "me: ", it is supposed to look like the top line, but it ends up looking like the bottom line:

Me: I went to the store.
Me:  I went to the store. [there are two spaces after the colon]

Mark Munz

unread,
Nov 26, 2024, 5:18:48 PM11/26/24
to text...@googlegroups.com
TextSoap is not doing this. Given that Living Writer is a web app, it is more likely they changed the paste behavior in a recent update.
MacOS does have a feature called "Smart CopyPaste" (Edit > Substitutions > Smart CopyPaste) which will insert spaces if needed when enabled.
It works pretty well in Safari for web apps that use standard text fields, but I don't know if the other browsers mimic the behavior or not or if custom fields break it.

The test you can do to verify it is not TextSoap is to use TextEdit. Copy and paste text in TextEdit and look at its behavior with and without Smart CopyPaste enabled.
Once you understand where it happening, you can look at some options to address it.

For example, assuming it is Living Writer, you can create a cleaner that removes any space from the end of the text found.

image.png
I'm using the \x{20} to be explicit, but you can also just put a space or \s (which also matches a tab at the end) if you wish.
Make sure to change the options to be: s so $ works on the entire text, not just lines.
Once you create the cleaner, you can then add it to the end of any cleaner you need.



--
You received this message because you are subscribed to the Google Groups "TextSoap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to textsoap+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/textsoap/18f62633-a936-4eee-8c4b-4ffa6f9da463n%40googlegroups.com.


--
Mark Munz
unmarked software
https://textsoap.com/

K in KOP

unread,
Nov 30, 2024, 9:19:40 PM11/30/24
to TextSoap
Thank you, Mark. I did some testing. Here is what I found:

When I take text from TS and put it into Text Edit, and then within Text Edit, I cut and paste, there is no extra space, regardless of whether Substitutions/Smart CopyPaste is checked or not.
When I take text from TS and put it into Living Writer, and then within Living Writer, I cut and paste, there IS an extra space. (Edit does not show an option for Smart CopyPaste from within Living Writer. 
Furthermore, when the text ORIGINATES in Living Writer (I type it in rather than pulling it form TS), and then cut and paste, there is NO extra space. That seems to indicate that there's something about TextSoap that is causing that extra space to happen within Living Writer.

As for creating a cleaner for this - is it possible for me to add TS to Living Writer and use the cleaner within that app, since that is where I do my editing form? I believe there is a way to use TS within another app, but I haven't explored that yet. Maybe a tutorial?

Thank you,
Karen
Reply all
Reply to author
Forward
0 new messages