Luca
Luca

Reputation: 11981

Select Unicode character subset by culture

I'd like to iterate over a character list. The character list should be a subset of a Unicode character set. Unicode have a lot of codes, and AFAIK Unicode includes all characters for all cultures.

What I want is to select a certain subset of Unicode characters depending on a specific culture, since a specific culture doesn't use all Unicode characters.

Is this possible?

I'm trying to draw a set of characters for OpenGL texture generation. In this way I can render font glyphs with OpenGL using a texture (very simple, enought fast). I'm already supporting ASCII character set, since there are less than 256 displayable characters, but with Unicode I need to select a subset of characters, otherwise the resulting OpenGL texture will be unmanageable.

What I'm trying is to select a subset of Unicode characters depending on the requested culture. I cannot think about another top level filter except the culture.

Upvotes: 1

Views: 640

Answers (1)

Jodrell
Jodrell

Reputation: 35726

I think it would be fair to say, a specific culture does not use most Unicode Characters.

Check out the current standard. I don't think there is a direct correlation between Cultures and Scripts, this previous question touches on the problem.

Upvotes: 1

Related Questions