[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Inserting softHyphens in FO

Subject: Inserting softHyphens in FO
From: Danny Vint <dvint@xxxxxxxxxxxxxx>
Date: Thu, 15 Aug 2002 15:19:56 -0700
software wordwarp download
I have a document that has lots of tables. These tables document our XML Schema which has some very long element, entity, and datatype names that are composed of many words and partial words glommed together. For instance:

PCBASICDRIVER
ScheduleType
IncludedExcludedIndicator
PCCREDITSURCHARGE
NonOwnedAutoCategory

These values show up in a column of this table. With FOP it doesn't seem to hyphenate or break these values in anyway. Instead it just overruns into the next column.

Now I have a little routine that counts a number of characters and inserts a space so I get some wordwarp. Problem is that I use a proportional font so the Words with all caps runover at an early point then words with lots of skinny characters.

I need a better approach to make these word breaks. I would like to find the actual print width of the word and then divide it according the amount of space needed rather than counting characters.

My other choice would be to try and get some new hyphenation rules or be able to insert my own soft-hyphens that FOP would recognize and use when it needs the space.

Any ideas on how to do this?

..dan
---------------------------------------------------------------------------
Danny Vint
http://www.dvint.com





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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.