Hi,
* What's the country code for 'kn'? I've got a choice of "KN\0", "\0", or NULL

Hard to say... lcms only returns the profile contents and does not "cook" any string.

The underlying standards are:

/Language Code: /http://lcweb.loc.gov/standards/iso639-2/iso639jac.html//

/Country Codes: /http://www.iso.ch/iso/en/prods-services/iso3166ma/index.html

ICC have this note: http://color.org/unicode.xalter

Which is very scarce.

Regarding serbian latin, sorry I have no idea. This is beyond lcms scope and probably have to do with ICC spec itself. You could contact ICC by using the "ask Phil" mail
askp...@colourspace.demon.co.uk

how do we return *all* the supported country codes and
language codes for a given cmsInfoType?

Instead of cmsGetProfileInfo(), which is a simplified interface, use cmsReadTag(). This will return a cmsMLU object with all strings in all locales. There is a function cmsMLUgetTranslation that returns the selected language and country. Maybe you would need some extra function to access the MLU internals. Let me
know if this is the case.

Regards
Marti


El 20/03/2013 14:52, Richard Hughes escribió:
On 20 March 2013 10:03, Richard Hughes <hughsi...@gmail.com> wrote:
cmsMLUsetWide seems to do what I need, but I'm slightly confused about
a few things:
* What's the country code for 'kn'? I've got a choice of "KN\0", "\0", or NULL
* What do I do about the sr@latin translations?
Also,

* cmsGetProfileInfo returns the correct mluc object for a specific
locale, but how do we return *all* the supported country codes and
language codes for a given cmsInfoType? If I want to verify there are
indeed 3 translations (en_GB, en_US and fr_FR) in the profile I'm
having to use a hex-editor, or change my $LANG, which isn't suitable
for use in the end-to-end self tests I use in colord.

Thanks,

Richard.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to