Skip to main content

Topic: foo_masstag_codepage (Read 103018 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
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.
  • Last Edit: 20 May, 2007, 09:43:54 AM by Acropolis

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #1
nobody uses it at all?

foo_masstag_codepage
Reply #2
I'm sorry, I don't really have a use for this. Not really into non-English songs. I'm sure someone will. Good job though.

  • thuan
  • [*][*][*][*][*]
foo_masstag_codepage
Reply #3
Thanks for the plugin, been waiting for sth like this for a while. The only problem now I found is I have to install the MSVC8 runtime lib.

  • xliu5
  • [*]
foo_masstag_codepage
Reply #4
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).

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #5
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).
  • Last Edit: 16 June, 2006, 08:10:20 PM by Acropolis

  • iOsiris
  • [*][*][*]
foo_masstag_codepage
Reply #6
Thanks a lot, I do have to go thru the codepages manually a lot for Chinese songs, I'll try it out

  • djet
  • [*][*][*]
foo_masstag_codepage
Reply #7
So is it useless to convert text displayed originally in a wrong encoding?

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #8
So is it useless to convert text displayed originally in a wrong encoding?


I don't know what you mean by "originally in a wrong encoding", but I can give you another example.

if you have a japanese song using S-JIS as its tagging codepage, but you are not using a japanese windows. the meta info displayed in your foobar will probably be empty (blank) or garbage text. You can use this plugin to convert the text with codepage 932 to utf-8, the text will then be properly displayed.

  • iOsiris
  • [*][*][*]
foo_masstag_codepage
Reply #9
K this thing works like a charm!  Way better than having to go thru in individualy, thanks !

  • surf
  • [*]
foo_masstag_codepage
Reply #10
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
  • Last Edit: 22 June, 2006, 12:07:42 AM by surf

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #11
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.
  • Last Edit: 22 June, 2006, 12:20:30 AM by Acropolis

  • darkj2k
  • [*]
foo_masstag_codepage
Reply #12
Thanks for this gr8t plg-in. It's what I need.

  • surf
  • [*]
foo_masstag_codepage
Reply #13
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..)

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...
  • Last Edit: 27 June, 2006, 12:04:38 PM by surf

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #14
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..)

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.
  • Last Edit: 28 June, 2006, 12:48:44 AM by Acropolis

  • Sky.Live
  • [*]
foo_masstag_codepage
Reply #15
brilliant component, i have TTPlayer, convertZ, and pagecode just to settle my problem with encoding..


.traditional chinese dont support japanese, use simplified instead, i am using jis for my self

btw, i cant download the archieve...
  • Last Edit: 28 June, 2006, 11:13:17 AM by Sky.Live

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #16
btw, i cant download the archieve...

I've just checked, the download link is valid, what do you mean?

  • Sky.Live
  • [*]
foo_masstag_codepage
Reply #17
i guess my firefox have some issues, sorry for the inconvenients

are we suppose to click on the word binary to download?
  • Last Edit: 29 June, 2006, 02:25:59 PM by Sky.Live

  • Acropolis
  • [*][*][*][*]
  • Banned
foo_masstag_codepage
Reply #18
i guess my firefox have some issues, sorry for the inconvenients

are we suppose to click on the word binary to download?

yes

  • obazavil
  • [*]
foo_masstag_codepage
Reply #19
Hmm..

I downloaded the zip of the binary and copied the dll into foobar components.

however, i get this:
Failed to load DLL: foo_masstag_addons.dll

i have foobar 0.9.2 and masstager componen installed.

any ideas? :S
\"I never said I would stay to the end...\"

  • thuan
  • [*][*][*][*][*]
foo_masstag_codepage
Reply #20
Download and install Microsoft Visual C++ 2005 runtime here or .NET Framework 2.0 if u need it.

  • SNAG
  • [*][*]
foo_masstag_codepage
Reply #21
Wow, this is a lifesaver.

I migrated from 0.83 to 0.9, and there's quite a big of files that I tagged using GB2312 (Simp. Chinese) - using the built in XP Language typing.

However, when I migrated to 0.9, the files' metadata was not recognized. Your plugin saved me..

PS: Does foobar only recognize only Unicode formatting, and not the rest? If I click on the file properties with Explorer, I can still see the metadata there...

  • cvax
  • [*][*]
foo_masstag_codepage
Reply #22
so how do i know which codepage to use to get my korean songs showing?

  • kjoonlee
  • [*][*][*][*][*]
foo_masstag_codepage
Reply #23
Korean versions of Windows are likely to be in cp949. Maybe you should use 949.

  • cvax
  • [*][*]
foo_masstag_codepage
Reply #24
Okay I am quite confused at what is up with my foobar in its abilities to display foreign characters. I've tried pretty much all the codepages to no avail. My foobar seems to be able to show some of the tags properly while other's don't work. Any help would be great.

Heres a picture of what I mean

screenshot

You can see it displaying the korean in the BAND field just fine. Doesn't want to work in the others though :/

Moderation: Please refrain from inlining images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.
  • Last Edit: 13 July, 2006, 07:33:42 AM by foosion