x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

How to enable chinese encoding in MSIE on a 900c

1 2
kkkoay Page Icon Posted 2007-06-25 12:44 AM
#
Avatar image of kkkoay
Factorite (Junior)

Posts:
35
Location:
Singapore
Status:
Hi all, I have a 900c with 2 chinese ttf files copied into \windows\fonts. I tested the new fonts on WordPad and it works correctly. When I tried to access some chinese websites, the correct font was not loaded. Also the language encoding option in MSIE does not list the 2 character sets I added

Any idea on how to add the new character sets to MSIE? Can I use system wide EUDC to add character sets to all applications? Any impact on ram usage if using EUDC because these 2 .ttf files require 8MB+ storage space
 Top of the page
theoak Page Icon Posted 2007-06-25 8:50 AM
#
Avatar image of theoak
H/PC Philosopher

Posts:
464
Location:
Virginia, USA
Status:
Have you tried fooling with:
View > Encoding > Auto-Select (or maybe More > User Defined)?
 Top of the page
kkkoay Page Icon Posted 2007-06-25 10:55 AM
#
Avatar image of kkkoay
Factorite (Junior)

Posts:
35
Location:
Singapore
Status:
I did try out the User Defined option. The User Defined option is nothing more that just instructing IE to display the page using the language and fonts specified in HTML meta text.

My guess is I have to register these two character sets in the registry for IE to use them. This is getting too complex for me to handle. Haven't touch any code, registry or config file for a long time now
 Top of the page
theoak Page Icon Posted 2007-06-25 11:29 AM
#
Avatar image of theoak
H/PC Philosopher

Posts:
464
Location:
Virginia, USA
Status:
Maybe this info will help:

http://www.hpcfactor.com/support/cesd/s/0059.asp

Notice the statement:

"In general the font file itself has been specially compiled for use on Mobile Devices in order to maintain a low footprint."

So can you find the font recompiled for CE maybe?

Maybe try SmallTweak's font tab?
 Top of the page
takwu Page Icon Posted 2007-06-26 4:29 AM
#
Avatar image of takwu
H/PC Elder

Posts:
1,953
Location:
BC, Canada
Status:
What do you mean you tested the fonts in WordPad?

For viewing webpages you need more than just a character set, you need the correct encoding (GB and Big5). As far as I know, the IE in CE does not have these encoding, so you cannot just "enable" it.

You will probably need a third party add-on, such as Monster Chinese. I haven't tried Monster on any HPC, but they do have an HPC2000 version on their download page. It's shareware, so you need to purchase it after the trial period. And it's not cheap
 Top of the page
kimstudio Page Icon Posted 2007-06-26 6:15 AM
#
Avatar image of kimstudio
Factor Fanatic

Posts:
64
Location:
Shanghai
Status:
You just need a file called "wince.nls" which I uploaded in a post.

After adding the Chinese ttf font, you need to modify the Fontlink in registry to link the English font to the Chinese font, then it is done.
 Top of the page
kkkoay Page Icon Posted 2007-06-26 8:38 PM
#
Avatar image of kkkoay
Factorite (Junior)

Posts:
35
Location:
Singapore
Status:
I loaded two font (mingliu.ttf,mssong.ttf) into \Windows\fonts and most applications recognized them right away. But not MSIE. The step for adding new font to other application is as simple as just copy the .ttf file from a standard Win2K system to CE directory.

Yesterday, I made these modified the registry

1. Include language code as specified in Rfc1766 to the registry key
[HKEY_CLASSES_ROOT\MIME\Database\Rfc1766]

2. Add new fonts to system
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts]

3. Enable fontlinking
[HKEY_LOCAL_MACHINE\System\GDI]
"FontLinkMethods"=dword:00000001

4. Link multiple fonts to enable display of multiple charset in one page
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fontlink\SystemLink]
"Tahoma"="mingliu.ttf,MingLiU"
"Arial"="mingliu.tff,MingLiU"

5. Add character set code page
[HKEY_CLASSES_ROOT\MIME\Database\Codepage\936]
[HKEY_CLASSES_ROOT\MIME\Database\Codepage\950]

After all these changes, it was still not working. But some chinese font started to show up in web page but not the correct one

So today I will try kimstudio method to see how I can get it to work.

 Top of the page
kimstudio Page Icon Posted 2007-06-26 11:37 PM
#
Avatar image of kimstudio
Factor Fanatic

Posts:
64
Location:
Shanghai
Status:
1) Copy "wince.nls" in \Windows
You can find "wince.nls" in this post.
http://www.hpcfactor.com/forums/forums/thread-view.asp?tid=9356&posts=8&start=1

2) Usually I will copy font into \Windows directory.
The registry should like this:
"Tahoma"="\Windows\mingliu.ttf,MingLiU"
"Arial"="\Windows\mingliu.ttf,MingLiU"

 Top of the page
kkkoay Page Icon Posted 2007-06-27 3:48 AM
#
Avatar image of kkkoay
Factorite (Junior)

Posts:
35
Location:
Singapore
Status:
Yahoooo It worked per kimstudio instruction. I did a hard reset to start from fresh and copied the wince.nls to \Windows and all the fonts into \Windows\fonts.
Then I modified the following registry keys to add language and font linking capabilities.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts]
"MingLiU & PMingLiU (TrueType)"="mingliu.ttf"
"MS Song (TrueType)"="mssong.ttf"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fontlink\SystemLink]
"Arial"="\Windows\fonts\mingliu.ttf,MingLiU"
"Tahoma"="\Windows\fonts\mingliu.ttf,MingLiU"
"Time New Roman"="\Windows\fonts\mingliu.ttf,MingLiU"
"Courier New"="\Windows\fonts\mingliu.ttf,MingLiU"
"Symbol"="\Windows\fonts\mingliu.ttf,MingLiU"

[HKEY_LOCAL_MACHINE\System\GDI]
"FontLinkMethods"=dword:00000001

Perform a soft reset and MSIE displays the charset correctly. I only encounter a webpage in utf-8 that didn't work but others displayed correctly. The utf-8 charset that contains the font is just too big to use in CE.

Thanks you for all your support.
 Top of the page
takwu Page Icon Posted 2007-06-27 2:33 PM
#
Avatar image of takwu
H/PC Elder

Posts:
1,953
Location:
BC, Canada
Status:
oO
Where did you get this wince.nls? It's quite a big file... If there's no licensing issues with this file, maybe you should package everything together (the nls, the fonts, and the registry) and distribute it.
I'll try this method when I have time.

BTW I have JiPilMook for Nexio so I never looked into other methods, but it takes way too much RAM
 Top of the page
cmonex Page Icon Posted 2007-06-27 2:44 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:

licensing, dont be kidding... same as every hacked dll. just package it up and i will host it.


Edited by cmonex 2007-06-27 2:45 PM
 Top of the page
takwu Page Icon Posted 2007-06-27 2:58 PM
#
Avatar image of takwu
H/PC Elder

Posts:
1,953
Location:
BC, Canada
Status:
lol
yeah after googling a bit, apparently this nls file should come from a WM or CE build...

But cmonex you should be aware that such package will probably work on a PPC, so by hosting it you could be exposing yourself to a lot more viewers... not always a good thing, especially if there's a legal issue

That said, though, I'd still appreciate it if you do it. !

Edited by takwu 2007-06-27 3:03 PM
 Top of the page
cmonex Page Icon Posted 2007-06-27 5:36 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
well, i don't mind

i already have lots of visitors, btw.

will package this up with the instructions soon
 Top of the page
kkkoay Page Icon Posted 2007-06-27 8:34 PM
#
Avatar image of kkkoay
Factorite (Junior)

Posts:
35
Location:
Singapore
Status:
I have made a zip that contains all the required files (6MB+) but where to upload? These two .ttf files account for 8MB+ unzipped. That is I managed to get the slimmer version of these .ttf, otherwise the normal version of these .ttf files, both combined will be more that 16MB+.
 Top of the page
kimstudio Page Icon Posted 2007-06-28 10:56 AM
#
Avatar image of kimstudio
Factor Fanatic

Posts:
64
Location:
Shanghai
Status:
The Mingliu.ttf is a good Chinese font, but the best one is Microsoft Yahei, which was developed by MS especially for Windows Vista and TFT, and it's called the most expensive font in the world (MS said for every character they spend about 100US$).

After turning on cleartype, the quality is amazing. It includes not only Chinese but also Japanese and Korean characters.

You can see its performance on S155.
http://www.hpcfactor.com/forums/forums/thread-view.asp?tid=9007&posts=13&start=1

I really recommend this font if you want to view Asian fonts and you can turn on cleartype.
 Top of the page
1 2
Jump to forum:
Seconds to generate: 0.234 - Cached queries : 70 - Executed queries : 11