cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Best hyphenation rule to break text properly

ptc-1314704
1-Newbie

Best hyphenation rule to break text properly

Hi Everyone,

We are using following hyphrule in our FOSI:

<hyphrule language="en" brkafchr="!#$%^&amp;*()+=|/_\-@.:0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZöä"brkalways="1" minpush="0" minleft="2">

We are calling this hyphrule in the following way for the element like <term> where text should wrap properly without overlapping with text of <expansion> element.

<hyphen inherit="1" hyph="1">

On high level, this rule looks proper, but it is not. First of all, there is no way to list all the characters inside "brkafchr". Secondly, behavior changes drastically if "minpush" or "minleft" value is changed by 1 value.

Our requirement is that <term> should appear in one column and <expansion> in the other column. Any text in the <term> should wrap if its length is more than predefined width of <term>. Even if it is single BIG word (with 30-40 characters), it shoud wrap properly irrespective of the character used.

I would like to know if there is some better way to use hyphenation. What should be the optimal value of minpush and minleft and how we can make this rule to work independent of the characters (there should not be need to list all the characters as value of "brkafchr"

Best Regards,

Girish Kumar

1 REPLY 1

If your hyphrule is unique for the <term> element, when you call the
hyphrule you should use <hyphen lang="en" hyph="1">. Although it would
probably be better to use something like language="special" and then
<hyphen lang="special" hyph="1">. Hope this helps.


Top Tags