xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vhenneb...@gmail.com>
Subject Re: word wrap, hyphenation
Date Tue, 03 Nov 2009 10:08:39 GMT
Hi,

Chris Bowditch wrote:
> Jan Driesen wrote:
>> Dear all,
> 
> Hi Jan,
> 
>>
>>
>> While outputting PDF using FOP 0.95, I'm encountering an issue in PDF
>> markup.
>>
>> The (XSLT-generated) FO code is:
>>
>> <fo:table-row>
>> <fo:table-cell padding-right="1mm" padding-top="9pt"
>> text-align="justify" line-height="11pt" font-size="9pt"
>> font-family="Times New Roman" number-columns-spanned="2"> <fo:block>
>> <fo:inline font-style="italic">XaV Latin 9598 fol. 88 ; Reg Antwerp
>> 146 fol. 252, 194 fol. 190v ; G 109 n° 16, G 660, 951</fo:inline>
>> </fo:block> </fo:table-cell> </fo:table-row>
>>
>>
>> In the PDF output, this line is wrapped between "G 109 n" and "° 16, G
>> 660, 951". Rather than choosing a white-space to wrap the line. Is
>> there any way to avoid this? I need wrapping here to fit the content,
>> but preferably not between the "n°" sequence... 
> 
> 
> How about:
> 
> <fo:table-cell padding-right="1mm" padding-top="9pt"
> text-align="justify" line-height="11pt" font-size="9pt"
> font-family="Times New Roman" number-columns-spanned="2"> <fo:block>
> <fo:inline font-style="italic">XaV Latin 9598 fol. 88 ; Reg Antwerp 146
> fol. 252, 194 fol. 190v ; <fo:inline keep-together.within-line="true">G
> 109 n° 16</fo:inline>, G 660, 951</fo:inline> </fo:block>
> </fo:table-cell> </fo:table-row>

(Small correction: that’s keep-together.within-line="always".)

Alternatively you can use non-breaking spaces (U+00A0):
    <fo:inline font-style="italic">XaV Latin 9598 fol.&#x00A0;88 ; Reg Antwerp
146 fol.&#x00A0;252, 194 fol.&#x00A0;190v ; G&#x00A0;109 n°&#x00A0;16,
G&#x00A0;660, 951</fo:inline>

Just choose the method that is easiest to achieve for you. This may
depend on your processing chain.


HTH,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message