[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: Problem with FO and HTML Output on address
This is a bug in FOP. It doesn't happen with other FO processors. And it doesn't happen when the literallayout uses a monospaced font (i.e., has class="monospaced" attribute). For literallayout, this problem was fixed in version 1.62.4 of the stylesheets by adding a text-align="start" property to the fo:block. When you say it didn't work with literallayout, are you sure you are using version 1.62.4? It worked for me when I tested it with FOP. For address, Norm cautioned me against adding text-align="start" to the fo:block because an address could be on a page where text is centered (title page for example), and that property on the fo:block for the address would override the alignment for the page. So I don't have a general solution for address. If your address blocks are always left-aligned, you could customize the address template. Copy the template starting with <xsl:template match="address"> in fo/verbatim.xsl to your customization layer and add one line: <fo:block wrap-option='no-wrap' white-space-collapse='false' linefeed-treatment="preserve" => text-align="start" xsl:use-attribute-sets="verbatim.properties"> <xsl:copy-of select="$content"/> </fo:block> Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Sylvain Perchaud" <sylvain@europe-shareware.org> To: "Sean Wheller" <seanwhe@yahoo.com>; <docbook-apps@lists.oasis-open.org> Sent: Thursday, December 18, 2003 3:23 AM Subject: [docbook-apps] Re: Problem with FO and HTML Output on address I replaced the address element with <literallayout> such as : <sect2> <title>Informations utiles</title> <literallayout> AFAS Chez Bochet F-74500 Saint-Paul-en-Chablais FRANCE infos@afas-fr.org </literallayout> </sect2> but the same problems occur : 1. the address is always aligned on the right of the page 2. if there's a space in a line (for example "Chez Bochet" in the second line) this space is multiplied in the output (it gives something like "Chez Bouchet"). Le jeudi 18 décembre 2003, à 2:34, Sean Wheller a écrit: >----- Original Message ----- >From: "Sylvain Perchaud" ><sylvain@europe-shareware.org> >To: "Sean Wheller" <seanwhe@yahoo.com> >Sent: Wednesday, December 17, 2003 7:12 PM >Subject: a docbook question > > >> Hello Sean, >> >> >> I'm new to Docbook and I'm facing a page layout >problem with the >> <address> element. >> >> With the following structure : >> >> <sect2> >> <title>Informations utiles</title> >> <address> >> AFAS >> <street>Chez Bochet</street> >> <postcode>F-74500</postcode>, ><city>Saint-Paul-en-Chablais</city> >> <country>FRANCE</country> >> <email>infos@afas-fr.org</email> >> </address> >> </sect2> >> >> I face two problems in the output : >> >> 1. the address is always aligned on the right of the >page >> 2. if there's a space in an entry (for example "Chez >Bochet" inside the >> <street> element) this space is multiplied in the >output (it gives >> something like "Chez Bouchet"). >> >> >> Do you know what I can do ? > > >__________________________________ >Do you Yahoo!? >New Yahoo! Photos - easier uploading and sharing. >http://photos.yahoo.com/ > -- Sylvain Perchaud Tel : +33 (0) 674 758 551 http://www.europe-shareware.org To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]