You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ingo Bruell <ib...@gmx.de> on 2002/04/18 00:25:07 UTC

footnote design

Hi,

is there a way to make footnotes looks nice in the near future ? Now
they work but looks very bad. The Referencenumber is simple a number
it should look nicer if it would be a small number that is higher than
the other glyphs (like power).

The footnote at the bottom should be tiled by a short line and the
number that is referenced could be in square brackets.

Do you see any way to get this ?


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



Re: RE : footnote design

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Nicolas Mazziotta wrote:
> For the "short line", if someone has an idea, I'm interrested too.

I believe you are all talking about the typographical
footnote separator.
As usual, the answer is in the spec, although in this
case naive ways to find it are bound to fail. Look here:
  http://www.w3.org/TR/xsl/slice6.html#fo_page-sequence

"Areas returned from an fo:static-content with a flow-name
  of xsl-footnote-separator become children of the
  footnote-reference-area of an area associated to
  an fo:region-body, preceding all sibling areas of
  area-class xsl-footnote."

This means you should be able to declare footnote
separator content as static-content in a page sequence:
   <fo:page-sequence master-reference="...">
     <fo:static-content flow-name="xsl-footnote-separator">
       <fo:block>
          <fo:leader leader-pattern="rule"
             leader-length="3cm" rule-thickness="1pt"/>
       </fo:block>
     </fo:static-content>
...
The bad news is that FOP doesn't implement this, you'll
get an error that there is no region "xsl-footnote-separator"
defined. actually, you can't define such a region (and you
don't need), FOP prevents this.
If you are reasonably sure which footnotes will appear first
on a page, you can put the block with the leader above into
the footnote body. I know, that's a waek workaround.

Does this help?

J.Pietschmann


Re[2]: RE : footnote design

Posted by Ingo Bruell <ib...@gmx.de>.
Hi J.Pietschmann,

JP> The baseline-shift property is not yet implemented. You are
JP> supposed to use vertical-align="super" exactly as Nicholas
JP> wrote.

Ooops, i just overlooked that he wrote to us vertical-align...

Thanks


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



Re: 2 coliumns * 4 columns table

Posted by Patrick Andries <pa...@videotron.ca>.
Yes good idea.


J.Pietschmann wrote:

> Patrick Andries wrote:
>
>> I'm not sure that declaring 2 columns in the region-body can help me 
>> on the first page, since it is preceded by single-column text (of 
>> arbitrary length) before the table split into 2 * 4 columns appears.
>
>
> You can put the text in a block and use span="all"
>  http://www.w3.org/TR/xsl/slice7.html#span
>
> J.Pietschmann
>
>
>



Re: 2 coliumns * 4 columns table

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Patrick Andries wrote:

> I'm not sure that declaring 2 columns in the region-body can help me on 
> the first page, since it is preceded by single-column text (of arbitrary 
> length) before the table split into 2 * 4 columns appears.

You can put the text in a block and use span="all"
  http://www.w3.org/TR/xsl/slice7.html#span

J.Pietschmann



Re: 2 coliumns * 4 columns table

Posted by Patrick Andries <pa...@videotron.ca>.

J.Pietschmann wrote:

> Patrick Andries wrote:
>
>> The difficulty involves a table made of two columns (left/right)  
>> themselves divided into 4 further columns (a,b,c,d). The content 
>> should flows from the left four columns (a,b,c,d) on a page to the 
>> right four columns (a,b,c,d) of the same page before going on to the 
>> next pages, themselves divided in the same way. The page header on 
>> the next pages is slightly different from the one found on the first 
>> page containing the table.
>>
>> Is this possible with your XEP ?
>
>
> This is the FOP list. 

Oops. Sorry!  This is actually a FO theoretical question.

>> Could you give me an rough idea how to implement it and test it ?
>
> You have to explicit assign the text to the columns in tables. 

Hmm. This is not obvious if I do not know how many lines precede the 
table on the first page.

>
> You can try to use columns in the region-body
>  <fo:region-body column-count="2"/>
> If you can use this, you can probably also use static content
> in the region-before for your slightly different headers. 

Yes, this is a good idea, for the headers this could make sense : 1st 
page table headers are actually table headers (they could occur 
somewhere in the middle of the 1st page), next page table headers are 
actually in the region-before and the table headers are not repeated.

I'm not sure that declaring 2 columns in the region-body can help me on 
the first page, since it is preceded by single-column text (of arbitrary 
length) before the table split into 2 * 4 columns appears.

Patrick



Re: 2 coliumns * 4 columns table

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Patrick Andries wrote:
> The difficulty involves a table made of two columns (left/right)  
> themselves divided into 4 further columns (a,b,c,d). The content should 
> flows from the left four columns (a,b,c,d) on a page to the right four 
> columns (a,b,c,d) of the same page before going on to the next pages, 
> themselves divided in the same way. The page header on the next pages is 
> slightly different from the one found on the first page containing the 
> table.
> 
> Is this possible with your XEP ?

This is the FOP list.

> Could you give me an rough idea how to 
> implement it and test it ?
You have to explicit assign the text to the columns in tables.
You can try to use columns in the region-body
  <fo:region-body column-count="2"/>
If you can use this, you can probably also use static content
in the region-before for your slightly different headers.


J.Pietschmann


2 coliumns * 4 columns table

Posted by Patrick Andries <pa...@videotron.ca>.
I need to implement tables that seem to me to be difficult (or 
impossible) to render with XSL FO.

The difficulty involves a table made of two columns (left/right)  
themselves divided into 4 further columns (a,b,c,d). The content should 
flows from the left four columns (a,b,c,d) on a page to the right four 
columns (a,b,c,d) of the same page before going on to the next pages, 
themselves divided in the same way. The page header on the next pages is 
slightly different from the one found on the first page containing the 
table.

Is this possible with your XEP ? Could you give me an rough idea how to 
implement it and test it ?

P. Andries





Re: RE : footnote design

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ingo Bruell wrote:
> NM> e.g. <fo:inline vertical-align="super> i have:
> <fo:footnote>
>    <fo:inline baseline-shift="super" font-size="90%">1</fo:inline>
>    <fo:footnote-body font-family="Times Roman" font-size="7pt">
>    ...
> 
> but it looks like:
> 
> "blabla 1 blabla" (no superscript)

The baseline-shift property is not yet implemented. You are
supposed to use vertical-align="super" exactly as Nicholas
wrote.

J.Pietschmann


Re: RE : footnote design

Posted by Ingo Bruell <ib...@gmx.de>.
Hi Nicolas,


NM> Don't forget you can use
NM> e.g. <fo:inline vertical-align="super"
font-size="6pt">><xsl:number/></fo:inline>
NM> to format the reference numbers in footnotes (as well as in text!).

i have:
<fo:footnote>
   <fo:inline baseline-shift="super" font-size="90%">1</fo:inline>
   <fo:footnote-body font-family="Times Roman" font-size="7pt">
   ...

but it looks like:

"blabla 1 blabla" (no superscript)


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



Re: RE : footnote design

Posted by Chuck Paussa <Ch...@systems.dhl.com>.
Nicolas and Ingo,

Use <fo:block border-top="solid 1px lightgray"> to surround the 
footnoted text

Chuck

 > Nicolas Mazziotta wrote:
 >
 > Don't forget you can use e.g. <fo:inline vertical-align="super" 
font-size="6pt"><xsl:number/></fo:inline> to format the reference 
numbers in footnotes (as well as in text!).
 >
 > For the "short line", if someone has an idea, I'm interrested too.
 >
 > N. Mazziotta
 >
 > -----Message d'origine-----
 > De : Ingo Bruell [mailto:ibruell@gmx.de]
 >
 > is there a way to make footnotes looks nice in the near future ? Now 
they work but looks very bad. The Referencenumber is simple a number it 
should look nicer if it would be a small number that is higher than the 
other glyphs (like power).
 >
 > The footnote at the bottom should be tiled by a short line and the 
number that is referenced could be in square brackets.
 >
 > Do you see any way to get this ?
 >
 > Ingo Bruell




RE : footnote design

Posted by Nicolas Mazziotta <Ni...@ulg.ac.be>.
Don't forget you can use
e.g. <fo:inline vertical-align="super"
font-size="6pt"><xsl:number/></fo:inline>
to format the reference numbers in footnotes (as well as in text!).

For the "short line", if someone has an idea, I'm interrested too.

N. Mazziotta


> -----Message d'origine-----
> De : Ingo Bruell [mailto:ibruell@gmx.de]
> Envoyé : jeudi 18 avril 2002 00:25
> À : fop-user@xml.apache.org
> Objet : footnote design
> 
> Hi,
> 
> is there a way to make footnotes looks nice in the near future ? Now
> they work but looks very bad. The Referencenumber is simple a number
> it should look nicer if it would be a small number that is higher than
> the other glyphs (like power).
> 
> The footnote at the bottom should be tiled by a short line and the
> number that is referenced could be in square brackets.
> 
> Do you see any way to get this ?
> 
> 
> so long
> 
> 
> Ingo Bruell
> 
> ---
> <ib...@gmx.de>
> <In...@epost.de>
> <ICQ# 40377720>
> Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648
> 169E E5FC
> Germany      PGP-Public-Key available at pgpkeys.mit.edu