MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
Thread Tools Display Modes
Old 2006-07-08, 20:02   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default Unicode / Chinese / Korean / Japanese / Thai / Hebrew

Hi,

i have music with the tags for languages mentioned in the subject, but MP do not even play them. I have to rename the filename to use english characters instead of the correct name and tags from the file are never shown(only if they are in the english language). :cry:

If i tried to change the language i could find korean, but after trying to use that it's all in english.

Is MeadiaPortal just not able to display those languages? If it is capable, i would really appreciate if someone explain me how to enable it. If it could not work that way, i have to find a different app which could, just tell me if it (not yet) could.

Thank you for your time reading this.

I was trying to use 0.2.0.0 RC4.
thor42 is offline   Reply With Quote
Old 2006-07-10, 07:20   #2 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: Taiwan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts


Default RE: Unicode / Chinese / Korean / Japanese / Thai / Hebrew

You need to modify fonts.xml files in <working>ediaportal\xbmc\bin\Debug\skin\BlueTwo. My language is using Traditional Chinese, so my example is as follows,
<font>
<name>TWfont13</name>
<start>19968</start>
<end>40869</end>
<filename>MingLiu</filename>
<height>13</height>
</font>
<font>

You need to fill in the start field for Korean language ~
Isaac Lin is offline   Reply With Quote
Old 2006-07-10, 09:51   #3 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

That path should probably be mediaportal\skins\BlueTwo I think. The path given above is a reference to where the source keeps that file.

Sam
samuel337 is offline   Reply With Quote
Old 2006-07-10, 19:31   #4 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: Unicode and fonts.xml

thanks for the response, I removed C:\Programme\MediaPortal\Skin\BlueTwo\fonts and
modified C:\Programme\MediaPortal\Skin\BlueTwo\fonts.xml
for <bold>only</bold> the font13 as follow:
<quote>
<font>
<name>font13</name>
<start>19968</start>
<end>40869</end>
<filename>MingLiu</filename>
<height>13</height>
</font>
</quote>
The png's from fonts/*.png seems to be too small and there are several errors like:
<quote>
10/07/2006 19:10:02 render exceptionystem.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at MediaPortal.GUI.Library.GUIFont.FontEngineDrawText 3D(Int32 fontNumber, Void* text, Int32 xposStart, Int32 yposStart, UInt32 intColor, Int32 maxWidth)
at MediaPortal.GUI.Library.GUIFont.DrawText(Single xpos, Single ypos, Color color, String text, RenderFlags flags, Int32 maxWidth)
at MediaPortal.GUI.Library.GUIFont.DrawText(Single xpos, Single ypos, Int64 color, String label, Alignment alignment, Int32 maxWidth)
at MediaPortal.GUI.Library.GUIThumbnailPanel.RenderTe xt(Single fPosX, Single fPosY, Int64 dwTextColor, String wszText, Boolean bScroll)
at MediaPortal.GUI.Library.GUIThumbnailPanel.RenderIt em(Single timePassed, Int32 iButton, Boolean bFocus, Int32 dwPosX, Int32 dwPosY, GUIListItem pItem, Boolean buttonOnly)
at MediaPortal.GUI.Library.GUIThumbnailPanel.Render(S ingle timePassed)
at MediaPortal.GUI.Library.GUIFacadeControl.Render(Si ngle timePassed)
at MediaPortal.GUI.Library.GUIGroup.Render(Single timePassed)
at MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)
</quote>

I tried to use ArialUnicodeMS instead, still doesn't work. Anything else i need to change ( 0.2.0.0 RC4 Release is used) ? Limits 19968 to 40869 are quite more than 0-255 are ok? Somewhere i read they could be approx. 5000.
thor42 is offline   Reply With Quote
Old 2006-07-11, 04:57   #5 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: Taiwan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: Unicode and fonts.xml

Quote:
I tried to use ArialUnicodeMS instead, still doesn't work. Anything else i need to change ( 0.2.0.0 RC4 Release is used) ? Limits 19968 to 40869 are quite more than 0-255 are ok? Somewhere i read they could be approx. 5000.
Yes, the default amount of the max character is 5000 or 8000. In my environemtn, I need to display Traditional Chinese, so the rang is from 19968 to 40869 for commonly used in daily life(it's require to change font engine for non-english language). However, rang 0-255 is only containing English and numeric characters, not for Korean language. Therefore, we need to modified the end field in my example: (It will missing some of the characters on screen after modification)
<font>
<name>TWfont13</name>
<start>19968</start>
<end>24968</end>
<filename>MingLiu</filename>
<height>13</height>
</font>
<font>



Unicode character ranges and the Unicode fonts that support them:
http://www.alanwood.net/unicode/fontsbyrange.html#ufe30
Isaac Lin is offline   Reply With Quote
Old 2006-07-11, 21:58   #6 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I would also perfer to show all the chinese characters, anyway i tried to lower the number(i tried to just use just the first 2000, the fonts/font13_13.png could be viewed than):

<font>
<name>font13</name>
<start>19968</start>
<end>20968</end> <40869>
<filename>ArialUni</filename>
<height>13</height>
</font>

I could see some chinese characters, but no longer any a-zA-Z. I assume i have to use 0-40869. How could the Limit about 5000 or 8000 be removed/extended? If i increase the number i got just those errors and no display.
thor42 is offline   Reply With Quote
Old 2006-07-12, 04:03   #7 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: Taiwan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts


Default RE: How could remove or extended Limit 5000 or 8000?

Basically, you need to obtain source code from SVN server or sourceforge.net., because it containing in the source code which is fontEngine.cpp in <working>\mediaportal\Core\fontEngine. It's not a good idea to increase capacity which will require more video memory and display tiny characters on screen.

Origenal:
  • #define MAX_TEXTURE_COORDS 8000
    #define MaxNumfontVertices 8000
After modification:
  • #define MAX_TEXTURE_COORDS 40869
    #define MaxNumfontVertices 40869
Isaac Lin is offline   Reply With Quote
Old 2006-07-13, 00:15   #8 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I fetched the MS C# Install, installed it, fetched the NET2.0 SDK, installed it, fetched the TortoiseSVN and used it to fetch the Mediaportal sources.

After double-click "MediaPortal.VC#Express.sln" and from the Menu selecting Build/Rebuild Solution with 17 warnings and there is a MediaPortal.exe at xmbc/Debug. But if i start it, it has no skins(because there are none in that directory) and the app exits. At xmbc/Release there are skins, but no exe.

Copying the skins from Release to Debug doesn't help. I got the MediaPortal screen but the first click shows a Message-Box "File not found: Dialogs ..." error with immediate exit of the app.

Any pointers how to get the exe running?
thor42 is offline   Reply With Quote
Old 2006-07-13, 04:29   #9 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: Taiwan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts


Default How to compile MediaPortal

Please see "How to compile MediaPortal":
http://www.team-mediaportal.com/arti...diaportal.html
Isaac Lin is offline   Reply With Quote
Old 2006-07-13, 20:54   #10 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default

After copy Dialogs\bin\Debug\Dialog.dll into the path where MediaPortal.exe is the Dialogs error is gone.

I increased MAX_TEXTURE_COORDS and MaxNumfontVertices to 40969, but inside fonts.xml start/end values 19968-26968 are possible. If end is set to 27968 or higher the program would no longer work.

Something else needed to be changed?
thor42 is offline   Reply With Quote
Reply

Bookmarks

Tags
chinese, hebrew, japanese, korean, thai, 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
Quick Guide to Using Hebrew with MP 0.1.2.0 Anonymous Tips and Tricks 20 2005-07-17 16:37


All times are GMT +1. The time now is 17:55.


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