| Summary: | GB18030: The Mongolian characters(4-bytes) can't be displayed in hover. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Cheng xu <xucheng> |
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Cheng xu
Created attachment 20098 [details]
The Mongolian characters(4-bytes) can't be displayed in hover.
Do you see it correctly when simply moving the mouse and wait for the hover (instead of pressing F2)? Created attachment 20110 [details]
Screenshot of simple moving mouse without F2 key
Yes, when just simple moving mouse to the class name(without press F2 key), the
hover can correct display Mongolian char.
That's what I expected. The problem is in the Browser widget which is used when pressing F2. What is the name of font you are using ? The font name is SimSun18030. You can get GB18030 Support Package (English) from Microsoft site. Here is the address: http://www.microsoft.com/downloads/details.aspx? displaylang=en&FamilyID=fc02e2e3-14bb-46c1-afee-3732d6249647 Can you view a html file in your IE containg the characters (3400 and 1827) ? No font in my system can display these characters, I had to install SimSun18030 to be able to see them. The font substitution (FontLink) doesn't use this new font, so you need to set the font of the widget to SimSun18030 or it won't work. For these character you can't relie on font linking (font substitution). You need to set the right font in the widget. Here is the problem, for the Browser widget calling setFont doesn't help. You would need to specify the font in the html, something like: <FONT FACE="SimSun-18030"> text </FONT> Created attachment 20217 [details]
HTML file in 18030 encoding
Created attachment 20218 [details]
GB18030 Characters range(GB18030, Unicode, UTF8) and example
If the file saved as GB18030 encoding, IE browser can recognize all the words.
Please see below example.
Prerequisite:
1. Install GB18030 support package for OS
2. Set all items in Controller->Displayer->Outlook->Advance to SimSun18030
fonts
3. Set all the fonts in Eclipse to SimSun18030 from menu
Windows->Preference->General->Appearance->Colors & Fonts.
4. Set IE fonts to SimSun18030, and encoding to GB18030.
Making the file from Eclipse
1. Create a file named with "18030.txt", copy GB18030 chars to it.
2. Rename the file to "18030.html".
3. Look for this file from File Manager and open it with IE browser.
-> all the GB18030 code can be recognized.
To view the file in Hex format, you can find GB18030 encode are here.
I submit a html file in GB18030 encoding and a word file for GB18030
range(GB18030, Unicode, UTF8) for your reference.
closing as wont fix These chars are not natively supported by windows xp. You have to set the right font in the control in order to display them. In IE you can change the font in Control Panel -> Internet Options. |