Re: anchors/bookmarks problem

2010-06-08 Thread Pascal Sancho
Hi Trevor,
you can use a simpler construction:


That should not generate any area (since empty blocks), so that should
do the trick.

Note that 'px' is not a recommended unit as it is relative to ... screen.

--
Pascal

Le 07/06/2010 19:46, Trevor Nicholls a écrit :
> Hi Georg
>
> Here is the fo fragment produced by the stylesheet in my first post.
>  
>   space-before.maximum="1.2em" space-after.minimum="0.8em"
> space-after.optimum="1em" space-after.maximum="1.2em"
> provisional-label-separation="0.85mm"
> provisional-distance-between-starts="8.47mm">
>   space-before.maximum="1.2em" relative-align="baseline">
>  
>  1.
>  
>  
>  
>   font-size="1">
>   
>  
>   
>  
>  
>   space-before.maximum="0em" space-after.minimum="0.4em"
> space-after.optimum="0.5em" space-after.maximum="0.6em">First
> step.
>  
>  
>  
>  
>  
>
> Since that post I have modified the block which contains the fox:destination
> elements so that it has negative space-after, and that appears to allow the
> list item labels to line up with the list items proper. That may be a
> pragmatic solution but am I doing this the best way? Without the target
> elements in the XML, the block containing the text "First step." would have
> the standard space-before of 0.5+/-0.1em, and this space would be collapsed
> (or ignored) at the top of list items. The code has had to become a lot more
> complex to change those space-before's to 0, and I would be a lot more
> confident if I hadn't had to do that :-)
>
> Cheers
> T
>
> -Original Message-
> From: Georg Datterl [mailto:georg.datt...@geneon.de] 
> Sent: Monday, 7 June 2010 7:04 p.m.
> To: fop-users@xmlgraphics.apache.org; tre...@castingthevoid.com
> Subject: AW: anchors/bookmarks problem
>
> Hi Trevor,
>
> Can you post the final fo code as well, please?
>
> 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: Trevor Nicholls [mailto:tre...@castingthevoid.com]
> Gesendet: Donnerstag, 3. Juni 2010 17:31
> An: fop-users@xmlgraphics.apache.org
> Betreff: anchors/bookmarks problem
>
> Hi
>
> I am having a little trouble with FOP 0.95 and  elements in
> list items.
>
> XML fragment is something like the following, where a step is a numbered
> list item, and a target is a potential bookmark or hyperlink target:
>
>  
>  
>   
>One
>First
>First step.
>   
>  
>  
>
> XSL-FO for "steps" generates a standard list block, and for "list" a
> standard list-item. Targets generate an  element which
> contains a zero width space (because an empty inline element causes FOP to
> crash with a NPE), and each group of targets is enclosed in an 
> (because fo:inline cannot be a direct child of fo:flow, and some targets
> are.
>
> So here's the target bit of my XSL-FO:
>
>  
>  
>   
>
>
> 
>
>   
>  
>
>  
>font-size="1">
>
>   
>  
>
>  
>   
>   ​
>   
>mode="anchor" />
>  
>  
>
> The def.space-none attribute set ensures that space-before and space-after
> is zero. I have a named template for normal blocks which detects when it is
> the first block after a group of targets and sets space-before to zero. So
> the only thing disturbing the alignment of the list-item-label and the first
> list-item-block content is the 1px line-height block containing the id'ed
> inline(s) and the fox:bookmark(s).
>
> Is there a way of eliminating the vertical space contributed by that block
> so that the list item aligns properly with its label?
>
> Or am I tackling this all wrong?
>
> Cheers
> Trevor
>   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Overflow and table position

2010-06-08 Thread Lucas Miguez
Hi,

I am starting to use FOP 0.95.

The problems are:

How to avoid the overflow in tables? This is an example of overflow:
Warning: Line 1 of a paragraph overflows the available area by 12mpt

How to put two tables in the same line? I tried using float:left and
float:right, but it doesn't work

Thanks

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: anchors/bookmarks problem

2010-06-08 Thread Trevor Nicholls
Hi Pascal

That's what I started with: one target (one fo:block/fox:destination) was
fine, but a second would crash fop with an NPE. (I'm using 0.95).
Experimenting I found that if I put something, anything, in the fo:block
then the NPE went away - but then I had the alignment issue to deal with.

Cheers
T

-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: Tuesday, 8 June 2010 7:35 p.m.
To: fop-users@xmlgraphics.apache.org
Subject: Re: anchors/bookmarks problem

Hi Trevor,
you can use a simpler construction:


That should not generate any area (since empty blocks), so that should
do the trick.

Note that 'px' is not a recommended unit as it is relative to ... screen.

--
Pascal

Le 07/06/2010 19:46, Trevor Nicholls a écrit :
> Hi Georg
>
> Here is the fo fragment produced by the stylesheet in my first post.
>  
>   space-before.maximum="1.2em" space-after.minimum="0.8em"
> space-after.optimum="1em" space-after.maximum="1.2em"
> provisional-label-separation="0.85mm"
> provisional-distance-between-starts="8.47mm">
>   space-before.maximum="1.2em" relative-align="baseline">
>  
>  1.
>  
>  
>  
>   font-size="1">
>   
>  
>   
>  
>  
>   space-before.maximum="0em" space-after.minimum="0.4em"
> space-after.optimum="0.5em" space-after.maximum="0.6em">First
> step.
>  
>  
>  
>  
>  
>
> Since that post I have modified the block which contains the
fox:destination
> elements so that it has negative space-after, and that appears to allow
the
> list item labels to line up with the list items proper. That may be a
> pragmatic solution but am I doing this the best way? Without the target
> elements in the XML, the block containing the text "First step." would
have
> the standard space-before of 0.5+/-0.1em, and this space would be
collapsed
> (or ignored) at the top of list items. The code has had to become a lot
more
> complex to change those space-before's to 0, and I would be a lot more
> confident if I hadn't had to do that :-)
>
> Cheers
> T
>
> -Original Message-
> From: Georg Datterl [mailto:georg.datt...@geneon.de] 
> Sent: Monday, 7 June 2010 7:04 p.m.
> To: fop-users@xmlgraphics.apache.org; tre...@castingthevoid.com
> Subject: AW: anchors/bookmarks problem
>
> Hi Trevor,
>
> Can you post the final fo code as well, please?
>
> 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: Trevor Nicholls [mailto:tre...@castingthevoid.com]
> Gesendet: Donnerstag, 3. Juni 2010 17:31
> An: fop-users@xmlgraphics.apache.org
> Betreff: anchors/bookmarks problem
>
> Hi
>
> I am having a little trouble with FOP 0.95 and  elements
in
> list items.
>
> XML fragment is something like the following, where a step is a numbered
> list item, and a target is a potential bookmark or hyperlink target:
>
>  
>  
>   
>One
>First
>First step.
>   
>  
>  
>
> XSL-FO for "steps" generates a standard list block, and for "list" a
> standard list-item. Targets generate an  element which
> contains a zero width space (because an empty inline element causes FOP to
> crash with a NPE), and each group of targets is enclosed in an 
> (because fo:inline cannot be a direct child of fo:flow, and some targets
> are.
>
> So here's the target bit of my XSL-FO:
>
>  
>  
>   
>
>
> 
>
>   
>  
>
>  
>font-size="1">
>
>   
>  
>
>  
>   
>   ​
>   
>mode="anchor" />
>  
>  
>
> The def.space-none attribute set ensures that space-before and space-after
> is zero. I have a named template for normal blocks which detects when it
is
> the first block after a group of targets and sets space-before to zero. So
> the only thing disturbing the alignment of the list-item-label and the
first
> list-item-block content is the 1px line-height block containing the id'ed
> inline(s) and the fox:bookmark(s).
>
> Is there a way of eliminating the vertical space contributed by that block
> so that the list item aligns properly with its label?
>
> Or am I tackling this all wrong?
>
> Cheers
> Trevor
>   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



AW: Overflow and table position

2010-06-08 Thread Georg Datterl
Hi Lucas,

check your fo-file for keep-together="always". This implies 
keep-together.within-line="always" and prevents line breaks. What you probably 
want is keep-together.within-page="5", which keeps the block on the same page, 
except if the block height exceeds the page height. Same with within-column.

float is not yet implemented. I'd use a table with two columns, one row, 
therefore two cells containing the left table and the right table.

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: Lucas Miguez [mailto:lucas.mig...@gmail.com]
Gesendet: Dienstag, 8. Juni 2010 09:14
An: fop-users@xmlgraphics.apache.org
Betreff: Overflow and table position

Hi,

I am starting to use FOP 0.95.

The problems are:

How to avoid the overflow in tables? This is an example of overflow:
Warning: Line 1 of a paragraph overflows the available area by 12mpt

How to put two tables in the same line? I tried using float:left and
float:right, but it doesn't work

Thanks

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: anchors/bookmarks problem

2010-06-08 Thread Pascal Sancho
Trevor,

the 2 successive fo:block/fox:destination work fine for me, even with
FOP 0.95.
If you get an NPE, there is something else that interacts.

--
Pascal


Le 08/06/2010 10:20, Trevor Nicholls a écrit :
> Hi Pascal
>
> That's what I started with: one target (one fo:block/fox:destination) was
> fine, but a second would crash fop with an NPE. (I'm using 0.95).
> Experimenting I found that if I put something, anything, in the fo:block
> then the NPE went away - but then I had the alignment issue to deal with.
>
> Cheers
> T
>
> -Original Message-
> From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
>
> Hi Trevor,
> you can use a simpler construction:
> 
>  internal-destination="first"/>
> That should not generate any area (since empty blocks), so that should
> do the trick.
>
> Note that 'px' is not a recommended unit as it is relative to ... screen.
>
> --
> Pascal
>
> Le 07/06/2010 19:46, Trevor Nicholls a écrit :
>   
>> Hi Georg
>>
>> Here is the fo fragment produced by the stylesheet in my first post.
>>  
>>  > space-before.maximum="1.2em" space-after.minimum="0.8em"
>> space-after.optimum="1em" space-after.maximum="1.2em"
>> provisional-label-separation="0.85mm"
>> provisional-distance-between-starts="8.47mm">
>>  > space-before.maximum="1.2em" relative-align="baseline">
>>  
>>  1.
>>  
>>  
>>  
>>  > font-size="1">
>>   
>>  
>>   
>>  
>>  
>>  > space-before.maximum="0em" space-after.minimum="0.4em"
>> space-after.optimum="0.5em" space-after.maximum="0.6em">First
>> step.
>>  
>>  
>>  
>>  
>>  
>>
>> Since that post I have modified the block which contains the
>> 
> fox:destination
>   
>> elements so that it has negative space-after, and that appears to allow
>> 
> the
>   
>> list item labels to line up with the list items proper. That may be a
>> pragmatic solution but am I doing this the best way? Without the target
>> elements in the XML, the block containing the text "First step." would
>> 
> have
>   
>> the standard space-before of 0.5+/-0.1em, and this space would be
>> 
> collapsed
>   
>> (or ignored) at the top of list items. The code has had to become a lot
>> 
> more
>   
>> complex to change those space-before's to 0, and I would be a lot more
>> confident if I hadn't had to do that :-)
>>
>> Cheers
>> T
>>
>> -Original Message-
>> From: Georg Datterl [mailto:georg.datt...@geneon.de] 
>> Sent: Monday, 7 June 2010 7:04 p.m.
>> To: fop-users@xmlgraphics.apache.org; tre...@castingthevoid.com
>> Subject: AW: anchors/bookmarks problem
>>
>> Hi Trevor,
>>
>> Can you post the final fo code as well, please?
>>
>> Regards,
>>
>> Georg Datterl
>>
>> -Ursprüngliche Nachricht-
>> Von: Trevor Nicholls [mailto:tre...@castingthevoid.com]
>>
>> Hi
>>
>> I am having a little trouble with FOP 0.95 and  elements
>> 
> in
>   
>> list items.
>>
>> XML fragment is something like the following, where a step is a numbered
>> list item, and a target is a potential bookmark or hyperlink target:
>>
>>  
>>  
>>   
>>One
>>First
>>First step.
>>   
>>  
>>  
>>
>> XSL-FO for "steps" generates a standard list block, and for "list" a
>> standard list-item. Targets generate an  element which
>> contains a zero width space (because an empty inline element causes FOP to
>> crash with a NPE), and each group of targets is enclosed in an 
>> (because fo:inline cannot be a direct child of fo:flow, and some targets
>> are.
>>
>> So here's the target bit of my XSL-FO:
>>
>>  
>>  
>>   
>>
>>
>> 
>>
>>   
>>  
>>
>>  
>>   > font-size="1">
>>
>>   
>>  
>>
>>  
>>   
>>   ​
>>   
>>   > mode="anchor" />
>>  
>>  
>>
>> The def.space-none attribute set ensures that space-before and space-after
>> is zero. I have a named template for normal blocks which detects when it
>> 
> is
>   
>> the first block after a group of targets and sets space-before to zero. So
>> the only thing disturbing the alignment of the list-item-label and the
>> 
> first
>   
>> list-item-block content is the 1px line-height block containing the id'ed
>> inline(s) and the fox:bookmark(s).
>>
>> Is there a way of eliminating the vertical space contributed by that block
>> so that the list item aligns properly with its label?
>>
>> Or am I tackling this all wrong?
>>
>> Cheers
>> Trevor
>> 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP, hypenation. How to compile hyph pattern? my own

2010-06-08 Thread lexa2009

hello. i download fop-0.95 src and now i can compile hyp.
a make su.xml and place it in fop_dir\hyph
it contains



 
m5o
mot5her
mo5ther
moth5er
m5



than i use 
>ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use 
>ant jar-hyphenation 
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
hyph
i have xsl-fo with this block

mothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermother

but it do not work. what i do wrong?
-- 
View this message in context: 
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28817469.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Question regd basic-link

2010-06-08 Thread Jayakrishna
Hello,

I have the following FOP snippet. If I open the generated PDF in IE, and
then click on the url "www.ibm.com", it loads the website in the existing
tab/window, navigating away from the loaded PDF document. Is there a way, I
can force the website to be loaded in another tab or window, so that the PDF
document is still available ?

www.ibm.com

Thank you