ps_hyphenate

ps_hyphenate -- Hyphenates a word

Description

array ps_hyphenate (resource psdoc, string text)

Hyphenates the passed word. text should not contain any non alpha characters. Possible positions for breaks are returned in an array of interger numbers. Each number is the position of the char in text after which a hyphenation can take place.

This function requires the locale category LC_CTYPE to be set propperly. This is done when the extension is initialized by using the enviroment variables. On Unix systems read the man page of locale.

ps_hyphenate() evaluates the value hyphenminchars and the parameter hyphendict. hyphendict must be set before calling this function.

See also

ps_boot(), ps_show_boxed(), locale(1)