Page 1 of 1

Romanize kana

Posted: 18 May 2013, 23:27
by Cabanur
Hi,

I've been passing some music through filebot, and I'm having an issue with japanese songs. The program renames the files to the original Kana, wich is great, but not very usefull for me. I tried to use ascii(), but it doesn't do the job completely good. Is there any solution?

Re: Romanize kana

Posted: 19 May 2013, 00:49
by rednoah
Should to the job completely. Please post the filenames or characters that don't get asciified/cleaned.

Re: Romanize kana

Posted: 19 May 2013, 01:02
by Cabanur

Code: Select all

{if(n)n.ascii();artist.ascii()}\{if(album)"$y - "+"${album.ascii()}\\"}{if(pi)"${pi.pad(2)} - ";}{t.ascii()}
detoroito?metaru?shiti\2008 - Makai Yugi ~for the movie~\01 - SATSUGAI


{if(n)n;artist}\{if(album)"$y - "+"${album}\\"}{if(pi)"${pi.pad(2)} - ";}{t}
デトロイト・メタル・シティ\2008 - Makai Yūgi ~for the movie~\01 - SATSUGAI
As you can see, It substitutes "・" as "?". Wich i guess could be solved with character replacement, but i fear other unexpedted misconversions. Also, it would be great to get "Detroit Metal City" instead of that Engurishu thingy, but i guess that's just too much.

Thanks for your time! :)

Re: Romanize kana

Posted: 19 May 2013, 16:12
by rednoah
non-ascii chars will be replaced with ? by default. You can replace non-ascii with space instead:

Code: Select all

{t.ascii(' ')}
I guess I should make space the default replacement instead of question mark.