How to hyphenation algorithm


has anyone here ever considered an hyphenation algorithm? If so, how could you proceed, are there any ideas? Let’s say I would like to draw a long string line by line on a canvas and not only wrap it word by word (simply) but also syllable by syllable.

I am looking forward to your suggestions.

@Martin Trippensee — The problem is that it is very locale-sensitive, so it is ideally made by the system. Though it may be really instructive to reinvent the wheel sometimes, I am really not sure this particular challenge is worth it.

But that’s only my opinion.

Did you try Goggling?

But I agree with Stephane: better use an existing solution.