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]

[docbook-apps] Programmlisting Tab->Space and Tiny Spaces


Forwarding a request I received ...

----- Original Message ----- 
> From: "Simon Rutishauser" <simon.rutishauser@gmx.ch>
> Sent: Tuesday, September 02, 2003 10:44 PM
> Subject: Programmlisting Tab->Space and Tiny Spaces
> 
> I've got two problems I'm sure you can help to solve:
> 
> - Tabs in Programlistings (external files included with
>   <programlisting><textobject><textdata  fileref="file.txt"/>
>   </textobject></programlisting>
>   are expanded to much too many spaces. How can I set this?
>   (I'd like to reduce it to about two or three spaces)

The behavior of Tab characters in XSL is not defined at all.
So different processors handle them differently.
There is nothing the stylesheet can do about it.
You would be better off replacing the Tab characters
in the files with the appropriate number of space characters.

> - 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.


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