MRT: LowercaseStrings not working for last word in file name
Moderators: Hacker, petermad, Stefan2, white
MRT: LowercaseStrings not working for last word in file name
LowercaseStrings=Deutsch:der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
File name: "von LiesMich oder nicht er test sie es von an.txt"
MRT-Result: "Von Liesmich oder nicht er Test sie es von An.txt"
Should be: "Von Liesmich oder nicht er Test sie es von an.txt"
File name: "von LiesMich oder nicht er test sie es von an.txt"
MRT-Result: "Von Liesmich oder nicht er Test sie es von An.txt"
Should be: "Von Liesmich oder nicht er Test sie es von an.txt"
Re: MRT: LowercaseStrings not working for last word in file name
Help says it is meant for "First of each word uppercase (English in Titles)".diopter wrote: 2022-05-12, 05:24 UTC LowercaseStrings=Deutsch:der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
File name: "von LiesMich oder nicht er test sie es von an.txt"
MRT-Result: "Von Liesmich oder nicht er Test sie es von An.txt"
Should be: "Von Liesmich oder nicht er Test sie es von an.txt"
In English titles, capitalizing the first and the last word is the rule.
See: https://capitalizemytitle.com/#capitalizationrules
Re: MRT: LowercaseStrings not working for last word in file name
History.txt
"First of each word uppercase"- added a new setting for this older option:
13.05.18 Added: wincmd.ini [Configuration]
LowercaseStrings=English:a,an,the,at,by,for,in,of,on,to,from,up,and,as,but,or,nor,yet,so,vs
set title and excepted words for "First of each word uppercase" (32/64)
"First of each word uppercase (English in Titles)" new option in MRT
13.05.18 Added: Multi-rename tool: New upper/lowercase option "First of each word uppercase (English in Titles)"
which doesn't uppercase words like "a", "an", "the" etc., except at the start or end (32/64)
"First of each word uppercase"- added a new setting for this older option:
13.05.18 Added: wincmd.ini [Configuration]
LowercaseStrings=English:a,an,the,at,by,for,in,of,on,to,from,up,and,as,but,or,nor,yet,so,vs
set title and excepted words for "First of each word uppercase" (32/64)
"First of each word uppercase (English in Titles)" new option in MRT
13.05.18 Added: Multi-rename tool: New upper/lowercase option "First of each word uppercase (English in Titles)"
which doesn't uppercase words like "a", "an", "the" etc., except at the start or end (32/64)
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: MRT: LowercaseStrings not working for last word in file name
Total Commander uses the English capitalization rules, as described for example in Wikipedia:
https://en.wikipedia.org/wiki/Title_case
https://en.wikipedia.org/wiki/Title_case
The rules of title case are not universally standardized. The standardization is only at the level of house styles and individual style guides. Most English style guides agree that the first and last words should always be capitalized, whereas articles, short prepositions, and some conjunctions should not be.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: MRT: LowercaseStrings not working for last word in file name
That means that if you capitalize for Dutch or German... you lowercase English terms and we are not able to define lowercase exceptions for different target languages.ghisler(Author) wrote: 2022-05-12, 08:40 UTC Total Commander uses the English capitalization rules, as described for example in Wikipedia:
https://en.wikipedia.org/wiki/Title_case
The rules of title case are not universally standardized. The standardization is only at the level of house styles and individual style guides. Most English style guides agree that the first and last words should always be capitalized, whereas articles, short prepositions, and some conjunctions should not be.
@ghisler does an ini parameter allows to override lowercase exceptions ?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: MRT: LowercaseStrings not working for last word in file name
There isn't, but I could add one. Do you only need this for the last word, or also for the first?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: MRT: LowercaseStrings not working for last word in file name
For me (German), a setting for the last word would be enough, as you probably know...
Please add it to the next beta.
Thanks.
Please add it to the next beta.
Thanks.
Re: MRT: LowercaseStrings not working for last word in file name
Only the last is needed for European schemes, do not know for others...
You could probably just add a marker like ! as last char of the language name indicating that last word do not override lowercase rules:
Do you also allows multiple languages ?
You could probably just add a marker like ! as last char of the language name indicating that last word do not override lowercase rules:
Code: Select all
LowercaseStrings=Deutsch!:der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: MRT: LowercaseStrings not working for last word in file name
That's a great idea!You could probably just add a marker like !
No, sorry.Do you also allows multiple languages ?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: MRT: LowercaseStrings not working for last word in file name
This was changed in Beta 6, please test it!
Just use
Just use
Code: Select all
LowercaseStrings=Deutsch!:der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: MRT: LowercaseStrings not working for last word in file name
2ghisler(Author)
It would be nice it it also worked when using no description -> using string 1397 from the language file instead.
So something like
or
should also work.
It would be nice it it also worked when using no description -> using string 1397 from the language file instead.
So something like
Code: Select all
LowercaseStrings=!:der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
Code: Select all
LowercaseStrings=!der,die,das,er,sie,es,wir,ihr,ihre,ein,bei,von,für,in,an,auf,unter,und,oder,als,ob,so,also,aber,nicht
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: MRT: LowercaseStrings not working for last word in file name
Sorry, this isn't planned. Moved to "Will not be changed".
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com