Skip to content

7.7 lou_translate

int lou_translate(
  const char *tableList,
  const widechar *inbuf,
  int *inlen,
  widechar *outbuf,
  int *outlen,
  formtype *typeform,
  char *spacing,
  int *outputPos,
  int *inputPos,
  int *cursorPos,
  int mode);

This function adds the parameters outputPos, inputPos and cursorPos, to facilitate use in screen reader programs. The outputPos parameter must point to an array of integers with at least inlen elements. On return, this array will contain the position in outbuf corresponding to each input position. Similarly, inputPos must point to an array of integers of at least outlen elements. On return, this array will contain the position in inbuf corresponding to each position in outbuf. cursorPos must point to an integer containing the position of the cursor in the input. On return, it will contain the cursor position in the output. Any parameter after outlen may be NULL. In this case, the actions corresponding to it will not be carried out.

For a description of all other parameters, please see lou_translateString.