I have some problems with some of my music,
I have music with Hebrew/Arabic names (name is right to left)
To be able to see them in my Dj software (Traktor) I need to reverse the name,
but If I use the reverse function like this: "$reverse(%title%)" it's reverse all the title name, even if there are some English chars or numbers in the title
e.g I want to reverse this: Example - דוגמא
Example - אמגוד
There is a way to do that with something like regular expression so it will ignore a-z, A-Z and 0-9?
I am a little puzzled: the DJ program cannot cope with these characters?
In MP3tag it looks like WIndows does some magic if it discovers such characters and reverses the reading order.
Also, if you select the text in such a field and right-click on it, you can force the reading LTR or RTL. @lyricslover and me tried a lot of expressions with $replace(), $reverse() and $regexp() and we could not get it to work in a mixed string.
Which brings me back to the DJ software - I would ask the publishers of that software whether they can do anything about your problem - is it looks like a display problem in their software.
Just for the record
דוגמא-דוגמא translates "example-example
אמגוד-אמגוד translates Amgood-amgood
So will the whole effort to a sensible result?
I think this is beyond the scope of what mp3tag is designed to do. Furthermore, the forum and users should not be expected to reach out to other software developers to improve or correct their product. This will need to be something you seek there for further support.
We are still at it in way. The problems that we found run around the space character as that gets removed with the regular expression and that makes the source string and the comparison string not to match.
I created an action group of 4 actions:
Format value for (user-defined) INVERS1:
Format string: $regexp(%TITLE%,'([a-zA-Z0-9\s\(\)\/])',)
Format value for (user-defined) INVERS2:
Format string: $reverse($regexp(%TITLE%,'([a-zA-Z0-9\s\(\)\/])',))
Format value for TITLE
Format string: $replace(%title%,%invers1%,%invers2%)
Remove fields: invers1,invers2
This turns 140BPM דוגמא-דוגמא (Extended)
into 140BPM אמגוד-אמגוד (Extended)