scale-down-to-fit not supported?
Hi All, I tried using content-width=scale-down-to-fit within a fo:external-graphic tag. But it seems like this value is not supported yet. After reading the ML archives I tried it with block-progression-dimension.maximum=100% and width=100% which should equals scale-down-to-fit, but this also has no effect on my images. What I want to achieve is to scale down images which are too big for the page, but not to touch images which will fit on the page. Did someone succeed in doing this? Any tips? Thanks! Conny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Hyphenation problems with source code like text
Thanks for the tips from both of you! I think I will try making a xslt to insert the zero width whitespaces as this gives me the same effect as hyphenation and seems to be more mature (at least for my use case). Thanks again and have a good day! Conny 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]
Hyphenation problems with source code like text
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. 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]