Re: underline and superscript

Option 1 did not work as expected, but option 2 works perfectly.

Thanks a lot!

Nicolas



Tony Graham-3 wrote:
> 
> On Fri, Nov 27 2009 10:46:50 +0000, Tony.Graham@MenteithConsulting.com
> wrote:
>> On Fri, Nov 27 2009 03:02:27 +0000, nicolas.senechal@gmail.com wrote:
> ...
>>> The link rendered using this code looks weird both in fop and in antenna
>>> renderer. The underline under the (R) symbol is:
>>> - thinner
>>> - superscripted (it is drawn just under the (R) symbol)
>>
>> Did you try <fo:inline text-decoration="underline"> around the unadorned
>> <fo:basic-link>?
> 
> As soon as I sent that, I knew it wouldn't change anything.  Sorry about
> that.
> 
> You can, however, set a bottom border on the fo:basic-link that almost
> looks like an underline.  As you'll see if you try the FO below, the
> bottom border is typically lower than an underline would be.
> 
> Regards,
> 
> 
> Tony Graham                         Tony.Graham@MenteithConsulting.com
> Director                                  W3C XSL FO SG Invited Expert
> Menteith Consulting Ltd                               XML Guild member
> XML, XSL and XSLT consulting, programming and training
> Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
> Registered in Ireland - No. 428599   http://www.menteithconsulting.com
>   --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
> xmlroff XSL Formatter                               http://xmlroff.org
> xslide Emacs mode                  http://www.menteith.com/wiki/xslide
> Unicode: A Primer                               urn:isbn:0-7645-4625-2
> 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>   <fo:layout-master-set>
>     <fo:simple-page-master page-width="210mm" page-height="297mm"
> margin-right="0.75in" margin-left="0.2in" margin-bottom="0.0in"
> margin-top="0.375in" master-name="coverPage">
>       <fo:region-body margin-bottom="0.9in" margin-top="0.6in"
> region-name="xsl-region-body_coverpage"/>
>       <fo:region-before extent="0.5in"
> region-name="xsl-region-before_coverpage"/>
>       <fo:region-after extent="0.9in"
> region-name="xsl-region-after_allpages"/>
>     </fo:simple-page-master>
>     <fo:simple-page-master page-width="210mm" page-height="297mm"
> margin-right="0.75in" margin-left="0.2in" margin-bottom="0.0in"
> margin-top="0.375in" master-name="Page2">
>       <fo:region-body margin-bottom="0.9in" margin-top="0.6in"
> region-name="xsl-region-body"/>
>       <fo:region-before extent="0.5in"
> region-name="xsl-region-before_page2"/>
>       <fo:region-after extent="0.9in"
> region-name="xsl-region-after_allpages"/>
>     </fo:simple-page-master>
>     <fo:page-sequence-master master-name="master2">
>       <fo:repeatable-page-master-reference  master-reference="Page2"/>
>     </fo:page-sequence-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="master2">
>     <fo:flow flow-name="xsl-region-body" font-family="Times"
> font-size="12pt">
>       <fo:block>
>         <fo:basic-link text-decoration="underline"
>           line-height-shift-adjustment="disregard-shifts">
>     Introducing MyProduct
>           <fo:inline line-height="100%" baseline-shift="20%"
> font-size="smaller"
>             >®</fo:inline>
>      2.4
>         </fo:basic-link>
>       </fo:block>
>       <fo:block>
>         <fo:inline text-decoration="underline"><fo:basic-link
>           line-height-shift-adjustment="disregard-shifts">
>     Introducing MyProduct
>           <fo:inline line-height="100%" baseline-shift="20%"
> font-size="smaller"
>             >®</fo:inline>
>      2.4
>         </fo:basic-link></fo:inline>
>       </fo:block>
>       <fo:block>
>         <fo:basic-link border-bottom="thin black solid"
>             line-height-shift-adjustment="disregard-shifts">
>     Introducing MyProduct
>             <fo:inline line-height="100%" baseline-shift="20%"
> font-size="smaller"
>               >®</fo:inline>
>      2.4
>           </fo:basic-link>
>       </fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/underline-and-superscript-tp26535857p26567489.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Sunday, 29 November 2009 23:20:54 UTC