Solaris Internationalization Guide For Developers

Porting Instructions

The new CTL enabled Motif library can be found in /usr/dt/lib/libXm.so.4. If your application links to libXm.so.3 (ldd app_name shows which library the application is linking to), then it will not support Complex Text Layout (CTL). In order to port the existing applications to enable CTL, you need to perform the following steps.

  1. Add -DSUN_CTL to your Makefile. This flag is important and includes the necessary data structures to support CTL. This should be set during compilation.

  2. Recompile the existing application. It will automatically link with the CTL enabled Motif library libXm.so.4.

  3. Add the following resources to your application resource file. Without these resources the layout engine of the locale will not launch.

  4. Refer to the sample application attached with your documentation.


    Note -

    Use the font name that is available and appropriate to your locale in the fontName resource.


  5. If you want the cell-based character movement (Thai) in XmTextField or XmText widgets, set the translations of the corresponding widgets as follows. Refer to the documentation for further detailed explanation.

    XmText.translations: #override \n\

    <Key>osfRight:forward-cell() \n\

    <Key>osfLeft:backward-cell() \n\

    <Key>osfDelete:delete-next-cell() \n\

    <Key>osfBackSpace:delete-previous-cell() \n\