22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Multibyte Text Work 5.5<br />

Creating DLPDFTEXT Areas<br />

A DLPDFTEXT area is a container for multibyte <strong>and</strong> Unicode text. Text is placed into<br />

the container using the dlpdftext function (or one of the shortcut functions)<br />

described below. This text is converted into Unicode, in UTF-16 format, stored in<br />

host-endian byte order (little-endian for the Win32 <strong>and</strong> Intel/Linux platforms, bigendian<br />

elsewhere), <strong>and</strong> automatically shaped <strong>and</strong> processed through the Unicode<br />

BiDirectional (BiDi) algorithm. This text may then be placed into a DLPDFCONTENT<br />

area for output.<br />

dlpdftext<br />

The dlpdftext method is used to create a DLPDFTEXT area from a buffer of text in a<br />

given encoding.<br />

DLPDFTEXT *dlpdftext(void *, ASUns32, ASAtom)<br />

• The first parameter is passed in as a pointer to a data buffer.<br />

• The second parameter is the number of bytes in this buffer.<br />

• The third parameter is the encoding of the supplied text. An exception will be<br />

raised for invalid parameters, or if the text could not be properly converted from<br />

the input encoding to the platform-endian Unicode representation.<br />

dlpdftextshowencodingnames<br />

There are over 1200 encodings <strong>and</strong> encoding aliases that may be used as input<br />

encodings, corresponding to the format of the input text for a DLPDFTEXT area. To

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!