MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
Thread Tools Display Modes
Old 2005-03-12, 22:41   #1 (permalink)
Anonymous
Guest
 
Posts: n/a


Default Enabling non-latin (aka Unicode) fonts in MP

[I think it has not yet been covered in the tips forum]

Want MP to be able to display your files or MP3 tags in the language that uses non-latin fonts? Let's say you want to display Greek (Russian, etc.) file names in MP and you still use English as a GUI language

1. Go to http://www.unicode.org/charts/ and get the max index of the character set you're going to display. for example - for Greek that would be 03FF. Convert that to decimals - 1023

2. Go to the language folder then go to the language you're using in MP (that would be "english") and edit your strings.xml - enter the value from step 1 into the characters tag.

3. Restart MP

A couple of notes

- version 0.1.0.10 supports up to 5000 characters, any bigger value you enter will not have any effect.

- current MP way of dealing with fonts is to preload all the characters in video memory, if you get blurry results that means that the character range you entered is too big for MP to handle and you're pretty much out of luck (I'd be glad to be proven wrong here)

- If you feel that staring of MP takes forever after you increased the number of characters, try to select a skin with fewer number of fonts, or modify your skin to reduce the number of fonts by reusing some of them. I found that this can noticeably improve startup time
  Reply With Quote
Old 2005-03-12, 23:25   #2 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Khalkis, Greece
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via ICQ to yian Send a message via MSN to yian
Default

Hi there

Thanks for the tip. It worked fine until I maximized the visualization (pressing the key "x").

When I returned back to normal the fonts were wrong again.

After restarting MP the fonts are still wrong.
yian is offline   Reply With Quote
Old 2005-03-17, 19:42   #3 (permalink)
sanga
Guest
 
Posts: n/a


Default Unicode

I have many foreign MP3 Files for example thai, I have no problem to see Titles and Artists with my eschell (with MS Media) in Thai mixed with english MP3
Tags.
I think the problem is the musik database, which do not use UNICODE,
Is there a way to switch to Unicode and rebuild the database ?
  Reply With Quote
Old 2005-03-19, 07:00   #4 (permalink)
Anonymous
Guest
 
Posts: n/a


Default Re: Unicode

Quote:
Originally Posted by sanga
I have many foreign MP3 Files for example thai, I have no problem to see Titles and Artists with my eschell (with MS Media) in Thai mixed with english MP3
Tags.
I think the problem is the musik database, which do not use UNICODE,
Is there a way to switch to Unicode and rebuild the database ?

This can be caused by a buggy MP3 tagging. You can either re-tag your files with the proper unicode tags or you'd have to recompile MP. current version of tag readers just blindly follows the standard and uses 1252 encoding when no encoding is specified in the tag

TagReaderPlugins\MP3\TextBuilder.cs:

Code:
		public static string ReadASCII(byte[] frame,ref int index)
		{
			string text = null;
			int count = Memory.FindByte(frame,0,index);
			if(count == -1)
			{
				throw new Exception("Invalid Frame");
			}
			if(count > 0)
			{
				Encoding encoding = Encoding.GetEncoding(1252); // Should be ASCII
and

TagReaderPlugins\MP3\ID3v1.cs:

Code:
		public void Deserialize(Stream src)
		{
			BinaryReader reader = new BinaryReader(src);

			// check for ID3v1 tag
			Encoding encoding = Encoding.GetEncoding(1252); // Should be ASCII
See the comment Should be ACSII?

In fact if one ever considers that not the whole world uses latin alphabet, and the fact that dumb MP3 tagging software often uses system default encoding instead of the proper Unicode, then one should write

Code:
Encoding encoding=Encoding.Default;
(or, perhaps UTF-8?)

instead

I proposed a patch a long time ago, apparently nobody from developers are really interested

P.S. the database itself is unicode, it is tag reader that fails to notice that MP3 tag is written as is, in the default encoding (whatever was the encoding at the time of tagging) instead of doing a proper unicode
  Reply With Quote
Old 2005-08-09, 10:28   #5 (permalink)
Portal User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to koem
Default

Still the same problem in 1.3.0. Greek fonts, especially in MP3 tags and CDDB info, are wrong!

Will there be any fix in the next releases?
koem is offline   Reply With Quote
Reply

Bookmarks

Tags
aka, enabling, fonts, nonlatin, unicode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Scheduler ca n vt Codecs, External Players 12 2008-04-26 11:01
MP Slow to Launch... Fonts are to blame kaldonis General Support 1 2006-12-26 05:44
Long TV shows won't search ca n vt Codecs, External Players 20 2006-09-04 03:08
Channelswitching before recording doesn't work Bullseye General Support 0 2006-07-19 08:04
Unicode Char Fonts and Display in Media Portal yzw Skins 1 2006-03-27 23:35


All times are GMT +1. The time now is 19:36.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden