Multi rename tool

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Stefan2, white, sheep, Hacker

Post Reply
duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Multi rename tool

Post by *duck42 » 2018-07-06, 15:40 UTC

It looks like the multi rename tool have a little glitch. Title case renaming [first of each word (english title)] and [first of each word] isn't working. Both stick to [first letter upper case].

User avatar
petermad
Power Member
Power Member
Posts: 8405
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-07-06, 16:13 UTC

Try and add:

LowercaseStrings=English:a,an,the,at,by,for,in,of,on,to,from,up,and,as,but,or,nor,yet,so,vs

to the [Configuration] section of your wincmd.ini file.

Although it should work without it - it does here.
Last edited by petermad on 2018-07-06, 17:27 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b4 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Post by *duck42 » 2018-07-06, 16:43 UTC

I add [LowercaseStrings=English:a,an,the,at,by,for,in,of,on,to,from,up,and,as,but,or,nor,yet,so,vs] (w/o []) to the end of configuration and restart the program. Same behavior for english and german language.

OS is windows 10 64 with all updates.

duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Post by *duck42 » 2018-07-06, 16:57 UTC

Never mind, I identify the problem. I try to change a directory name. In case the directory name includes a dot, renaming isn't working correct - otherwise it works like expected.

Sample not working: L. Higgin - Handbook of Embroidery
Sample working: Lady Higgin - Handbook of Embroidery

User avatar
petermad
Power Member
Power Member
Posts: 8405
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-07-06, 18:01 UTC

Sample not working: L. Higgin - Handbook of Embroidery
Confirmed.

Until fixed, you can use [f][N] as the Name mask and set Upper/lowercase to Unchanged.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b4 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Post by *duck42 » 2018-07-07, 09:11 UTC

Thanks for your suggestion.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37410
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-07-08, 08:39 UTC

This isn't a bug. The normal "first of each word uppercase" and the new with English exceptions only works until the first dot. This is intentional. It does the same as [f][N][n] in the "name" section. If you use [f][N] it does the upper/lowercase conversion until the end of the name,
Author of Total Commander
http://www.ghisler.com

duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Post by *duck42 » 2018-07-08, 11:00 UTC

Well, I slightly want disagree from a bibliographic point of view :).

If the intend is to implement a function similar to the rules of title case as used in title of articles , the function isn't perfect, especially for initials in names like U.S. Naval Academy, Mt. Olympus or (authors) names like Arthur C. Clarke. Both examples are really common naming constructs in international publications, headlines for news articles or book titles. Following the implemented function, these will all fail.
An other point I like to comment, as fare as I know there is no rule in Rules for Capitalization that do not allow a sentence construct in a title also.

Anyway, what I like to say is that the function should not break for punctuation and initials. This will limit the usability (for situations I like to use the tool more often). At least a hint in the description for limits of the function would be helpful and protect for miss interpretations.

Maybe this is helpful for interpretations:
grammar dot yourdictionary dot com/capitalization/rules-for-capitalization-in-titles dot html


By the way, I am really happy with the new release. Thanks for your continuously improvements. I really appreciate your effort.

User avatar
petermad
Power Member
Power Member
Posts: 8405
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-07-08, 11:15 UTC

License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b4 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

duck42
Junior Member
Junior Member
Posts: 20
Joined: 2013-03-23, 12:48 UTC
Location: Germany

Post by *duck42 » 2018-07-08, 11:22 UTC

Thanks @petermad. The system won't let me pace the link.

User avatar
petermad
Power Member
Power Member
Posts: 8405
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2018-07-08, 11:36 UTC

I agree with duck42 that the Upper/lowercase button should also work for the whole filename including the extension for the last two options "First of each word uppercase" and "First of each word uppercase (English in Titles)", just as it works for the whole filename for the other 4 options.

If for some reason somebody does not want the extension changed he can set Upper/lowercase to Unchanged and use [F][N] or [f][N] as the file name maske AND set [n][E] as the Extension mask.
The normal "first of each word uppercase" and the new with English exceptions only works until the first dot.
This is not what I see - it works until the LAST dot...
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b4 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37410
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-07-09, 08:28 UTC

Yes, I meant last dot, sorry. The function assumes that there is an extension after the last dot, which shouldn't be uppercased this way.
Author of Total Commander
http://www.ghisler.com

masster
Junior Member
Junior Member
Posts: 10
Joined: 2004-05-20, 09:59 UTC

Post by *masster » 2018-07-16, 15:33 UTC

Here is another example where English capitalization is wrong:

10 - The last goodbye.mp3
or
10. The last goodbye.mp3

They are renamed equally wrong:

10 - the Last Goodbye.mp3

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37410
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-07-17, 09:46 UTC

Unfortunately it cannot work in this case, there is no chance for a non-human to detect all such possible cases.
Author of Total Commander
http://www.ghisler.com

Post Reply