PS_hyphenate(3)

PS_hyphenate3

Hyphenates a word

Usage

#include <pslib.h>

int PS_hyphenate(PSDoc *psdoc, const char *text, char **hyphens)

Overview

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.

Return value

Returns -1 in case of an error, and otherwise 0.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9–13

Author

This manual page was written by Uwe Steinmann <[email protected]>.

From pslib-dev 0.4.8-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.