Markus Kuhn writes:
> Edmund GRIMLEY EVANS wrote on 2000-09-10 09:13 UTC:
> > #define CCHARW_MAX 5
> > typedef struct
> > {
> > attr_t attr;
> > wchar_t chars[CCHARW_MAX];
> > }
> > cchar_t;
>
> How about setting CCHARW_MAX = 3 if memory is an issue here?
The X/Open spec says "Implementations may limit the number of
non-spacing characters that can be associated with a spacing
character, provided any limit is at least 5."
But I guess, in practice, 3 will be enough. Some precombined Greek
characters like "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND
YPOGEGRAMMENI" have three accents, therefore it seems that terminal
emulators should be able to display them even if they come in
decomposed form.
> This will give you 18 months * log_2(24 bytes/16 bytes) = 10.53
> months of Moore's law ... :)
Yes :-)
Bruno
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/