Good morning.
I need to know which regex or filter command is used to detect if there is any non-capitalized word in the %title% field.
For example, display (or find) the titles:
My dog Is Beaultiful
My DOG Is Beaultiful
My Dog Is BeaUtiful
My dOg Is Bealtiful
But not detect (or find)
My Dog Is Beaultiful
If this is not possible (or if it is easier), 3 filters and three independent REGEX, to be used separately, one at a time:
Find or filter title that has one or more words with ALL lowercase letters,
Find or filter title that has one or more words with ALL uppercase letters
Find or Filter title that has one or more words, that have uppercase and lowercase letters (except only the first capital letter and the other letters in lowercase).
The big problem is filtering or finding these words when they have accented letters. For example, in pt-BR:
I Drink CachaÇa (the correct form would be I Drink Cachaça)
Na Minha época (the correct form would be Na Minha Época)
Thank you.
For example to filter case sensitive in _FILENAME: %_FILENAME% MATCHES (?-i)dog %_FILENAME% MATCHES (?-i)DOG
For your special characters like Ç or ç you could also use the syntax \x{0123} - where you have to use the correct value for the characters: %_FILENAME% MATCHES (?-i)\x{00C7} -> Ç %_FILENAME% MATCHES (?-i)\x{00E7} -> ç
Thanks for the answers.
It's still not what I need.
I need to filter tags that have ALL words capitalized, or if it's easier, all those that have at least one word not capitalized.
Examples:
My Dog Is Very Beautiful => OK
My Dog Is Very BeauTiful => Not OK
My dOg Is Very Beautiful => Not Ok
My Dog Is Very beautiful => Not Ok
Meu Cachorro É Muito Bonito => Ok
Meu Cachorro é Muito Bonito => Não OK
Meu Cachorro É muiTo Bonito => Não Ok
It didn't work either, but don't worry, there may be no solution.
It will be easier to select the folder that contains the songs, order to capitalize, without capitalizing the prepositions (Menu -> Action -> Standard) and after that, manually inspect, one by one, the exceptions, such as acronyms and abbreviations that in Brazil are always in upper case (LTDA, SA...) and capitalize prepositions that are part of names and titles, such as "Cool And The Gang", "He Is The Man"...
Hello, friend, good evening.
The examples I wrote are in English, but the tests I did are in Portuguese, with accented letters. I think that's why it didn't work.
In fact, I discovered it by chance:
I also used the DBFManager program, which has a function called PROPER(X) that capitalizes the first letter of the string X and the others in lower case, exactly what I want to detect in MP3TAG. This function worked correctly when I turned off the "Use language-specific rules for sorting" option, and it doesn't work at all when I turn this option on. I think that's what's happening in the MP3TAG filter.
The %title% I used, in Portuguese, were:
Meu dog É Bonito1
Meu Dog É BoniTo2
Meu Dog É BONITO3
Meu DoG É Bonito4
Meu doG É Bonito5
Meu Dog É Bonito6
Meu Dog é Bonito7
BreakNews:
I don't know if it was just a coincidence, but in the MP3TAG program, I went to options, language, changed the program from Portuguese to English and it worked perfectly. From the example above, using:
"$strstr($caps(%title%),%title%)" IS 0
MP3TAG hid line 6 (which is the correct %title%, all words capitalized), and displayed the others, which are the wrong ones - that's exactly what I needed). In short: it worked perfectly.
Is this explanation correct?
Step #1: Find the first occurrence of the content of the string $caps(%title%) in %title%
Step #2: Show the filtered track if the result of the occurence IS 0 (= not occured, not found) More detailed:
The string $caps(%title%) returns the current content of %title% as mixed case. This means that every first letter in a word will be written in uppercase.
So if the mixed syntax of the %title% content is NOT identical with %title%
(because My dOg Is Very Beautiful
is not the identical syntax as My Dog Is Very Beautiful
) the returned position from $strstr will be 0 (= not found, not occured) and the filter condition becomes true.
If the filter condition is true, the checked track will be listed in the filter result.