Hi JPee, 

No luck there. The actual character width depends on the font used, which is 
available for fop, but not at the xslt stage. If you really need a break at any 
place, put a zws after each character.

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: JPee [mailto:[email protected]] 
Gesendet: Montag, 5. Oktober 2009 15:58
An: [email protected]
Betreff: Re: AW: FOP: force wordbreak


My current solution is with substring and works fine but is not the best 
solution for my case, because characters have different lengths. Example:

iiiii
eeeee

both lines have 5 chars but have different lengths and if a link has 3 lines it 
looks not that good as possible. What I need is a method which gives the 
position where to enter the break.

Greetings JPee


Georg Datterl wrote:
> 
> Hi JPee,
> 
> I guess that depends on where the line break should be. A zws after 
> each / is easy: Replace "/" with "/zws". A zws after every x 
> characters should be possible through application of substring. But I 
> don't know all the XSL string manipulation methods, so there might be 
> smarter solutions. Maybe
> regex: After x characters which do not contain a zws, insert a zws.  
> 
> Regards,
>  
> Georg Datterl
>  
> ------ Kontakt ------
>  
> Georg Datterl
>  
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>  
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
> 
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>  
> www.geneon.de
>  
> Weitere Mitglieder der Willmy MediaGroup:
>  
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de 
> -----Ursprüngliche Nachricht-----
> Von: JPee [mailto:[email protected]]
> Gesendet: Montag, 5. Oktober 2009 15:20
> An: [email protected]
> Betreff: Re: FOP: force wordbreak
> 
> 
> Thanks for your quick advise,
> 
> is there a way to get the position of the character where the line 
> break should be?
> 
> Greetings JPee
> 
> --
> View this message in context:
> http://www.nabble.com/FOP%3A-force-wordbreak-tp25749499p25750725.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/FOP%3A-force-wordbreak-tp25749499p25751352.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to