On Tuesday 28 November 2006 21:12, Cornelius Hald wrote: > Hi, > > as some other on this list I have the problem of very long strings > without whitespaces. In my case these strings contains source code. > So for example I have the following line: > > this.element.nextElement.getSomething(foo).getAnotherThing(); > > The string might of cause be much longer... Now I tried to create a > custom hyphenation file, which should allow this string to break at > the dot character or at the "(" character. Unfortunately it is not > working. It is working for normal text, but if I try to break after > special characters like "#", "*", "+", ".", etc. it's not working. > I'm using fop-0.92beta.
Cornelius, I don't know much about hyphenation however you could, for example in your stylesheet, add a zero width space (0x200b) after each character you would like to behave as a line breaking possibility. Manuel > > I would appreciate any hints and tips. Below I've attached a very > small hyphenation file, which of cause is far from complete. > > Best regards > Conny > > > <?xml version="1.0" encoding="iso-8859-1"?> > <!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd"> > <hyphenation-info> > <hyphen-char value="-"/> > <hyphen-min before="2" after="2"/> > <classes> > #({[=- > aA > bB > cC > <!-- ... --> > </classes> > <patterns> > .cup9 #9 > </patterns> > </hyphenation-info> > > > > > > --------------------------------------------------------------------- > 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]