This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: The longest node in a node set


> I think I would better go for a hypenation approach. Not that I want
> real English words hyphenated, but the idea is as follows:
> 
> I have long things like:
> 
> 0123456-987654-784112-AS-666
> 
> This could probably be split as:
> 
> 0123456-987654-784112-
> AS-666
> 
> Is there a way to tell the FO renderer that it can cut a word at a
> specific place? Some sort of zero length space that must be 
> interpreted
> by the FO renderer as exactly that, a space (in the sense of something
> that is between words), but 0 length (i.e. Do not draw it if 
> the word is
> not splitted).

fo supports this,
7.16.7 "treat-as-word-space"
 <fo:character character="&#x2001;" treat-as-word-space="true"/>

Its an 'invisible' space (I think 2001 is very thin space)
If you scattered those alongside the hyphens it would help.

Check your formatter supports this though. xep doesn't as yet,
nor does Antenna house. Unsure about PassiveTex.
So its there, but not usable as yet.



> Or does anyone see a better approach?

I think your approach of word splitting at the xslt stage is appropriate,
though what to split on might be difficult.

Question. If tables are proving so difficult, is it essential to have
tables?
Or how about taking the hard to format cells and providing a link to notes
after
the table?

HTH DaveP

 

- 

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 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]