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 Barry Whiting <ba...@londonmarketing.com> on 2009/12/22 13:59:12 UTC

Drop Caps

Hi 

 

I wondered if anybody could help I am trying to do a drop cap at the
begining of each text and have tried using float but for some reason
this seems to be floating something just not what Im expecting.

 

 

                <xsl:for-each
select="exsl:node-set($editorschoice)/Events/Event">

                <xsl:if test="position() = 1 or current()/FurtherSubCat
= preceding-sibling::Event[1]/FurtherSubCat">

                    <fo:block>

                                <fo:float float="start">

                            <fo:block font-family="ZapfDingbats"
font-size="20pt" line-height="28pt" color="rgb(0,0,0)" margin="5pt"
text-depth="0" border="1px solid red">

                                &#x272A;

                            </fo:block>

                        </fo:float><fo:inline
font-family="CaeciliaRomanOsF" font-size="8pt" line-height="9.6pt"
font-weight="bold" color="rgb(0,0,0)">&#160;<xsl:apply-templates
select="current()/Editorial" /></fo:inline>                        

                    </fo:block>

                </xsl:if>

            </xsl:for-each>

 

There seems to be a floating area to the left of the text when processed
by fop but its empty.

 

Thanks

 

Barry


Re: Drop Caps

Posted by Pascal Sancho <pa...@takoma.fr>.
barry,

Like a text node, fo:external-graphic has to be set in an fo:float for this.
Pascal


Barry Whiting a écrit :
> Hi Pascal
>
> Thanks for getting back to me.
>
> If we can't use float could we use an external-graphic and the text will automatically wrap around the image correctly the same as html?
>
> Thanks
>
> Barry
>
> -----Original Message-----
> From: Pascal Sancho [mailto:pascal.sancho@takoma.fr]
>
> Hi Barry,
>
> Unfortunately fo:float is not implemented in FOP (see [1]).
> I see no workaround if you require exactly that kind of layout.
> Anyway, you still can choose either a fo:list or a fo:table to mimic
> what you want, if a 2 column contruction give you acceptable result.
>
> [1] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float
>
> Pascal
>
> Barry Whiting a écrit :
>   
>> Hi
>>
>>
>>
>> I wondered if anybody could help I am trying to do a drop cap at the
>> begining of each text and have tried using float but for some reason
>> this seems to be floating something just not what Im expecting.
>>
>>
>>
>>
>>
>>                 <xsl:for-each
>> select="exsl:node-set($editorschoice)/Events/Event">
>>
>>                 <xsl:if test="position() = 1 or
>> current()/FurtherSubCat = preceding-sibling::Event[1]/FurtherSubCat">
>>
>>                     <fo:block>
>>
>>                                 <fo:float float="start">
>>
>>                             <fo:block font-family="ZapfDingbats"
>> font-size="20pt" line-height="28pt" color="rgb(0,0,0)" margin="5pt"
>> text-depth="0" border="1px solid red">
>>
>>                                 &#x272A;
>>
>>                             </fo:block>
>>
>>                         </fo:float><fo:inline
>> font-family="CaeciliaRomanOsF" font-size="8pt" line-height="9.6pt"
>> font-weight="bold" color="rgb(0,0,0)">&#160;<xsl:apply-templates
>> select="current()/Editorial" /></fo:inline>
>>
>>                     </fo:block>
>>
>>                 </xsl:if>
>>
>>             </xsl:for-each>
>>
>>
>>
>> There seems to be a floating area to the left of the text when
>> processed by fop but its empty.
>>
>>
>>
>> Thanks
>>
>>
>>
>> Barry
>>
>>     


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


RE: Drop Caps

Posted by Barry Whiting <ba...@londonmarketing.com>.
Hi Pascal

Thanks for getting back to me.

If we can't use float could we use an external-graphic and the text will automatically wrap around the image correctly the same as html?

Thanks

Barry

-----Original Message-----
From: Pascal Sancho [mailto:pascal.sancho@takoma.fr] 
Sent: 22 December 2009 14:47
To: fop-users@xmlgraphics.apache.org
Subject: Re: Drop Caps

Hi Barry,

Unfortunately fo:float is not implemented in FOP (see [1]).
I see no workaround if you require exactly that kind of layout.
Anyway, you still can choose either a fo:list or a fo:table to mimic 
what you want, if a 2 column contruction give you acceptable result.

[1] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float

Pascal

Barry Whiting a écrit :
>
> Hi
>
>  
>
> I wondered if anybody could help I am trying to do a drop cap at the 
> begining of each text and have tried using float but for some reason 
> this seems to be floating something just not what Im expecting.
>
>  
>
>  
>
>                 <xsl:for-each 
> select="exsl:node-set($editorschoice)/Events/Event">
>
>                 <xsl:if test="position() = 1 or 
> current()/FurtherSubCat = preceding-sibling::Event[1]/FurtherSubCat">
>
>                     <fo:block>
>
>                                 <fo:float float="start">
>
>                             <fo:block font-family="ZapfDingbats" 
> font-size="20pt" line-height="28pt" color="rgb(0,0,0)" margin="5pt" 
> text-depth="0" border="1px solid red">
>
>                                 &#x272A;
>
>                             </fo:block>
>
>                         </fo:float><fo:inline 
> font-family="CaeciliaRomanOsF" font-size="8pt" line-height="9.6pt" 
> font-weight="bold" color="rgb(0,0,0)">&#160;<xsl:apply-templates 
> select="current()/Editorial" /></fo:inline>                       
>
>                     </fo:block>
>
>                 </xsl:if>
>
>             </xsl:for-each>
>
>  
>
> There seems to be a floating area to the left of the text when 
> processed by fop but its empty.
>
>  
>
> Thanks
>
>  
>
> Barry
>


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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.717 / Virus Database: 270.14.111/2569 - Release Date: 12/21/09 19:13:00

Re: Drop Caps

Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Barry,

Unfortunately fo:float is not implemented in FOP (see [1]).
I see no workaround if you require exactly that kind of layout.
Anyway, you still can choose either a fo:list or a fo:table to mimic 
what you want, if a 2 column contruction give you acceptable result.

[1] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float

Pascal

Barry Whiting a écrit :
>
> Hi
>
>  
>
> I wondered if anybody could help I am trying to do a drop cap at the 
> begining of each text and have tried using float but for some reason 
> this seems to be floating something just not what Im expecting.
>
>  
>
>  
>
>                 <xsl:for-each 
> select="exsl:node-set($editorschoice)/Events/Event">
>
>                 <xsl:if test="position() = 1 or 
> current()/FurtherSubCat = preceding-sibling::Event[1]/FurtherSubCat">
>
>                     <fo:block>
>
>                                 <fo:float float="start">
>
>                             <fo:block font-family="ZapfDingbats" 
> font-size="20pt" line-height="28pt" color="rgb(0,0,0)" margin="5pt" 
> text-depth="0" border="1px solid red">
>
>                                 &#x272A;
>
>                             </fo:block>
>
>                         </fo:float><fo:inline 
> font-family="CaeciliaRomanOsF" font-size="8pt" line-height="9.6pt" 
> font-weight="bold" color="rgb(0,0,0)">&#160;<xsl:apply-templates 
> select="current()/Editorial" /></fo:inline>                       
>
>                     </fo:block>
>
>                 </xsl:if>
>
>             </xsl:for-each>
>
>  
>
> There seems to be a floating area to the left of the text when 
> processed by fop but its empty.
>
>  
>
> Thanks
>
>  
>
> Barry
>


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