Case-conversion exceptions - opinions please

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

How should this be implemented

It's not required
0
No votes
Store the exceptions on a per-favourite basis (e.g. in the xxx.bru file)
2
67%
Store the exceptions ona global basis (e.g. in the Bulk Rename Utility.ini file)
1
33%
 
Total votes : 3

Case-conversion exceptions - opinions please

Postby Admin » Wed Mar 15, 2006 6:19 pm

BRU offers the ability to convert a filename's case - upper case, title case, lower case etc. But some people need exceptions to this. I'm looking for feedback on the best way to implement this, if it happens.

It's likely that I'll only be able to store a finite number of exceptions; this is becasue INI file entries are limited in length.


Also, how should the software handle issues where the words aren;t discrete words. For example filename_one_php_hello contains "php", but the words aren't strictly separate words as there's no spaces.


Jim
Admin
Site Admin
 
Posts: 2344
Joined: Tue Mar 08, 2005 8:39 pm

Re: Case-conversion exceptions - opinions please

Postby AbteriX » Wed Mar 15, 2006 7:00 pm

Admin wrote:BRU offers the ability to convert a filename's case - upper case, title case, lower case etc. But some people need exceptions to this. I'm looking for feedback on the best way to implement this, if it happens.

Thank you for your work!
It's likely that I'll only be able to store a finite number of exceptions; this is becasue INI file entries are limited in length.

There for i have voted for an separed BRU file.
So we could select what rules we need just in time.
Also, how should the software handle issues where the words aren;t discrete words. For example filename_one_php_hello contains "php", but the words aren't strictly separate words as there's no spaces.
Jim

Define "stop chars" in each BRU, i.e. word separators like:
^   Filename begin=1 ........... ex. One two
\s   space=1 ........... ex. one Two
,    coma=1 ........... ex. one,Two
.    dot=0 ........... ex. one.two
_    under score=0 ........... ex. one_two
-    minus=1 ........... ex. one-Two



example:

if "under score=0"
the filename "filename_one_php_hello" would be treated as ONE WORD

if "under score=1"
the filename "filename_one_php_hello" would be treated as seperade words



-
i am now confused anyway :oops:
AbteriX
 
Posts: 12
Joined: Sun Mar 12, 2006 4:24 pm

Postby spl1nt4 » Thu Mar 16, 2006 2:52 am

Jim,

Thanks for the democratic approach to my request.

I had envisaged a totally separate file with the exceptions in it (i.e. just a word per line) and just another checkbox to activate the exception file (probably from a file name input box in the same grouping).

If you include the words in the ini or the favorite, you may end up making them unnessecarily large.

Whether it should only work with whole words or embedded words opens a new can of worms which may be avoided by the careful use of wildcards, but from my own (selfish) point of view, whole words only would be fine.

I look forward to developments,

spl1nt4
spl1nt4
 
Posts: 6
Joined: Sun Mar 12, 2006 11:54 am

Postby Admin » Sat Mar 18, 2006 6:34 pm

This is now implemented, and is in the latest Beta on the website. You can enter exceptions, separated by spaces, e.g.

PHP ASP doc Fred icOn

and the case in which you have entered your exceptions will be honoured.



Jim
Admin
Site Admin
 
Posts: 2344
Joined: Tue Mar 08, 2005 8:39 pm

Postby AbteriX » Tue Mar 21, 2006 12:44 pm

OK, i have found this feature at last :D
It's in the "Case (4)" area, there is a field called "Excep."
There you can enter your exceptions.
like
Mr SALE ABBA ImportantDocument LaLeLu for to me BackUp



Attention, if you close BRU, all your excep. are lost.
You have to save them as favourites with File|Save as e.g. Exceptions.bru
Next time BRU starts he loads this favourites automaticly.
If not, just load them with File|Open.

You can also modify this Exceptions.bru with notepad to add more excep. or modfiy the stored ones.

BRU prevents not only your exactly exceptions in the file name from case change
but modify all un-consistent writen exceptions to that case you have defined in your exceptions.bru.

Thanks Jim for this feature.
AbteriX
 
Posts: 12
Joined: Sun Mar 12, 2006 4:24 pm

Postby Admin » Tue Mar 21, 2006 12:46 pm

Just bear in mind that Windows applies a limit of 255 characters on INI settings, so you should use Exceptions sparingly.

Jim
Admin
Site Admin
 
Posts: 2344
Joined: Tue Mar 08, 2005 8:39 pm


Return to Suggestions