Re: [Libaps-general] Printer name selection
Brought to you by:
brianpirie,
tranter
From: Brian P. <br...@co...> - 2000-06-13 19:55:24
|
Hi Waldo, > E.g. with a printcap entry like: > > lp|ap|arpa|ucbarpa|LA-180 DecWriter III:\ > > I get "ap" as name. I rather would be able to show "LA-180 DecWriter III" to > the user. Coincidentally, this is something that I've been working on today. The heuristic that I'm using is, when a printcap entry has multiple alias names, to prefer the first one that contains a space character as the primary name for that printer. Do you think this rule of thumb will cover most situations? The alternative that I thought of was to select the longest of the names. > Slightly related, all strings are represented as "const char *". Assuming > that in some cases these strings are user defined it would be usefull to > define in the API what the character encoding of such a string is supposed to > be. utf8 seems a good candidate to me. I can certainly see the use in this. I have to admit that I am not personally an expert in different character encodings nor localization/globalization issues in general. Can you give me more information on what this character set is, and what alternatives we could potentially specify? -- Brian Pirie Project Leader - Printing Technologies Corel Corporation br...@co... (613) 728-8200 x1407 |