Re: linebreak fop0.94

2007-11-07 Thread Manuel Mall
On Thursday 08 November 2007 05:49, Andreas L Delmelle wrote:
> On Nov 7, 2007, at 21:27, Andreas Siepert wrote:
> > The empty-fo:block variant doesn't work my way. I already
> > considered it but
> > it does not only create a new line but also inserts an empty line.
>
> Really? Hadn't checked that, actually... If so, I'm not sure if that
> is correct behaviour, so we might have to look into that. :/
>
We actually have a testcase for this in our regression test suite 
(inline_block_nested_1.xml) and after using it to produce a PDF it 
looks fine and has no empty lines inserted.

The technique of replacing  with  is also used in an 
html to fo stylesheet I am using (I think it came from Antennahouse 
originally).

Manuel


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



Re: linebreak fop0.94

2007-11-07 Thread Andreas L Delmelle

On Nov 7, 2007, at 21:27, Andreas Siepert wrote:

The empty-fo:block variant doesn't work my way. I already  
considered it but

it does not only create a new line but also inserts an empty line.


Really? Hadn't checked that, actually... If so, I'm not sure if that  
is correct behaviour, so we might have to look into that. :/



I rather
want to make some kind of HTML  replacement: one  ->  
newline, n

s in a row -> n-1 empty lines.
I will try your first suggestion - it sounds pretty good if the  
processor

output can be manipulated that way.


Yep, it's definitely the way to go if what you need is what is  
described above.
The issue with empty fo:blocks is also one of performance, BTW. They  
only generate additional overhead, while the layout-algorithm has a  
ball with preserved linefeeds.


It might take some caution, though, since generally, unexpected  
linefeeds tend to pop up that survive the XSL transform. Be mindful  
about linefeeds coming in from XML source like:



someText


The leading and trailing linefeeds will both be presented to FOP, and  
might thus cause mayhem if you use linefeed-treatment="preserve". In  
case you're not sure where the value of the input node comes from,  
use normalize-space() in the XSLT to strip those off.


For all else, I certainly do hope that you do not need hyphenation in  
this case, because currently this combination leads to all sorts of  
strangeness, like duplicated pieces of paragraphs...



Cheers

Andreas


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



Re: linebreak fop0.94

2007-11-07 Thread Andreas Siepert
Hi Andreas,

thanks for your help.

The empty-fo:block variant doesn't work my way. I already considered it but
it does not only create a new line but also inserts an empty line. I rather
want to make some kind of HTML  replacement: one  -> newline, n
s in a row -> n-1 empty lines.
I will try your first suggestion - it sounds pretty good if the processor
output can be manipulated that way.

Thanks again
Andi

On Wed, 7 Nov 2007 18:08:53 +0100, Andreas L Delmelle
<[EMAIL PROTECTED]> wrote:
> On Nov 7, 2007, at 18:02, Andreas L Delmelle wrote:
> 
>> On Nov 7, 2007, at 16:20, Andreas Siepert wrote:
>>
>> Hi
>>
>>> Isn't there another way?
>>
>> Sorry, I don't think so...
>>
>> The only way to get a guaranteed linebreak is either:
>> * start a new fo:block
>> * specify linefeed-treatment='preserve' on the containing block,
>> and use linefeed characters
> 
> Apologies, since I overlooked one possibility (but I do not really
> consider that to be good practice): insert empty fo:blocks at the
> locations where you want the linebreaks to appear.
> fo:block is a valid child for an fo:inline... Cool, no? :-)
> 
> So, this should work:
> 
> first linesecond line
> 
> 
> Cheers
> 
> Andreas
> 
> 
> 
> -
> 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]



Re: linebreak fop0.94

2007-11-07 Thread Andreas L Delmelle

On Nov 7, 2007, at 18:02, Andreas L Delmelle wrote:


On Nov 7, 2007, at 16:20, Andreas Siepert wrote:

Hi


Isn't there another way?


Sorry, I don't think so...

The only way to get a guaranteed linebreak is either:
* start a new fo:block
* specify linefeed-treatment='preserve' on the containing block,  
and use linefeed characters


Apologies, since I overlooked one possibility (but I do not really  
consider that to be good practice): insert empty fo:blocks at the  
locations where you want the linebreaks to appear.

fo:block is a valid child for an fo:inline... Cool, no? :-)

So, this should work:

first linesecond line


Cheers

Andreas



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



Re: linebreak fop0.94

2007-11-07 Thread Andreas L Delmelle

On Nov 7, 2007, at 16:20, Andreas Siepert wrote:

Hi


Isn't there another way?


Sorry, I don't think so...

The only way to get a guaranteed linebreak is either:
* start a new fo:block
* specify linefeed-treatment='preserve' on the containing block, and  
use linefeed characters


Like you suggested, I would have to write my fo stuff into a single  
line, otherwise there will be lots of additional linefeeds.


Well, this is generally how serialized FO reaches FOP (no indents).

If you use XSLT to generate the FO, specify no indent="yes" on the  
xsl:output element and do not use xsl:preserve-space in your  
stylesheet, then any compliant XSLT processor should output an XML  
document that has all content on one line (unless, of course the  
input contains text() nodes with 'significant' linefeeds...)


If you use XSLT, it would thus not really matter, since this very  
human-readable:



  

  
  
and a linefeed

More text
  


Causes the following, very processor-friendly FO output (if using no  
special output options, and using default XSLT whitespace stripping):


{content of  
othernode, possibly including linefeeds that will be preserved} 

and a linefeedMore text


Note: The above should be a single line. Any linebreaks appearing,  
apart from the numeric character reference, will be a result of line- 
wrapping elsewhere.



Cheers

Andreas


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



Re: linebreak fop0.94

2007-11-07 Thread Andreas Siepert
Isn't there another way? Like you suggested, I would have to write my fo 
stuff into a single line, otherwise there will be lots of additional 
linefeeds.


Andi

Manuel Mall schrieb:

On Wednesday 07 November 2007 22:03, Andreas Siepert wrote:
  

Hi,

after looking through the mailing list and other Websites I still
could not figure out, how to insert a linebreak within an fo:inline I
tried:
  



as well as 

I also used the parameter white-space-collapse="false".

Some Infos for my setup:
-FOP 0.94
-XML is converted via XSL to XSL:FO and then to PDF

Can somebody give me another solution?



linefeed-treatment="preserve" should do the trick. However the property 
must be specified on the enclosing block level element and not on the 
fo:inline.


Manuel
  

Thanks
Andi



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



  



--
Dipl.-Inf. Andreas Siepert
Entwickler

Bader & Jene Software-Ingenieurbüro GmbH
Schauenburgerstraße 116
24118 Kiel

Fon: + 49.431.5 60 66 41
Fax: + 49.431.5 60 66 44
Web: www.bader-jene.de

Ust-ID Nr: DE249078452
Amtsgericht Kiel, HRB 8298

Geschäftsführer:
Dipl.-Ing. (FH) Thomas Bader
Dipl.-Ing. (FH) Andreas Jene



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



Re: linebreak fop0.94

2007-11-07 Thread Manuel Mall
On Wednesday 07 November 2007 22:03, Andreas Siepert wrote:
> Hi,
>
> after looking through the mailing list and other Websites I still
> could not figure out, how to insert a linebreak within an fo:inline I
> tried:
>   
> 

> 
> as well as 
> 
> I also used the parameter white-space-collapse="false".
>
> Some Infos for my setup:
> -FOP 0.94
> -XML is converted via XSL to XSL:FO and then to PDF
>
> Can somebody give me another solution?

linefeed-treatment="preserve" should do the trick. However the property 
must be specified on the enclosing block level element and not on the 
fo:inline.

Manuel
>
> Thanks
> Andi

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



linebreak fop0.94

2007-11-07 Thread Andreas Siepert

Hi,

after looking through the mailing list and other Websites I still could 
not figure out, how to insert a linebreak within an fo:inline

I tried:
 
   

   
   as well as 

I also used the parameter white-space-collapse="false".

Some Infos for my setup:
-FOP 0.94
-XML is converted via XSL to XSL:FO and then to PDF

Can somebody give me another solution?

Thanks
Andi

--
Dipl.-Inf. Andreas Siepert
Entwickler

Bader & Jene Software-Ingenieurbüro GmbH
Schauenburgerstraße 116
24118 Kiel

Fon: + 49.431.5 60 66 41
Fax: + 49.431.5 60 66 44
Web: www.bader-jene.de

Ust-ID Nr: DE249078452
Amtsgericht Kiel, HRB 8298

Geschäftsführer:
Dipl.-Ing. (FH) Thomas Bader
Dipl.-Ing. (FH) Andreas Jene



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