Re: Wrapping Long Text Without Spaces

2007-04-06 Thread Jeff Vannest
 Just FYI: the other known workaround (which fits some scenarios  
 better than inserting ZWSPs) would be to activate hyphenation, and  
 use a ZWSP as hyphenation-character... In that case, FOP will

This is new to me, so let me see if I understand: A ZWSP is implicit between
characters. For example, the word CAT would contain three characters and
two ZWSP: C-ZWSP-A-ZWSP-T. Setting hyphenation to ZWSP would allow wrapping
as:

CA
T

...or...

C
AT

I think this sounds like the solution to use!

Jeff




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wrapping Long Text Without Spaces

2007-04-06 Thread Vincent Hennebert
Hi Jeff,

Jeff Vannest a écrit :
 Just FYI: the other known workaround (which fits some scenarios  
 better than inserting ZWSPs) would be to activate hyphenation, and  
 use a ZWSP as hyphenation-character... In that case, FOP will
 
 This is new to me, so let me see if I understand: A ZWSP is implicit between
 characters. For example, the word CAT would contain three characters and
 two ZWSP: C-ZWSP-A-ZWSP-T. Setting hyphenation to ZWSP would allow wrapping
 as:
snip/

Not exactly, in fact the two methods will lead to different results:
- either you manually put ZWSP after underscores in your words, which
  allow FOP to break words after them;
- or you enable hyphenation and use ZWSP instead of the regular hyphen
  character. Thus FOP will break inside words that it is able to
  hyphenate; if they aren't normal English words this may not work well
  and you may prefer the first method.


HTH,
Vincent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wrapping Long Text Without Spaces

2007-04-06 Thread Andreas L Delmelle

On Apr 6, 2007, at 14:58, Vincent Hennebert wrote:

Hi Jeff / Vincent,


snip /
- or you enable hyphenation and use ZWSP instead of the regular hyphen
  character. Thus FOP will break inside words that it is able to
  hyphenate; if they aren't normal English words this may not work  
well

  and you may prefer the first method.


IIRC, this is not entirely correct: with hyphenation turned FOP will  
always hyphenate words, period. AFAIK, there is no situation where  
FOP wouldn't be able to hyphenate. Using the hyphenation patterns,  
you can only indicate that certain hyphenation points are  
undesirable, but you can never turn on hyphenation and do something  
magical to keep FOP from hyphenating.


So, IOW, there is no word that FOP won't be able to hyphenate.


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]