IPB

Welcome Guest ( Log In | Register )

foo_masstag_codepage, codepage conversion tool for tagging
Acropolis
post Jun 1 2006, 18:26
Post #1





Group: Banned
Posts: 471
Joined: 23-September 04
Member No.: 17243



It is very inconvienient if without codepage conversion plugin when dealing with non english songs.
This is an extension of the foo_masstag, and is pretty much the same as the foo_codepage_action plugin for the old foobar2000, but this is for 0.9.x.

the two extra functions are:
- codepage conversion
- conversion between simplified and traditional chinese

This plugin has been renamed to foo_masstag_addons, feature requests are welcome.

* read my blog for the dependency requirements before downloading *

current version: 0.3.4

change log

0.3.4
- added a new action: “Embedded cuesheet inserter”

this is an action to automatically insert the related cuesheet to the file, currently only: *.ape;*.tak;*.flac;*.mac are supported.

this is developed when I convert my APEs to TAKs, the operation is:

C:\album.cue
C:\album.tak

load album.tak to fb2k and put it to the masstagger, and select the action, then run

the action will:
1. put data of album.cue to album.tak as embedded cuesheet
2. remove the actual album.cue file (only will remove if the operation is sucessfully done)

0.3.3
- codepage combo boxes items are sorted now, it was auto sorted in xp, but in vista, it is a mess.

0.3.2
- multi-instance support for the conversions, now mutiple actions of the same type is supported

0.3.1
- minor bugs fixed

0.3
- chinese conversion is also included with the codepage conversion, you can now do the two actions in one step.
- the names "current cp" and "target cp" are changed accordingly.
- conversion preview added, you don't need to worry about messing up your tags by selecting wrong codepage anymore.

0.2.3
- allows user to specify the which meta data to convert

0.2.2
- allows user to select the current codepage

A little tutorial
codepage conversion now allows user to select the codepage currently used to dislay and the
codepage to convert.

this let user fix those files tagged by foo_freedb2, which treats any tags retreived from the
server as utf-8, but in fact the tags could be something else.
to fix these files, user selects iso-8859-1 as the displayed codepage and the correct codepage
as what user thinks it should be (this can be known if user browses the freedb website with the DISCID).

the displayed codepage and correct codepage are not your operating system's codepage, but the
codepage used to store in the actual file when it is not unicode (utf16) and utf8.
but for other files not tagged by foo_freedb2, the displayed codepage is most likely your windows
current code page.

in fact for any mis-tagged files, user just needs to known the codepage in the files and
the correct codepage to get them fixed, unless the files really have incorrect tags.

This post has been edited by Acropolis: May 20 2007, 14:43
Go to the top of the page
+Quote Post
 
Start new topic
Replies
xliu5
post Jun 16 2006, 22:15
Post #2





Group: Members
Posts: 22
Joined: 1-March 05
Member No.: 20266



How does this work? I see that it is similar to the special show file info plugin for 0.83. What tags does this plugin convert the codepage? All three of ID3v1, ID3v2.4 and APEv2 currently supported by foobar2k 0.92? I have my MP3 encoded in Chinese GBK but the portable MP3 player only recognizes ID3v2.3 UTF-16 encoding. I guess it is out of question for me to use the plugin to convert the codepage since foobar2k now saves the tags in ID3v2.4 and there is no UTF-16 encoding at the codepage conversion (only UTF-7 and UTF-8).
Go to the top of the page
+Quote Post
Acropolis
post Jun 17 2006, 00:59
Post #3





Group: Banned
Posts: 471
Joined: 23-September 04
Member No.: 17243



QUOTE (xliu5 @ Jun 17 2006, 07:15) *
How does this work? I see that it is similar to the special show file info plugin for 0.83. What tags does this plugin convert the codepage? All three of ID3v1, ID3v2.4 and APEv2 currently supported by foobar2k 0.92? I have my MP3 encoded in Chinese GBK but the portable MP3 player only recognizes ID3v2.3 UTF-16 encoding. I guess it is out of question for me to use the plugin to convert the codepage since foobar2k now saves the tags in ID3v2.4 and there is no UTF-16 encoding at the codepage conversion (only UTF-7 and UTF-8).


no, it is similar to the foo_codepage_action plugin in 0.8.x.
this plugin in fact doesn't know what tag it will convert, because it just changes the codepage of the text from meta info, so the tag type really depends on the tag type you've chosen of the input file.

Also, it has nothing to do with ID3v1, or whatever. The main purpose of the conversion is converting the meta info text which is from other codepage such as big5, gbk, to utf-8.

The primary reason I write this plugin is because I have many mp3 using GBK in the tag, but I'm using Big5 windows, the text shown in foobar is garbage (you know what I mean, I think).
I need a plugin like this to convert the text so it can be displayed properly in my big5 windows (both simplified and traditional can be displayed).

This post has been edited by Acropolis: Jun 17 2006, 01:10
Go to the top of the page
+Quote Post
surf
post Jun 22 2006, 05:07
Post #4





Group: Members
Posts: 3
Joined: 1-October 05
Member No.: 24824



QUOTE (Acropolis @ Jun 17 2006, 07:59) *
no, it is similar to the foo_codepage_action plugin in 0.8.x.
this plugin in fact doesn't know what tag it will convert, because it just changes the codepage of the text from meta info, so the tag type really depends on the tag type you've chosen of the input file.

Also, it has nothing to do with ID3v1, or whatever. The main purpose of the conversion is converting the meta info text which is from other codepage such as big5, gbk, to utf-8.

The primary reason I write this plugin is because I have many mp3 using GBK in the tag, but I'm using Big5 windows, the text shown in foobar is garbage (you know what I mean, I think).
I need a plugin like this to convert the text so it can be displayed properly in my big5 windows (both simplified and traditional can be displayed).


Hmm...i have the same problems like yours.
but i'm wondering...
if i get the tags from freedb.org is in gbk encoding.
and i use the codepage action which plugged into foobar2000 0.8.3(i don't like 0.9.x..)
i choose convert simplified chinese into traditional chinese.
it worked..and the tags displayed perfect.
but i have a question...
the tags aren't in utf-8, are they?
how do i make sure the tags will be using traditional chinese characters in utf-8 library?
because when i use utf-8 to utf-8 using masstager...the tags just become a bunch of `?'

thanks

This post has been edited by surf: Jun 22 2006, 05:07
Go to the top of the page
+Quote Post
Acropolis
post Jun 22 2006, 05:19
Post #5





Group: Banned
Posts: 471
Joined: 23-September 04
Member No.: 17243



QUOTE (surf @ Jun 22 2006, 14:07) *
Hmm...i have the same problems like yours.
but i'm wondering...
if i get the tags from freedb.org is in gbk encoding.
and i use the codepage action which plugged into foobar2000 0.8.3(i don't like 0.9.x..)
i choose convert simplified chinese into traditional chinese.
it worked..and the tags displayed perfect.
but i have a question...
the tags aren't in utf-8, are they?
how do i make sure the tags will be using traditional chinese characters in utf-8 library?
because when i use utf-8 to utf-8 using masstager...the tags just become a bunch of `?'

thanks


you are confused with the old codepage_action plugin, I was, also.
the action of codepage conversion is converting the tagged file from the codepage to utf-8, while simplified to traditional chinese conversion is in fact utf-8 to utf-8 conversion.

to avoid '?', you need to be aware of what the tagging character set is, bascially, if you see the garbage text, you should have 2 conversions, first for codepage to utf-8, second for simp. to trad. conversion.
if you can see the simp. chinese before doing any conversion, you just need the sim. to trad. conversion.

This post has been edited by Acropolis: Jun 22 2006, 05:20
Go to the top of the page
+Quote Post
surf
post Jun 27 2006, 08:35
Post #6





Group: Members
Posts: 3
Joined: 1-October 05
Member No.: 24824



QUOTE (Acropolis @ Jun 22 2006, 12:19) *
you are confused with the old codepage_action plugin, I was, also.
the action of codepage conversion is converting the tagged file from the codepage to utf-8, while simplified to traditional chinese conversion is in fact utf-8 to utf-8 conversion.

to avoid '?', you need to be aware of what the tagging character set is, bascially, if you see the garbage text, you should have 2 conversions, first for codepage to utf-8, second for simp. to trad. conversion.
if you can see the simp. chinese before doing any conversion, you just need the sim. to trad. conversion.


Thank you for replying to my post.
but i still have a few questions.
i have files with tags in garbage texts.
but i don't know which code set it originally using..
how do you know that?is there any program that can identified the code page the tags or filenames is using?
or i have to convert in order to check if i'm right?
i mean this when the tags of the album can't be found in freedb database.

question 2.
i know foobar can directly tag mp3 files from freedb.
but there's a problem.
i get into the `get tags from freedb' page.
and i have to choose a code page that in preview will show more correct information.
``hope you know what i'm saying...like choose gbk and it shows the tags with correct simplified chinese instead of garbage codes...''
and i tag it.
but here's the question..
after i tag it....foobar shows the simplified chinese information...
but is the tags in utf-8?
how do i know?
(when i use codepage conversion...i choose utf-8 to utf-8...it becomes a bunch of question marks...ha..smile.gif)

is there anyway to know what code page the tags of the known few tagging system, id3v2, flac tags, ape tags,.etc or the files' names in windows are using? or even just check if they're using utf-8

BTW...
I would really like to know more about code page....
any books recommended if i want to do code page conversion or identification programming...
i know there's a o'reilly book about unicode...
just hope to get some advice from people who are already doing this kind of things...

hope you all know what i'm trying to say...
(my english is not very good....)
thanks for your patience

also...
if anyone is also using the program Convertz...
i have a question...
i have some files with names with unicode simplified chinese and unicode japanese..since they only show right in unicode preview..
when i want to convert the unicode from unicode simplified chinese into unicode traditional chinese, unicode japanese will disappear..and if i actually do the conversion...the unicode japanese couldn't be recovered after the conversion.
i thought every unicode version contains the same things...
then why when i do conversions between unicode and unicode traditional chinese(that is..in Convertz...i do unicode to unicode traditional chinese), if there are characters in unicode japanese it will disappear after the conversion.
but the unicode japanese characters will show good when in unicode simplified chinese...(that is ...in Convertz i choose unicode to unicode simplified chinese.)

i wonder...

This post has been edited by surf: Jun 27 2006, 17:04
Go to the top of the page
+Quote Post
Acropolis
post Jun 27 2006, 18:37
Post #7





Group: Banned
Posts: 471
Joined: 23-September 04
Member No.: 17243



QUOTE
i have files with tags in garbage texts.
but i don't know which code set it originally using..
how do you know that?is there any program that can identified the code page the tags or filenames is using?
or i have to convert in order to check if i'm right?
i mean this when the tags of the album can't be found in freedb database.

you will not know, you have to guess to check.
QUOTE
question 2.
i know foobar can directly tag mp3 files from freedb.
but there's a problem.
i get into the `get tags from freedb' page.
and i have to choose a code page that in preview will show more correct information.
``hope you know what i'm saying...like choose gbk and it shows the tags with correct simplified chinese instead of garbage codes...''
and i tag it.
but here's the question..
after i tag it....foobar shows the simplified chinese information...
but is the tags in utf-8?
how do i know?
(when i use codepage conversion...i choose utf-8 to utf-8...it becomes a bunch of question marks...ha..smile.gif)

if you can see the simplified chinese correctly in foobar, then it is already utf-8
QUOTE
is there anyway to know what code page the tags of the known few tagging system, id3v2, flac tags, ape tags,.etc or the files' names in windows are using? or even just check if they're using utf-8

I don't understand what you mean, or you can pm me in chinese
QUOTE
BTW...
I would really like to know more about code page....
any books recommended if i want to do code page conversion or identification programming...
i know there's a o'reilly book about unicode...
just hope to get some advice from people who are already doing this kind of things...

I have no idea.
QUOTE
if anyone is also using the program Convertz...
i have a question...
i have some files with names with unicode simplified chinese and unicode japanese..since they only show right in unicode preview..
when i want to convert the unicode from unicode simplified chinese into unicode traditional chinese, unicode japanese will disappear..and if i actually do the conversion...the unicode japanese couldn't be recovered after the conversion.
i thought every unicode version contains the same things...
then why when i do conversions between unicode and unicode traditional chinese(that is..in Convertz...i do unicode to unicode traditional chinese), if there are characters in unicode japanese it will disappear after the conversion.
but the unicode japanese characters will show good when in unicode simplified chinese...(that is ...in Convertz i choose unicode to unicode simplified chinese.)

I'm having the same problem with convertz, so I guess traditional chinese doesn't have the japanese characters.

This post has been edited by Acropolis: Jun 28 2006, 05:48
Go to the top of the page
+Quote Post

Posts in this topic
- Acropolis   foo_masstag_codepage   Jun 1 2006, 18:26
- - Acropolis   nobody uses it at all?   Jun 3 2006, 20:34
- - Fiend Angelical   I'm sorry, I don't really have a use for t...   Jun 3 2006, 20:46
- - thuan   Thanks for the plugin, been waiting for sth like t...   Jun 16 2006, 00:14
- - xliu5   How does this work? I see that it is similar to th...   Jun 16 2006, 22:15
|- - Acropolis   QUOTE (xliu5 @ Jun 17 2006, 07:15) How do...   Jun 17 2006, 00:59
|- - surf   QUOTE (Acropolis @ Jun 17 2006, 07:59) no...   Jun 22 2006, 05:07
|- - Acropolis   QUOTE (surf @ Jun 22 2006, 14:07) Hmm...i...   Jun 22 2006, 05:19
|- - surf   QUOTE (Acropolis @ Jun 22 2006, 12:19) yo...   Jun 27 2006, 08:35
|- - Acropolis   QUOTE i have files with tags in garbage texts. but...   Jun 27 2006, 18:37
|- - Sky.Live   brilliant component, i have TTPlayer, convertZ, an...   Jun 28 2006, 16:07
|- - Acropolis   QUOTE (Sky.Live @ Jun 29 2006, 01:07) btw...   Jun 28 2006, 16:16
- - iOsiris   Thanks a lot, I do have to go thru the codepages m...   Jun 17 2006, 02:19
- - djet   So is it useless to convert text displayed origina...   Jun 17 2006, 13:24
|- - Acropolis   QUOTE (djet @ Jun 17 2006, 22:24) So is i...   Jun 17 2006, 16:47
- - iOsiris   K this thing works like a charm! Way better t...   Jun 21 2006, 20:49
- - darkj2k   Thanks for this gr8t plg-in. It's what I need.   Jun 26 2006, 09:41
- - Sky.Live   i guess my firefox have some issues, sorry for the...   Jun 29 2006, 19:21
|- - Acropolis   QUOTE (Sky.Live @ Jun 30 2006, 04:21) i g...   Jun 29 2006, 20:40
|- - obazavil   Hmm.. I downloaded the zip of the binary and copi...   Jul 1 2006, 16:26
- - thuan   Download and install Microsoft Visual C++ 2005 run...   Jul 2 2006, 00:32
- - SNAG   Wow, this is a lifesaver. I migrated from 0.83 t...   Jul 2 2006, 15:05
- - cvax   so how do i know which codepage to use to get my k...   Jul 13 2006, 00:28
- - kjoonlee   Korean versions of Windows are likely to be in cp9...   Jul 13 2006, 02:23
- - cvax   Okay I am quite confused at what is up with my foo...   Jul 13 2006, 05:21
- - kjoonlee   Maybe it was tagged and retagged by people from an...   Jul 13 2006, 08:04
- - cvax   That did the trick. I retagged the tracks and ever...   Jul 14 2006, 10:01
- - Acropolis   updated, put this on top of the forum......   Aug 10 2006, 01:02
- - thuan   In other words, the new codepage conversion will a...   Aug 10 2006, 02:10
|- - Acropolis   QUOTE (thuan @ Aug 10 2006, 11:10) In oth...   Aug 10 2006, 02:19
|- - yapock   QUOTE (Acropolis @ Aug 10 2006, 09:19) if...   Aug 21 2006, 02:07
|- - Acropolis   QUOTE (yapock @ Aug 21 2006, 11:07) Excus...   Aug 21 2006, 10:57
- - apple pie   Sir, after using this plug-in, i can see the Chine...   Aug 20 2006, 08:53
- - thuan   In masstagger manage scripts there're two new ...   Aug 21 2006, 04:22
- - adrianmak   I tried to use this addon to convert chinese tradi...   Aug 28 2006, 06:23
- - LordWarlock   It would be great if the plugin allowed to specify...   Aug 28 2006, 08:34
|- - Acropolis   @adrianmak firstly, unicode virtually is utf-16. s...   Aug 28 2006, 20:32
- - neothe0ne   QUOTE (Acropolis @ Aug 9 2006, 21:19) cur...   Sep 18 2006, 22:06
|- - Acropolis   QUOTE (neothe0ne @ Sep 19 2006, 07:06) Ju...   Sep 18 2006, 22:19
|- - Acropolis   QUOTE (neothe0ne @ Sep 19 2006, 07:06) Ju...   Sep 20 2006, 23:11
- - thuan   Thanks Acropolis, you rock, I have been waiting fo...   Sep 21 2006, 00:58
|- - Acropolis   QUOTE (thuan @ Sep 21 2006, 09:58) Thanks...   Sep 21 2006, 07:32
|- - sinan   This is plain super!! I have very long sou...   Sep 30 2006, 22:03
|- - Rchanc   Hi... I'm really eager to try out the Masstagg...   Sep 30 2006, 22:54
|- - Acropolis   before the server comes back, get it here: http://...   Oct 2 2006, 11:24
- - neothe0ne   I can't seem to access your new page, Acropoli...   Oct 3 2006, 03:21
- - slashjunior   Would anyone beable to tell me how to get greek so...   Oct 6 2006, 15:07
- - foofoofoo   If someone has problems with cyrillic characters, ...   Oct 6 2006, 16:48
- - hotzenpl0tz   Maybe someone can help me here, I think I have som...   Oct 14 2006, 13:05
|- - Acropolis   QUOTE (hotzenpl0tz @ Oct 14 2006, 22:05) ...   Oct 14 2006, 14:16
- - hotzenpl0tz   Ah, the font was the culprit ! Thanks alot, I ...   Oct 14 2006, 15:49
- - vir   Future requests I'd like multiple instances o...   Oct 14 2006, 22:07
|- - Acropolis   QUOTE (vir @ Oct 15 2006, 07:07) Future r...   Oct 15 2006, 01:06
- - hal9001   Okay. Found it: For anyone using FreeDB2 and getti...   Nov 9 2006, 19:33
- - cuthead   Very Userful for chinese slave.It process thousand...   Feb 27 2007, 18:00
|- - Acropolis   for people who are using vista, you may consider t...   Mar 1 2007, 20:13
- - Zelphar   sorry I like this plugin very much but now i cant ...   Apr 3 2007, 09:00
- - thuan   It should be on Acropolis's blog.   Apr 3 2007, 11:57
- - Johnatton   EDIT: Nevermind I found the cause of the problem. ...   Apr 8 2007, 11:36
- - muitommy   thank you very much. dude   Apr 28 2007, 13:37
- - Borisz   Ah, I was just looking for this in 0.9. Thanks, ve...   Apr 28 2007, 15:11
- - Acropolis   updated~   May 20 2007, 14:44
- - xiaoxin_ai   总算可以回复...   Jul 28 2007, 13:22
- - DarkFader   First of all, thanks Acropolis for this add-on. I...   Oct 4 2007, 00:27
|- - foosion   QUOTE (DarkFader @ Oct 4 2007, 01:27) Upd...   Oct 4 2007, 08:49
|- - Acropolis   QUOTE (DarkFader @ Oct 4 2007, 07:27) 1) ...   Oct 5 2007, 20:39
|- - ElTopo   Acropolis: when will your site be back online?   Nov 3 2007, 19:57
|- - Acropolis   seriously, I don't know. I will not update th...   Nov 4 2007, 05:25
- - thuan   EDIT: NVM, wrong problem.   Oct 4 2007, 02:02
- - iOsiris   I get this error now in v0.9.5 Failed to load DLL...   Jan 16 2008, 02:15
|- - drbeachboy   QUOTE (iOsiris @ Jan 15 2008, 20:15) I ge...   Jan 16 2008, 02:57
- - iOsiris   It is in the directory, the only difference should...   Jan 17 2008, 01:03
- - eddy@   From Acropolis' Blog: QUOTE here are the lates...   Jan 17 2008, 01:51


Closed 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: 20th September 2014 - 03:39