Platforms to show: All Mac Windows Linux Cross-Platform


Type Topic Plugin Version macOS Windows Linux iOS Targets
class LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for a multi localized unicode string.

MLU funtions are the low-level interface to access the localization features of V4 ICC profiles. Little CMS does offer a high-level interface for easy operation. You may want, however, handle those objects by yourself.

Obtaining localized info from profiles
In versions prior to 4.0, the ICC format defined a required tag 'desc' which stored ASCII, Unicode, and Script Code versions of the profile description for display purposes. However, this structure allowed the profile to be localized for one language only through Unicode or Script Code. Profile vendors had to ship many localized versions to different countries. It also created problems when a document with localized profiles embedded in it was shipped to a system using a different language. With the adoption of V4 spec as basis, Little CMS solves all those issues honoring a new tag type: ‘mluc' and multi localized Unicode. There is a full part of the API to deal with this stuff, but if you don't care about the details and all you want is to display the right string, Little CMS provides a simplified interface for that purpose.
Note that ASCII is strictly 7 bits, so you need to use wide chars if you want to preserve the information in the profile. The localization trick is done by using the lenguage and country codes, which you are supposed to supply. Those are two or three ASCII letters. A list of codes may be found here:

Language Code:

Country Codes:

In practice, "en" for "english" and "US" for "united states" are implemented in most profiles. It is Ok to set a language and a country even if the profile does not implement such specific language and country. Little CMS will search for a proper match.
If you don't care and want just to take the first string in the profile, you can use:

For the language:

For the country:

This will force to get the very first string, without any searching. A note of warning on that: you will get an string, but the language would be any, and probably that is not what you want. It is better to specify a default for language, and let LittleCMS to choose any other country (or language!) if what you ask for is not available.

  • 2 properties
  • 8 methods
    • method Constructor(context as LCMS2ContextMBS, items as UInt32)
    • method getASCII(LanguageCode as string, CountryCode as string) as string
    • method getTranslation(LanguageCode as string, CountryCode as string, byref ObtainedLanguageCode as string, byref ObtainedCountryCode as string) as boolean
    • method getUnicode(LanguageCode as string, CountryCode as string) as string
    • method setASCII(LanguageCode as string, CountryCode as string, ASCIIString as string) as Boolean
    • method setUnicode(LanguageCode as string, CountryCode as string, UnicodeString as string) as Boolean
    • method translationsCodes(index as Integer, byref LanguageCode as string, byref CountryCode as string) as boolean
    • method UnicodeStrings as String()   New in 23.5
  • 2 constants

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 23.5

The items on this page are in the following plugins: MBS Images Plugin.

LCMS2Mat3MBS   -   LCMS2NamedColorListMBS

💬 Ask a question or report a problem
The biggest plugin in space...