PS_HYPHENATE(3)
πΈ NAME πΈ
PS_hyphenate β hyphenates a word. π
This page is PS_HYPHENATE(3) from the Library Functions Manual, and it's lowkey iconic for a tiny function. Hiiii bestie, let's get into it. β¨
β¨ SYNOPSIS β¨
#include <pslib.h>
int PS_hyphenate(PSDoc *psdoc, const char *text, char **hyphens)
π¦ DESCRIPTION π¦
Okay so PS_hyphenate() takes the word you hand it and figures out where it can be broken with hyphens. The text you pass should not contain any non alpha characters β like, letters only, bestie. No non-alpha characters crashing the vibe. π
The possible positions for breaks are returned in hyphens. So that's where you go looking for the "break it here" spots. π
This function requires the locale category LC_CTYPE to be set propperly. (Yes, "propperly" β that's the original spelling, and we're keeping it, no cap. π) PS_boot() usually does it by using the enviroment variables. (Another original spelling: "enviroment." We keep. π)
PS_hyphenate() evaluates the value 'hyphenminchars' and the parameter hyphendict. hyphendict must be set before calling this function. So set that up first, okay? It's giving prerequisite, periodt. π
π RETURN VALUE π
-1β returned in case of an error. Sad girl hours. π0β returned otherwise. Slay. β¨
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann <uwe@steinmann.cx>. Give them their flowers, bestie. π
That's the whole page β PS_HYPHENATE(3) from the Library Functions Manual. The footer didn't have a date/version stamp, just the page name again, so this is your cute sign-off. π«Άπ
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms