W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2003

RE: 7.16.2 "letter-spacing"

From: <David.Pawson@rnib.org.uk>
Date: Wed, 19 Mar 2003 15:37:31 -0000
Message-ID: <9B66BBD37D5DD411B8CE00508B69700F024A816C@pborolocal.rnib.org.uk>
To: pgrosso@arbortext.com, www-xsl-fo@w3.org

Paul said:
> The discussion at
> http://www.w3.org/TR/xsl/slice7.html#letter-spacing
> explains how letter-spacing affects the space-start and 
> space-end traits of the fo:character.
> 
> What the spec doesn't make clear in section 7.16.2  is that letter-spacing
applies
> only to the fo:character, fo:leader, and fo:page-number FOs 
> (as you discover if you search through the various FO descriptions
> for applicable properties).

I'm nearly happy with that Paul, but *which* character(s) is my question.
I'm using
<fo:character../><fo:character../><fo:character../>

> 
> On any other FO, the value of letter-spacing is merely inherited 
> by the enclosed fo:character's (and leaders and page-numbers).  

So... (my terminology), is this 'reverse' inheritance? E.g. if I 
wrap my 3 fo:characters with an fo:block, the fo:block inherits
the letter spacing of the characters? 
   

> So to affect the letter-spacing on, say, an entire title, you 
> should put the letter-spacing property on the fo:block (or 
> whatever) that the title maps into, and this will be inherited 
> by the enclosed fo:characters.

I'd be happy with that. What I'm trying to do is use a negative
value to get a character to appear more to the start direction
than it normally would, rather than using a combining diaresis,
which works nicely to produce, say a u umlaut.


 <fo:block>Some standard inline text to test umlaut. </fo:block>
    <fo:block font-family="ArialUnicodeMS">   <fo:inline>This uses the
combining character value 0308, the diaresis.<fo:character
character="o"/><fo:character character="&#x0308;" 
/> </fo:inline></fo:block>

    <fo:block font-family="ArialUnicodeMS">
 <fo:inline>Some more standard inline text to test a different way.
&#x20;<fo:character character="A" letter-spacing="-0.8 * 1em" />
<fo:character character="&#x02DA;" 
 
vertical-align="50%"/> </fo:inline></fo:block>

The first block (I'm using the Microsoft Unicode font) works nicely.
The second, in trying to get a similar effect, is shown differently
in Antenna House and RenderX's XEP.

Equally, I can't figure out from the rec, and the two implementations,
what is supposed to occur. 

From what you say Paul, I don't think I'm suffering from inheritance issues,
hence I'm still not understanding what is supposed to be shifted,
when, say, the letter-spacing is set on the middle one of 3 fo:characters.

regards DaveP



> p.s.  Of course, not all processors support letter-spacing.
> 

- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 
Received on Wednesday, 19 March 2003 10:38:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT