This is the mail archive of the docbook-apps@lists.oasis-open.org 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: [docbook-apps] Programmlisting Tab->Space and Tiny Spaces


You might also experiment with fo:character with treat-as-word-space set to false. e.g. ;-)

z.<fo:character character=" " font-size=".5pt" treat-as-word-space="false"/>B.

http://www.zvon.org/xxl/xslfoReference/Standard/slice6.html#fo_character
http://www.zvon.org/xxl/xslfoReference/Standard/slice7.html#treat-as-word-space

You'd have to use a PI or some other hack to have the xsls add it to the desired place. For a similar problem, I add <?sbr?> in long filenames and have the xsls put in a <fo:character character=" " font-size=".01pt" treat-as-word-space="true"/> to create hyphenless linebreaks. Warning: Don't use font-size="0pt". The pdf will look fine, but some printers get confused.

David

-----Original Message-----
From: Bob Stayton [mailto:bobs@sco.com]
Sent: Thursday, September 04, 2003 11:17 AM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Programmlisting Tab->Space and Tiny Spaces

<snip>

> - In abbrevations such as the german z. B. it can happen that the produced
>   fo output inserts a line break just between the z. and the B. which looks
>   extremely ugly.
>   I'd also like to make the space between a little tinier if possible.
>   Now I tried &x2009; and &x200A; which - as I understand from the
> Definitive
>   DB Guide - should be Thin or Hair spaces. Both resulted in a normal Space
>   in FO which does not prevent line breaking.

It is possible that your FO processor does not format
thin space characters as thin spaces.  I suspect in either
case that they are not treated as non-breaking spaces.
think you could use &nbsp; to 
at least prevent the line from breaking.


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


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