Jeffrey:
The suggested solution is the exact correct solution. If you have certain
elements where this exists, you can just do a recursive XSL template to
insert a zero-width space (U+200B or 8203) right after the "-" character you
have in the XML content (if you are using XSL). This essentially has the
effect of inserting an invisible (zero width) space character at that point.
With hyphenation off, the formatter would break at any space and if your "-"
is at or near the end-of-line, then it could break at this location.
This is the same technique used to do things like split very long lines
(like URLs) that have no natural break (they are not "words").
Kevin Brown
RenderX
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Jeffrey Thalhammer
Sent: Tuesday, February 15, 2011 3:47 PM
To: RenderX Community Support List
Subject: [xep-support] Re: Hyphenation Question
On Feb 15, 2011, at 1:49 PM, Jeffrey Thalhammer wrote:
Here's a little extra color on the subject. This is from the XEP User Guide
at http://www.renderx.com/reference.html#Linguistic_LineBreaking
If the hyphenate attribute is set to "true" and all hyphenation conditions
(hyphenation-push-character-count, hyphenation-remain-character-count, etc.)
are satisfied, then line-break is permitted after a soft hyphen (U+00AD). A
soft hyphen at the end of a line is replaced by the text specified in the
hyphenation-character attribute; all other soft hyphens are suppressed.
To me, that says lines can break after soft hyphens ONLY if
hyphenate="true". And that is consistent with the behavior I get.
Am I interpreting this wrong? Do you get a different behavior?
I figured out the problem: my hyphens weren't really soft. So I may have to
use the zero-width space as a workaround.
Thanks for pointing me in the right direction!
-Jeff
!DSPAM:87,4d5b109563736224038815!
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Tue Feb 15 16:18:09 2011
This archive was generated by hypermail 2.1.8 : Tue Feb 15 2011 - 16:18:11 PST