Re: Vertical Centering

2004-06-25 Thread Peter B. West
Clay Leeds wrote:
p.s. How do you spell 'Centering' in British English?
centring - generally pronounced as spelt; differently from the 
pronunciation of 'centre'.

Peter
--
Peter B. West http://www.powerup.com.au/~pbwest/resume.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Vertical Centering

2004-06-25 Thread Vinuta Nagaraddi
I also had the problem of display-align not working with the block
container.  I put the block of text inside a table and specified the
display-align property on the table cell for vertical alignment.  

Vinuta Nagaraddi

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 3:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Vertical Centering

Adam Augusta wrote:

snip/

this should work. The only thing that strikes me as slightly unusual
is that 
youve specified wrap-option=no-wrap. Try taking this off.
 
 
 Didn't change anything.

You are right, I cant get it working either. I wonder if this broke
between 
0.20.4 and 0.20.5 as I'm sure it used to work. I would be grateful if
others 
could comment if this is working for them. If not then I will update the

website to reflect this.

If this fails, try 
  getting rid of the nested blocks and just put the text directly
below the 
block-container.
 
 
 The text didn't even render.  Won't work for my application anyways -
I 
 need to specify spacing between individual lines.

Yes, I got the same. This is a bug!

snip/

 Even with the table workaround, I'm not getting vertically centered.  
 I've included the whole document this time in case I've missed
something.

Thats because you didnt specify height on table-row which is a
requirement for 
display-align to work, and is described on the compliance page. Your
example 
worked for me when I specified height on the table-row.

snip/

Chris



-
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: Vertical Centering

2004-06-24 Thread John Burgess
Centring, apparently.  And both the Cambridge and Oxford dictionaries have
it as a valid word.


- Original Message -
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 3:56 PM
Subject: Re: Vertical Centering


 Clay Leeds wrote:

 snip/

  Also, I'm not sure if display-align=centre will work :-) and judging
  from its absence in the spec at that link, I don't think it is... You
  may want to use the 'merican English spelling center...

 ooppss .. you are right of course. That was just a typo.

 
  Web Maestro Clay
 
  p.s. How do you spell 'Centering' in British English?

 I dont think that is actually a valid word!

 Chris



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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 21/06/04



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



Re: Vertical Centering

2004-06-24 Thread Adam Augusta
Thanks for your prompt and able reply, Chris. :)

Comments interleaved...

On Thu, 24 Jun 2004, Chris Bowditch wrote:
 Adam Augusta wrote:
 
  The compliance page gives every indication that using the display-align
  property of a block-container to vertically center output should work.  
  Why isn't the output text vertically centered in the 4x5 area?
snip
 this should work. The only thing that strikes me as slightly unusual is that 
 youve specified wrap-option=no-wrap. Try taking this off.

Didn't change anything.

 If this fails, try 
   getting rid of the nested blocks and just put the text directly below the 
 block-container.

The text didn't even render.  Won't work for my application anyways - I 
need to specify spacing between individual lines.

 I realise this is far from ideal, but display-align is not 
 fully implemented. One work around would be to put a single column/single row 
 table in there and specify display-align=centre on the table-cell.

Even with the table workaround, I'm not getting vertically centered.  
I've included the whole document this time in case I've missed something.

The workaround I'm contemplating is creating a block-container for each 
and every line, but that would be quite suboptimal.

?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
  fo:simple-page-master master-name=simple page-height=11in 
page-width=8.5in margin-top=0in margin-bottom=0in margin-left=0in 
margin-right=0in
   fo:region-body margin-top=0in margin-bottom=0in/
   fo:region-before extent=0in/
   fo:region-after extent=0in/
  /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=simple
  fo:flow flow-name=xsl-region-body
   fo:table table-layout=fixed width=4in height=5in
fo:table-column width=3in/
fo:table-body
 fo:table-row
  fo:table-cell display-align=center text-align=center
   fo:blockhello/fo:block
  /fo:table-cell
 /fo:table-row
/fo:table-body
   /fo:table
  /fo:flow
 /fo:page-sequence
/fo:root

-Adam

PS: I notice that for some people the Reply-To is just fop-user, while for
others the Reply-To also includes their personal e-mail address.  I
presume this is intentional?



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



RE: Vertical centering question

2003-05-01 Thread Victor Mote
J.Pietschmann wrote:

 Ben Galbraith wrote:
...
  Aftering reading the FOP FAQ, I used display-align property on a
  table-cell, but it didn't work.  However, I discovered that I *must*
  define the height of the table-cell by setting the height on the
  table-row (setting the height of the table or the table-cell results in
  vertical centering having no effect).
 
  Is this a spec issue or a FOP issue?
 This is a FOP limitation.

Based on this conversation, I have added (in CVS) more information to the
xsl-fo and compliance pages to document this behavior. Many thanks to both
Ben  Joerg for the contribution here.

Victor Mote


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



Re: Vertical centering question

2003-04-30 Thread J.Pietschmann
Ben Galbraith wrote:
We are, however, not sure how to vertically center text within a block 
(or a table cell).  The spec defines a property vertical-align which 
seems to control this,
This property is for aligning stuff within a line.
but using the property doesn't seem to work with 
FOP.
The implementation is a bit limited.
Aftering reading the FOP FAQ, I used display-align property on a 
table-cell, but it didn't work.  However, I discovered that I *must* 
define the height of the table-cell by setting the height on the 
table-row (setting the height of the table or the table-cell results in 
vertical centering having no effect).

Is this a spec issue or a FOP issue?
This is a FOP limitation.
 Also, the text turns out to be a 
little off center, which I am assuming is due to some default value of 
the line height or some other specific detail about the XSL-FO spec.  Am 
I right, or is this a known FOP bug?
This is probably a visual effect caused by (conformant) line height
calculation.
J.Pietschmann

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