IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Upper Case ERors, How to find two adjacent capital letters?
Zerow
post Jan 2 2018, 23:27
Post #1


Member


Group: Full Members
Posts: 721
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.86



I am really deeply profoundly sorry if I have already asked about it*, but how do I find all instances of:

two capital letters, which are beginning of a word and that are followed by at least one small letter?

The preferable method would be via column and not Filter box, I think. But Please note that I say two, because that is the most likely to happen: when typing the beginning of a name / title I either hold SHIFT a little too long or press CAPS LOCK a little too late [and thus end up with some NAme / TItle]



[* In my notes I have written about this issue as if I have some ready to execute code- but I can not find it, neither offline in my files or online on the forum]
Go to the top of the page
 
+Quote Post
DetlevD
post Jan 3 2018, 08:24
Post #2


Member


Group: Full Members
Posts: 6750
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.85



QUOTE (Zerow @ Jan 2 2018, 23:27) *
... how do I find all instances of:
two capital letters, which are beginning of a word and that are followed by at least one small letter? ...

This filter expression should do it ...
ARTIST MATCHES "(?-i)^\u\u\l"

DD.20180103.0824.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
Zerow
post Jan 4 2018, 17:25
Post #3


Member


Group: Full Members
Posts: 721
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.86



QUOTE (DetlevD @ Jan 3 2018, 08:24) *
This filter expression should do it ...
ARTIST MATCHES "(?-i)^\u\u\l"

DD.20180103.0824.CET
Thank you, but this seems to be working only if the word happens to be the very first word in the tag field. So it does help only with those cases when a band or song in a single word [and I made an error somewhere further along the lines]

And so:

a] how to cover further words?

b] how to cover all of tag fields at once?

c] how to rework it into a code for column?


Go to the top of the page
 
+Quote Post
DetlevD
post Jan 4 2018, 18:40
Post #4


Member


Group: Full Members
Posts: 6750
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.85



QUOTE (Zerow @ Jan 4 2018, 17:25) *
Thank you, but this seems to be working only if the word happens to be the very first word in the tag field. ...

Sorry, I read your question not carefully enough.
Try this ...
* MATCHES "(?-i)\b\u\u\l"

DD.20180104.1840.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
DetlevD
post Jan 4 2018, 19:00
Post #5


Member


Group: Full Members
Posts: 6750
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.85



QUOTE (Zerow @ Jan 2 2018, 23:27) *
... The preferable method would be via column and not Filter box, I think. ...

How should this method work within a column description?

How should such a column field tell about an error case anywhere in the tagfields within this file?
How should such a column field tell about an error case for a specific tagfield within this file?

Why should such a file related method be more suitable than the Mp3tag Filter?

DD.20180104.1900.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
Zerow
post Jan 16 2018, 18:50
Post #6


Member


Group: Full Members
Posts: 721
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.86



QUOTE (DetlevD @ Jan 4 2018, 18:40) *
Sorry, I read your question not carefully enough.
Try this ...
* MATCHES "(?-i)\b\u\u\l"
Yes, that works, thank you

And so I only need to replace the * with a name of the tag field if I want to narrow the results

[It seems I had only one such real eRRor and 5 out of 10 suspected cases come on the account of the TITLE; among overall number of 17 500 files]


QUOTE (DetlevD @ Jan 4 2018, 19:00) *
How should this method work within a column description?
I do not know. That is why I am asking

QUOTE (DetlevD @ Jan 4 2018, 19:00) *
How should such a column field tell about an error case anywhere in the tagfields within this file?
How should such a column field tell about an error case for a specific tagfield within this file?
Yes, now it seems obvious also to me that if this would not be limited to just one field it would be very complicated; that it would need to have some sort of list of specific tag fields

But I do not see how it should be impossible to limit this just to one field; to be able to show something like literally "eRRor" when there is one ans show nothing or "OK" when there is none


QUOTE (DetlevD @ Jan 4 2018, 19:00) *
Why should such a file related method be more suitable than the Mp3tag Filter?
Convenience

When it is time for me to perform a search for all kinds of errors and missing info [like before making a copy on a external drive] I go into "Cutomize colums..." and just turn on a properly named columns that are inactive 99.999% of the time I use Mp3tag [to save horizontal space]. I can sort then by a number of corrections I need to make; and I can also relatively easily combine them with some filter expressions [as I do not have to combine two filter expressions and wonder if there were "melted" together properly or if the Filter Box just does not show me anything because there is nothing to be shown because there are no errors]. And most of all, I do not have to copy various filter expressions from some TXT file and go back and forth between them [but I do copy some filter expressions, as I already have some that I was not able to turn into codes for columns]

Go to the top of the page
 
+Quote Post
Oblio
post Yesterday, 06:16
Post #7


Member


Group: Full Members
Posts: 159
Joined: 12-June 06
From: Australia
Member No.: 3286
Mp3tag Version: 2.80b



If you know which fields you want to check you could try something like this for a column value

$if($eql($regexp(%comment%|%title%|%artist%|%composer%|%_filename%,.*(\b\u\u\l).*,eRRor),eRRor),eRRor,OK)

The %_ALL% expression doesn't seem to work here.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th January 2018 - 12:55