Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » CJK source code comment
CJK source code comment [message #15056] |
Thu, 27 March 2008 14:31  |
mobilehunter
Messages: 87 Registered: November 2006
|
Member |
|
|
I just installed TheIDE for linux (sabayon).
I tried to insert some japanese comment to UWord source code.
But nothing happened (no character shown).
I also tried to enter japanese character at UWord, i got box character instead. One box character per IME session, i input many characters but only 1 box character shown.
Does this feature already supported?
Which source code part should i play with?
Thanks
|
|
|
Re: CJK source code comment [message #15057 is a reply to message #15056] |
Thu, 27 March 2008 14:38   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
mobilehunter wrote on Thu, 27 March 2008 09:31 | I just installed TheIDE for linux (sabayon).
I tried to insert some japanese comment to UWord source code.
But nothing happened (no character shown).
I also tried to enter japanese character at UWord, i got box character instead. One box character per IME session, i input many characters but only 1 box character shown.
Does this feature already supported?
Which source code part should i play with?
Thanks
|
I guess, for the comment, make sure you have utf-8 encoding for the file first...
Then the problem is fonts. AFAIK, "predefined" linux fonts do not contain CJK glyphs. In fact, they do not usually contain even anything else than ISO8859-1, but U++ goes over this limitation somewhat by synthetising characters in unicode range 256-512...
Frankly, I am not 100% sure what to do with it. I guess we will need to pull CJK from other fonts than those predefined I guess (but at what priority?).
BTW, speaking about it, what is the notion of font for CJK? I have noticed that for the limited number of fonts that support CJK on Win32, all glyps look basically the same, just the density is somewhat altered... (if this is the case, I could probably just use some "default CJK" font for missing glyphs or something like that..).
Mirek
|
|
|
|
Re: CJK source code comment [message #15597 is a reply to message #15057] |
Wed, 30 April 2008 03:40   |
mobilehunter
Messages: 87 Registered: November 2006
|
Member |
|
|
luzr wrote on Thu, 27 March 2008 22:38 |
Then the problem is fonts. AFAIK, "predefined" linux fonts do not contain CJK glyphs. In fact, they do not usually contain even anything else than ISO8859-1, but U++ goes over this limitation somewhat by synthetising characters in unicode range 256-512...
Frankly, I am not 100% sure what to do with it. I guess we will need to pull CJK from other fonts than those predefined I guess (but at what priority?).
BTW, speaking about it, what is the notion of font for CJK? I have noticed that for the limited number of fonts that support CJK on Win32, all glyps look basically the same, just the density is somewhat altered... (if this is the case, I could probably just use some "default CJK" font for missing glyphs or something like that..).
Mirek
|
I know nothing too about this, i just try to fill something missing.
I tried to enumerate all fonts, and print japanese text using those fonts. Some of the font which able to print japanese are "kochi mincho" and "kochi gothic".
Is there any algorithm to select this font automatically if we use Draw::DrawText function?
Another one, which part of UPP codes do characters synthetising?
Thanks
|
|
|
Re: CJK source code comment [message #15598 is a reply to message #15597] |
Wed, 30 April 2008 10:41   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
mobilehunter wrote on Tue, 29 April 2008 21:40 |
luzr wrote on Thu, 27 March 2008 22:38 |
Then the problem is fonts. AFAIK, "predefined" linux fonts do not contain CJK glyphs. In fact, they do not usually contain even anything else than ISO8859-1, but U++ goes over this limitation somewhat by synthetising characters in unicode range 256-512...
Frankly, I am not 100% sure what to do with it. I guess we will need to pull CJK from other fonts than those predefined I guess (but at what priority?).
BTW, speaking about it, what is the notion of font for CJK? I have noticed that for the limited number of fonts that support CJK on Win32, all glyps look basically the same, just the density is somewhat altered... (if this is the case, I could probably just use some "default CJK" font for missing glyphs or something like that..).
Mirek
|
I know nothing too about this, i just try to fill something missing.
I tried to enumerate all fonts, and print japanese text using those fonts. Some of the font which able to print japanese are "kochi mincho" and "kochi gothic".
Is there any algorithm to select this font automatically if we use Draw::DrawText function?
|
Not yet. BTW, are "kochi mincho" and "gothic" different glyphs?
(I mean, has CJK notion of things like font style?).
Quote: |
Another one, which part of UPP codes do characters synthetising?
|
Draw/ComposeText.cpp
Mirek
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 17:46:51 CEST 2025
Total time taken to generate the page: 0.01074 seconds
|