按文化选择 Unicode 字符子集
我想迭代一个字符列表。字符列表应该是 Unicode 字符集的子集。 Unicode 有很多代码,据我所知 Unicode 包括所有文化的所有字符。
我想要的是根据特定的文化选择 Unicode 字符的某个子集,因为特定的文化并不使用所有 Unicode 字符。
这可能吗?
我正在尝试绘制一组用于 OpenGL 纹理生成的字符。通过这种方式,我可以使用纹理通过 OpenGL 渲染字体字形(非常简单,足够快)。我已经支持 ASCII 字符集,因为可显示字符少于 256 个,但使用 Unicode 我需要选择字符子集,否则生成的 OpenGL 纹理将难以管理。
我正在尝试根据请求的区域性选择 Unicode 字符的子集。除了文化之外,我想不出另一个顶级过滤器。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为可以公平地说,特定文化并不使用大多数 Unicode 字符。
查看当前标准。我认为文化和脚本之间没有直接关联,这个 上一个问题涉及到这个问题。
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.