INTERACT FORUM
More => Old Versions => Media Center 17 => Topic started by: Klaus_K on March 06, 2012, 04:21:17 am
-
Hi,
I have quite some tracks in my library (classical music) that have received name tags with non-Latin characters from various online sources during ripping (looks like chinese to me...). In the past I just did not care about them since I use my own custom tags for classical work identification. For the use on my mobile players I'd now like to clean-up these name tags. Is there an automatic way to easily identify tracks with those special characters/codepages?
Thanks for your help
Klaus
-
Maybe the IsRange function
http://wiki.jriver.com/index.php/Media_Center_expression_language#IsRange.28....29:_Tests_a_value_for_inclusion_within_a_given_range
-
Klaus_K - is this resolved for you?
-
I'm not sure how I'd need to define the range? In the meantime I tried to create smartlist using copied characters from some of the tags in question. By doing that I can at least roughly identify the albums affected.
It works for the moment, but I'll spend some time over the weekedn fiddling with the expression you proposed.
Thanks anyway
Klaus
-
I'm not sure the IsRange function work easily, if at all, for this.
The easiest way is to create a panes view with an expression column, where the expression provides a means for you to see which track names contain chars within and without the Latin characters.
Create a new column, set the type to expression, and add the expression:
if(Regex([Name], /#[^ -~]#/), Contains non-ASCII, ASCII-only)
Then, in the pane view, you can select either value to see the two classes of track names, those with non-ASCII and those with ASCII-only. This works by having the regular expression search the collated range of SPACE to TILDE, which in ASCII is all printable characters (and space) which I think is what you're looking for. If not, the pattern can be modified easily enough to suit your needs.