Recognize periods as word breaks

Features wanted...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Recognize periods as word breaks

Post by TheQwerty »

I'd have to agree with Mesh. I think more than the period is needed.

Another option to maintain your dot-only use could be to implement triple-clicking which would select just the base or extension.

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recognize periods as word breaks

Post by admin »

Mesh wrote:; All characters listed between double quotes will be considered word boundaries for all renaming purposes
WordBoundaryCharacters= " _()."
That's a possibility. But for now I wouldn't mind finding a choice that suits most users. So, does everybody agree on " _()." as word boundaries?

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Recognize periods as word breaks

Post by Mesh »

admin wrote:
That's a possibility. But for now I wouldn't mind finding a choice that suits most users. So, does everybody agree on " _()." as word boundaries?

If we're looking for a catch-all solution for the moment, it probably makes more sense to reverse the parameters and simply say any character that's not "a-z" (case insensitive) and "0-9". That would be more accurate and catch the characters we might not initially think of.

I can't think of any character outside of the "a-z" and "0-9" range that *wouldn't* be a word seperator of some sort.

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recognize periods as word breaks

Post by admin »

Mesh wrote:
admin wrote:
That's a possibility. But for now I wouldn't mind finding a choice that suits most users. So, does everybody agree on " _()." as word boundaries?

If we're looking for a catch-all solution for the moment, it probably makes more sense to reverse the parameters and simply say any character that's not "a-z" (case insensitive) and "0-9". That would be more accurate and catch the characters we might not initially think of.

I can't think of any character outside of the "a-z" and "0-9" range that *wouldn't* be a word seperator of some sort.
I can do that. Agreement?

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: Recognize periods as word breaks

Post by avsfan »

Sounds good. I typically use spaces and dashes "-" as word separators, so that would work great for me.

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Re: Recognize periods as word breaks

Post by ivan »

admin wrote:I can do that. Agreement?
Yes, I think any character/symbol outside of those ranges should be considered as a word break (including spaces of course).
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recognize periods as word breaks

Post by admin »

Mesh wrote:I can't think of any character outside of the "a-z" and "0-9" range that *wouldn't* be a word seperator of some sort.
Well, I can: á, ü, ñ ...
Looks like it's easier to collect the potential word breakers in file names:

Code: Select all

(){}[].,;- !§$%&=+#_
[/size]

That should cover it more or less...

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Re: Recognize periods as word breaks

Post by ivan »

admin wrote:That should cover it more or less...
Here are a few more...

Code: Select all

~^*/\|
[/size]
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Recognize periods as word breaks

Post by Mesh »

admin wrote:
Mesh wrote:
I can't think of any character outside of the "a-z" and "0-9" range that *wouldn't* be a word seperator of some sort.
Well, I can: á, ü, ñ ...
Looks like it's easier to collect the potential word breakers in file names:

Code: Select all

(){}[].,;- !§$%&=+#_
[/size]

That should cover it more or less...

Damn. I forgot about those. Maybe the INI route is the easiest way after all. Well, if you're going with a static and uneditable list to start with, I'd probably add "<>" and M-Dashes.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Recognize periods as word breaks

Post by j_c_hallgren »

But are all the chars listed above valid within file names? Just wondering...I'm not 100% sure if all those are.
And if it's done via INI setting, then a user could decide if they wanted a char to be treated as separator or not...in my case, I use the "$" and "#" as 'normal' chars, as in "M$ - Update xxxx" as abbrev for Microsoft.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recognize periods as word breaks

Post by admin »

j_c_hallgren wrote:But are all the chars listed above valid within file names? Just wondering...I'm not 100% sure if all those are.
And if it's done via INI setting, then a user could decide if they wanted a char to be treated as separator or not...in my case, I use the "$" and "#" as 'normal' chars, as in "M$ - Update xxxx" as abbrev for Microsoft.
Me too. $ and # should probably be left out for most people. But or now I put them all in:

Code: Select all

.:,; _-~(){}[]<>|/\^°*?!§$%&=+#"'
[/size]Then we can see which ones to drop.

I will make it configurable later.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Recognize periods as word breaks

Post by j_c_hallgren »

So what happend when combinations of these occur in a set, as in "M$ - fix #123765"? Does it get considered as one break? So that, for now, the "$ - " isn't treated as four breaks...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recognize periods as word breaks

Post by admin »

j_c_hallgren wrote:So what happend when combinations of these occur in a set, as in "M$ - fix #123765"? Does it get considered as one break? So that, for now, the "$ - " isn't treated as four breaks...
As four breaks currently. Hmmm, I should change this maybe...

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Re: Recognize periods as word breaks

Post by ivan »

admin wrote:Me too. $ and # should probably be left out for most people. But or now I put them all in:

Code: Select all

.:,; _-~(){}[]<>|/\^°*?!§$%&=+#"'
[/size]Then we can see which ones to drop.
I will make it configurable later.
Thank you for adding those characters, but please enable them to be recognised as word breakers throughout the program. It really needs to work for Rename Special --> Capitalization.
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Recognize periods as word breaks

Post by Mesh »

admin wrote:
j_c_hallgren wrote:
So what happend when combinations of these occur in a set, as in "M$ - fix #123765"? Does it get considered as one break? So that, for now, the "$ - " isn't treated as four breaks...

As four breaks currently. Hmmm, I should change this maybe...

Well, what I was originally envisioning was something like this:


If we're starting from the left side and hit Ctrl-<Right>, the cursor would stop before the next non-break character that occurs after a break character. This would have prevented the behavior j.c. brought up.

Post Reply