table of contents
PS_HYPHENATE(3) | Library Functions Manual | PS_HYPHENATE(3) |
NAME¶
PS_hyphenate — Hyphenates a wordSYNOPSIS¶
#include <pslib.h>int PS_hyphenate(PSDoc *psdoc, const char *text, char **hyphens)
DESCRIPTION¶
Hyphenates the passed word. text should not contain any non alpha characters. Possible positions for breaks are returned in hyphens.This function requires the locale category LC_CTYPE to be set propperly. PS_boot() usually does it by using the enviroment variables.
PS_hyphenate() evaluates the value 'hyphenminchars' and the parameter `hyphendict'. hyphendict must be set before calling this function.