Kaixo! On Wed, Jul 17, 2002 at 06:26:47PM -0700, Keith Packard wrote: > Ok, I'm adding localized names to fontconfig. To allow applications to > continue working with a single name, I'm actually listing the localized > names in the FC_FAMILY value using a new datatype (FcTypeLangString). > Ask for a string, and you'll get back just the family name, but ask for a > LangString and you'll get both.
What you mlean by "both" ? Users should see only one name for each font; but that name should be, if exists, the localized one. Then, for programs internally, a unique name (the ascii-only one) be used. In other terms, the localized names are used to display in the lists shown to the user, when when one of those is choosen, what is returned is not the localized name but the ascii-only one. And inversly, when an ascii-only name is gotten, it should be possible to retrieve its associated localized name if needed. The localized lists shoumld be a list of 2-tuples: (ascii-name, localized-name) one used for display, and the other used for the return value in case it is chosen. > A couple of questions: > 2) Should I use the current locale to select a family from those > listed when an application requests a string for FC_FAMILY? yes. (well, it may be interesting to have a possibility to explicitelly tell a given language; but in the general case the current locale should be used, it should follow the same rules as for translations of programs interfaces and menus imho). > That would mean returning different values depending on the > locale. Of course, that is the purpose. And that is why a unique ascii-only value should always be associated with them, so programs can use that unique and locale-independent value; and users see the locale dependent value. It should be seen and handled in a way similar to the localization of programs interfaces; with the difference that translations are not handled trought gettext bu embedded in the fonts and should be handled by a specific api. -- Ki �a vos v�ye b�n, Pablo Saratxaga http://chanae.stben.be/pablo/ PGP Key available, key ID: 0xD9B85466 [you can write me in Walloon, Spanish, French, English, Italian or Portuguese]
msg00980/pgp00000.pgp
Description: PGP signature
