web analytics
ZanyBlue - 1.3.0b released | Ada Forge - News

ZanyBlue - 1.3.0b released

The changes since the last release are:
  • Added a new utility zbinfo to query built-in data. This was released as an example previously (the dumplocale example which has been dropped).
  • Added encoding support to convert Wide_String values to String based on an encoding schema, e.g., UTF-8, ISO8859-2, CP932, SHIFT_JIS, etc. To fully use this functionality, narrow accessors should be used which, when printing, use Stream_IO to avoid interaction between the Text_IO and encoded values. The list of supported encodings is available via zbinfo --list-encodings.
  • The default locale is now en_US.UTF-8 if no other locale can be determined from the environment.
  • Updated the documentation (and website) to use the Sphinx documentation system.
  • Updated and expanded the documentation. Additional documentation is, however, needed. Switch to gnatdoc from gnathtml to generate the source code based documentation.
  • Restricted the usage of the -gnatW8 compilation option to just the source files containing UTF-8 encoded strings: the message pool file generated by the zbmcompile utility.
  • Added option to the zbmcompile utility to generate ASCII only source files (-A option).
  • Added option to the zbmcompile utility to define handling of non-Ada message keys when generating accessors (the -X option).
  • Updated the build to use gprbuild instead of gnatmake.
  • Updated the build to use -gnat2012 in all gpr files.
  • Switched from AUnit to Ahven for unit testing.
  • Minor source code changes based on stricter checks with GNAT 2016.


From Michael Rohan.

The initial functionality covers globalization support for Ada. Globalization, (normally abbreviated to simply g11n) covers support within the source code for multiple languages (this is termed internationalization or i18n) and the ability to supply translations for strings used in an application (localization or l10n).

Globalization is supported by the ZanyBlue text library by providing routines to access and format messages in Ada sources (the i18n aspect of g11n) and localization via the externalization of messages strings to properties files.