Forum How do I...?

Hyphenation Problem

amit
Hello,

I am finding few exciting hyphenation patterns using below hyphenation properties for running text:

prince-hyphenate-before: 2;
prince-hyphenate-after: 3;

The problem is, it works fine if the word is without any puncuation, but if a puncuation is present before or after the word, the hyphenated word looks weird.

eg:
<p>text text text text (T-
able 3 shows text text text.</p>

OR

<p>text text “text text Chapte-
r.”</p>

OR

<p>text text text—tex-
t—text text text.</p>

Is there any way to hyphenate only words excluding punctuation?
mikeday
It seems that some characters such as parentheses are not being correctly treated as punctuation, leading to the unexpected hyphenation results. I've added this issue to the roadmap and we will fix it in a future release of Prince. Thanks for reporting the issue! :)
mikeday
We have now released Prince 6.0 rev 6, which fixes this bug.