RE: text-indent issue

2005-03-17 Thread Puppala, Kumar (LNG-DAY)
Thanks to you all for pointing me in the right direction. I was able to fix
it and get the desired behavior. The changes were made in Block.java and
BlockArea.java

Thanks,
Kumar Puppala


-Original Message-
From: Victor Mote [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 3:06 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: text-indent issue

Kumar Puppala wrote: 

 Can anyone direct me to the code where I can prevent 
 inheritance of the text-indent property in the scenario 
 mentioned below? I would like to make those changes in my 
 local copy of Apache source code (0.20.5) since this would 
 impact our application. Any help is greatly appreciated.

It is almost certainly not a problem with the inheritance itself, but rather
with the way the layout system signifies which LineArea objects are the
first. I would start with the variable isFirst in layout/Area.java and
find occurrences in the Block and Line layout that reference it, then work
backwards from there. It sure could be something else, but that is my best
guess about where to start. (I don't have FOP 0.20.5 set up in a development
environment anymore, or I would dig a bit deeper for you). HTH.

Victor Mote


-
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: text-indent issue

2005-03-17 Thread The Web Maestro
Would you post a PATCH to bugzilla for us? You should be able to figure 
out what we need by going to this page:

http://xml.apache.org/fop/bugs.html
On Mar 17, 2005, at 5:49 AM, Puppala, Kumar (LNG-DAY) wrote:
Thanks to you all for pointing me in the right direction. I was able 
to fix
it and get the desired behavior. The changes were made in Block.java 
and
BlockArea.java

Thanks,
Kumar Puppala
-Original Message-
From: Victor Mote [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 3:06 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: text-indent issue
Kumar Puppala wrote:
Can anyone direct me to the code where I can prevent
inheritance of the text-indent property in the scenario
mentioned below? I would like to make those changes in my
local copy of Apache source code (0.20.5) since this would
impact our application. Any help is greatly appreciated.
It is almost certainly not a problem with the inheritance itself, but 
rather
with the way the layout system signifies which LineArea objects are the
first. I would start with the variable isFirst in layout/Area.java 
and
find occurrences in the Block and Line layout that reference it, then 
work
backwards from there. It sure could be something else, but that is my 
best
guess about where to start. (I don't have FOP 0.20.5 set up in a 
development
environment anymore, or I would dig a bit deeper for you). HTH.

Victor Mote
-
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]

Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: text-indent issue

2005-03-16 Thread JBryant
Since both the text preceding the nested block and the text following the 
nested block are within the indented block, the text after the nested 
block gets indented. You'd need to move the text after the nested block to 
its own block to not have it be indented.

fo:block text-indent=5
  This is just for testing purpose and this line will be indented.
fo:blockthis is the nested block /fo:block
/fo:block
fo:block
 The text following the nested block is indented as well...not sure if 
this is as per spec. since it does not happen in other renderers.
/fo:block

If other rendering engines are NOT indenting the text after the nested 
block, then they are not honoring the spec. The attributes of a block 
should be applied to ALL the things within the block (unless specifically 
overridden by a child element's attributes).

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:31 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
text-indent issue






If I have text-indent specified on an fo:block and if I have a nested 
block within this, the text following this nested block is indented as 
well. For example:
 
fo:block text-indent=5
  This is just for testing purpose and this line will be indented.
fo:blockthis is the nested block /fo:block
 The text following the nested block is indented as well...not sure if 
this is as per spec. since it does not happen in other renderers.
/fo:block
 
In the above example, the text following the second block should not be 
indented since text-indent applies only to the first line of that block 
and not to any subsequent text in that block. Is there a way to get around 
this issue by specifying some property on the first block? I appreciate 
your help.
 
Thanks,
Kumar Puppala
 


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



RE: text-indent issue

2005-03-16 Thread Puppala, Kumar (LNG-DAY)
I totally agree that all the PCDATA is owned by the outer fo:block and hence
when it applies the text-indent property, it should apply only to the first
line in that block. The spec. for text-indent says:
This property specifies the indentation of the first line of text
in  a block. More precisely, it specifies the indentation of the first
box that flows into the block's first line box. The box is indented with
respect to the left (or right, for right-to-left layout) edge of theline
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
  
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
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: text-indent issue

2005-03-16 Thread JBryant
My apologies. I had confused text-indent with start-indent.

I guess FOP has a bug here. The work around appears to be not having text 
after a nested block.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:49 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
RE: text-indent issue






I totally agree that all the PCDATA is owned by the outer fo:block and 
hence
when it applies the text-indent property, it should apply only to the 
first
line in that block. The spec. for text-indent says:
 This property specifies the indentation of the first 
line of text
in   a block. More precisely, it specifies the indentation of 
the first
box  that flows into the block's first line box. The box is 
indented with
respect to the left (or right, for right-to-left layout) edge of the  line
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
 
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
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]




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



RE: text-indent issue

2005-03-16 Thread Puppala, Kumar (LNG-DAY)
Can anyone direct me to the code where I can prevent inheritance of the
text-indent property in the scenario mentioned below? I would like to make
those changes in my local copy of Apache source code (0.20.5) since this
would impact our application. Any help is greatly appreciated.

Thanks,
Kumar Puppala


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 2:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: text-indent issue

My apologies. I had confused text-indent with start-indent.

I guess FOP has a bug here. The work around appears to be not having text 
after a nested block.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:49 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
RE: text-indent issue






I totally agree that all the PCDATA is owned by the outer fo:block and 
hence
when it applies the text-indent property, it should apply only to the 
first
line in that block. The spec. for text-indent says:
 This property specifies the indentation of the first 
line of text
in   a block. More precisely, it specifies the indentation of 
the first
box  that flows into the block's first line box. The box is 
indented with
respect to the left (or right, for right-to-left layout) edge of the  line
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
 
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
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]




-
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: text-indent issue

2005-03-16 Thread Andreas L. Delmelle
 -Original Message-
 From: Puppala, Kumar (LNG-DAY) [mailto:[EMAIL PROTECTED]

 Can anyone direct me to the code where I can prevent inheritance of the
 text-indent property in the scenario mentioned below?

I can point you to the code:

{your-fop-dir}/src/org/apache/fop/fo/flow/Block.java


Unfortunately, I have no precise idea on what exactly needs to be done to
solve your problem... My best guess is that it has something to do with the
'anythingLaidOut' member variable, so I'd start off by watching closely what
happens to that variable when a nested block is added...

HTH!

Greetz,

Andreas


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



RE: text-indent issue

2005-03-16 Thread Victor Mote
Kumar Puppala wrote: 

 Can anyone direct me to the code where I can prevent 
 inheritance of the text-indent property in the scenario 
 mentioned below? I would like to make those changes in my 
 local copy of Apache source code (0.20.5) since this would 
 impact our application. Any help is greatly appreciated.

It is almost certainly not a problem with the inheritance itself, but rather
with the way the layout system signifies which LineArea objects are the
first. I would start with the variable isFirst in layout/Area.java and
find occurrences in the Block and Line layout that reference it, then work
backwards from there. It sure could be something else, but that is my best
guess about where to start. (I don't have FOP 0.20.5 set up in a development
environment anymore, or I would dig a bit deeper for you). HTH.

Victor Mote


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