Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Editing Masstagger Scripts outside of Foobar (Read 478 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Editing Masstagger Scripts outside of Foobar

I am working on a Masstagger script to add the Kanji name of composers to the composer tag.

For example:
$if($stricmp(%artist%,Koji Kondo - 近藤浩治),%artist%,$replace(%artist%,Koji Kondo,Koji Kondo - 近藤浩治))
$if($stricmp(%composer%,Koji Kondo - 近藤浩治),%composer%,$replace(%composer%,Koji Kondo,Koji Kondo - 近藤浩治))

This is quite time consuming to do within Foobar, so I was looking at exporting the script to work on in a different program. What is the best program to use for such? When I use notepad++ I can't get the encoding right, so I can't see the Kanji characters properly.

Thank you!

Re: Editing Masstagger Scripts outside of Foobar

Reply #1
I'd recommend using any text editor you are comfortable with, and there is nothing wrong with Notepad++. You might want to install titleformat highlighting syntax to further improve your editing work. There are threads about that on this forum too, for example here and here.

To get your Kanji characters showing you just need to tell Notepad++ to use UTF-8 encoding over the default ANSI it uses. You can change the encoding from the Encoding menu entry. Or you can make it default at Preferences -> New Document. Change the default encoding from ANSI to UTF-8.

 

Re: Editing Masstagger Scripts outside of Foobar

Reply #2
Thank you, all of the Kanji characters are showing properly now. However, there are still other characters that don't display properly. I suspect they are related the Masstagger action I'm using: "format value from other fields."

챘 ࠺ӈްRś덋    ̠  &r��ࠀ_��~`  ARTIST
$ifgreater($strstr(%artist%,Koji Kondo - 近藤浩治),0,%artist%,$replace(%artist%,Koji Kondo,Koji Kondo - 近藤浩治))&r��ࠀ_��~ɠ  COMPOSER
$ifgreater($strstr(%composer%,Koji Kondo - 近藤浩治),0,%composer%,$replace(%composer%,Koji Kondo,Koji Kondo - 近藤浩治))&r��ࠀ_��~ʠ  ARTIST