2

I would like to add hyphenation in a C++ program. I have files of words for each locale.

Is it possible to run each file through a program that adds all possible soft hyphenation, maybe via TeX style hyphenation or via some OSX magic?

Or is there a good reliable C library to check soft hyphenation at runtime?

Thanks

Anon
  • 51
  • 2

1 Answers1

2

There are no shortcuts: you need a set of dictionaries for each locale, as discussed in What are the rules for splitting words at the end of a line?. For English, there are some free dictionaries, e.g., this Free English language hyphenation dictionary

Community
  • 1
  • 1
Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
  • Interesting, thanks! How would I find dictionaries for other locales? – Anon Apr 15 '15 at 03:33
  • As I said - no shortcuts (web searches in the given languages seems the only way, unless you happen to find someone who has made a study of the topic). – Thomas Dickey Apr 15 '15 at 08:03