International Language Environments Guide

Porting Instructions

The new CTL-enabled Motif library can be found in /usr/dt/lib/libXm.so.4. If your application links tolibXm.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.


Note -

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


  1. 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\