WPCubed Product Support

wpUseHyphenation usage

Would someone mind explaining the behavior of this Format option?
wpUseHyphenation

Thank you.

#1 ♥ 0
4k Views 2 users read 1 min

Hi pmanderson,

When you turn on hyphenation, you have to handle Memo.RTFData.OnHyphenate event. In this event is up to you to hyphenate the words (define the syllables).

The hyphencount says how many hyphens the word should have. The hyphen parameter is an array of integers that says each syllabic division.

For instance, the word parameter should result:

pa-ra-me-ter
hyphencount = 3
hyphen = [2,4,6,0,0,..,0]

#2 ♥ 0
This category is archived. No new posts are possible.