Ah, I knew it!

Re: I don't think this will be new to you Karen. :-) -- Emmanuel
Posted by KarenS ® , 05/04/2023, 10:11:39 Reply Top of Thread Forum

I had an inkling snippets might be involved in this magic! I thought about that, but my mind threw up a blank wall as I asked myself, "What should the snippet do?"

That makes PERFECT sense for the Pick Loop to gently move along using {Ctrl Left}, without selecting. The problem I had with that is that it was skipping every other word. I'm actually creating a "right" Pick Loop because for AI, I'm always moving in a rightward direction, though I understand the concept works in both directions.

So for my right-moving pick loop, I tried {Ctrl Right}, and it skipped every other word. The I tried a simple {Right}, and the first time it put a space between the first letter of each word and the remaining letters. So I added the {NoSpacing} command at that spot, and it eliminated the space, but it would only select the word from the second letter forward, which is not good.

So then I added a {Left} command after the {Right} command, and now it works perfectly. But something is telling me there is a better way, and I'm looking forward to seeing how you made it work with snippets.

Here's my right-moving command so far to change to all lowercase, which works perfectly in both Word and WordPerfect:

{Ctrl Shift Right}{Wrap}
{LowerCase}{Wrap}
{NoSpacing}{Wrap}
{Right}{Wrap}
{Left}{Wrap}
{NoSpacing}{Wrap}
{PickList}change-case-right{/PickList}{Wrap}
{NoSpacing}

I'm actually surprised this entry works in both Word and WordPerfect, because one issue I have with trying to create any command-centric entries that I want to work seamlessly in both environments is that Word and WordPerfect each select text differently in terms of how they treat (and select or not) spaces and termination marks. So I always have to apply some kind of trickery to take that into account. But much to my happy surprise, the above example works in both.

I'm looking forward to seeing what you have come up with!

Thank you, Emmanuel, for always thinking of ways we can work smarter, whether it's reminding us of old tricks that might have been forgotten or coming up with new stuff. You're always on it!

-Karen :)




Edit | Reply | | Original Message | Top of Thread | Current page | Author
Followups