RE: text-indent on first line of a column.

2005-06-20 Thread Puppala, Kumar (LNG-DAY)
Sorry for the trouble. I think I figured out what the issue is but am still
trying to figure out how to fix it. Sometime in March, I was investigating
into the behavior of FOP when we have text-indent. Attached are the mails at
that time. I had a fix for FOP 0.20.5(in my local version) to not do
indenting if it is not the first FOText area. This fix works fine but is
causing things to break at the beginning of a column. Even though it is the
first FOText area, since it is happening at the very beginning of the
column, somehow FOP is not considering this as the first one and is not
applying the indent. I need to look at the code again and see if I can fix
it.

Thanks,
Kumar Puppala


-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 20, 2005 11:56 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: text-indent on first line of a column.

Ah, then it would have been preferable to send the question to fop-users.
I've quickly put together a test file with two columns and text-indent
but I don't see any problems. You can really make our lives easier if
you post a minimal example which shows your problem. Otherwise, it's
really difficult to help. And to answer your first question: No, I don't
know of any known issues for text-indent but then, I'm not all-knowing
especially what 0.20.5 is concerned. :-)

On 20.06.2005 17:43:38 Puppala, Kumar (LNG-DAY) wrote:
> Jeremias,
> This is actually for fop 0.20.5 version. We are using this version for
> our application and have encountered this problem. 
> 
> Thanks,
> Kumar Puppala
> 
> 
> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 20, 2005 11:01 AM
> To: fop-dev@xmlgraphics.apache.org
> Subject: Re: text-indent on first line of a column.
> 
> You don't say which FOP version you are referring to. Given that you
> post your question to fop-dev and you mentioned to me earlier that you
> want to contribute, I assume you use CVS HEAD, in which case I need to
> say that multi-column layout is not fully implemented, yet. It would be
> helpful if you could provide an example, so we can construct a test case
> [1] for the layout engine.
> 
> [1] http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests
> 
> On 20.06.2005 16:48:28 Puppala, Kumar (LNG-DAY) wrote:
> > Are there any known issues for text-indent if it happens in the very
first
> > line of a column (when in dual column layout). I see all the necessary
> > indent tags but the document does not take the given indentation into
> > consideration if it happens to be the very first line of the column. 
> 
> 
> Jeremias Maerki



Jeremias Maerki

--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
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:

 



  This is just for testing purpose and this line will be indented.

this is the nested 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.



 

In the above example, the text following the second block should not be
indented since text-indent applies only to

Re: text-indent on first line of a column.

2005-06-20 Thread Jeremias Maerki
Ah, then it would have been preferable to send the question to fop-users.
I've quickly put together a test file with two columns and text-indent
but I don't see any problems. You can really make our lives easier if
you post a minimal example which shows your problem. Otherwise, it's
really difficult to help. And to answer your first question: No, I don't
know of any known issues for text-indent but then, I'm not all-knowing
especially what 0.20.5 is concerned. :-)

On 20.06.2005 17:43:38 Puppala, Kumar (LNG-DAY) wrote:
> Jeremias,
> This is actually for fop 0.20.5 version. We are using this version for
> our application and have encountered this problem. 
> 
> Thanks,
> Kumar Puppala
> 
> 
> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 20, 2005 11:01 AM
> To: fop-dev@xmlgraphics.apache.org
> Subject: Re: text-indent on first line of a column.
> 
> You don't say which FOP version you are referring to. Given that you
> post your question to fop-dev and you mentioned to me earlier that you
> want to contribute, I assume you use CVS HEAD, in which case I need to
> say that multi-column layout is not fully implemented, yet. It would be
> helpful if you could provide an example, so we can construct a test case
> [1] for the layout engine.
> 
> [1] http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests
> 
> On 20.06.2005 16:48:28 Puppala, Kumar (LNG-DAY) wrote:
> > Are there any known issues for text-indent if it happens in the very first
> > line of a column (when in dual column layout). I see all the necessary
> > indent tags but the document does not take the given indentation into
> > consideration if it happens to be the very first line of the column. 
> 
> 
> Jeremias Maerki



Jeremias Maerki



RE: text-indent on first line of a column.

2005-06-20 Thread Puppala, Kumar (LNG-DAY)
Jeremias,
This is actually for fop 0.20.5 version. We are using this version for
our application and have encountered this problem. 

Thanks,
Kumar Puppala


-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 20, 2005 11:01 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: text-indent on first line of a column.

You don't say which FOP version you are referring to. Given that you
post your question to fop-dev and you mentioned to me earlier that you
want to contribute, I assume you use CVS HEAD, in which case I need to
say that multi-column layout is not fully implemented, yet. It would be
helpful if you could provide an example, so we can construct a test case
[1] for the layout engine.

[1] http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

On 20.06.2005 16:48:28 Puppala, Kumar (LNG-DAY) wrote:
> Are there any known issues for text-indent if it happens in the very first
> line of a column (when in dual column layout). I see all the necessary
> indent tags but the document does not take the given indentation into
> consideration if it happens to be the very first line of the column. 


Jeremias Maerki


Re: text-indent on first line of a column.

2005-06-20 Thread Jeremias Maerki
You don't say which FOP version you are referring to. Given that you
post your question to fop-dev and you mentioned to me earlier that you
want to contribute, I assume you use CVS HEAD, in which case I need to
say that multi-column layout is not fully implemented, yet. It would be
helpful if you could provide an example, so we can construct a test case
[1] for the layout engine.

[1] http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

On 20.06.2005 16:48:28 Puppala, Kumar (LNG-DAY) wrote:
> Are there any known issues for text-indent if it happens in the very first
> line of a column (when in dual column layout). I see all the necessary
> indent tags but the document does not take the given indentation into
> consideration if it happens to be the very first line of the column. 


Jeremias Maerki