Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Basic character set analyzer
Re: Basic character set analyzer [message #19890 is a reply to message #19889] |
Fri, 30 January 2009 09:59   |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
luzr wrote on Fri, 30 January 2009 10:28 |
Good, getting somewhere.
I believe the problem with the above font is that it does not have diacritics characters defined.
What is your solution to the problem?
|
That's exactly the problem. I'm using two way substitution, replacing both base character and diacritic when necessary. Diacritics look similar enough across fonts so no problems here with substitution. For base char, I'm using StdFont. This way at least characters substituted across different fonts will at least look the same, even though the might differ visually from current font. But this is not a big problem for Latin, because most font either have all characters from a range or have none. There are some who have an arbitrary subset of those characters, but I'm guessing that the subset is biased toward an existing language and since people will probably use that font to render that given language, we shouldn't have many cases where substitution result in ugly text.
Quote: |
Hm, maybe it is just terminology issue - by composition I mean creating a new glyph by composing two other glyphs (basic latin character + diacritics glyph) from the same font.
|
That's for Latin composition (which I'm implementing right now). For non-Latin composition, I create a new glyph based on a non-Latin little drawing and combine it with another one (which could be considered a diacritic).
The reasons why I'm not altering your code and witting a new one are:
1. I want to have full composition with arbitrary bases and diacritics to handle all Unicode composition characters. I can place a '-' on something, but I can also place any printable character.
2. I am implementing these methods as functions that take a Draw object as their first parameter so that I can use the code without having to integrate it into Draw. While some minor additions are necessary to Draw (a method to determine if font has char and one to determine the exact bounding box of a character), getting these accepted is going to be easier than a full blown Unicode composition engine with heavy bias toward Latin and CJK. And BTW, I'm still completely against Utf32, so it's safer this way .
|
|
|
 |
|
Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Thu, 18 December 2008 11:34
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Sat, 24 January 2009 14:00
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Sun, 25 January 2009 10:56
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Fri, 30 January 2009 08:53
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Fri, 30 January 2009 09:28
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mr_ped on Sat, 31 January 2009 14:18
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Mon, 02 February 2009 09:40
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Sat, 07 February 2009 14:53
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Mon, 09 February 2009 08:47
|
 |
|
Re: Basic character set analyzer
|
 |
|
Re: Basic character set analyzer
By: mirek on Mon, 09 February 2009 08:42
|
Goto Forum:
Current Time: Fri Jun 20 16:36:04 CEST 2025
Total time taken to generate the page: 0.03821 seconds
|