xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Delmelle <andreas.delme...@telenet.be>
Subject Re: Getting hyphenation to work
Date Wed, 28 May 2008 02:08:43 GMT

On May 28, 2008, at 03:05, Kamal Bhatt wrote:

Hi

> I have downloaded they hyphenation files from: http:// 
> offo.sourceforge.net/hyphenation/index.html
>
> I have copied these files into c:/fop-0.93/hyph
>
> I have updated my config file to point to this directory for  
> hyphenation base: <hyphenation-base>C:/fop-0.93/hyph/</hyphenation- 
> base>
>
> I have updated my FO to include language="en". There is an C:/ 
> fop-0.93/hyph/en.xml file (both attached)
>
> However, my line does not hyphenate. Instead, it remains a mess  
> (attached)
>
> What am I doing wrong?

The only thing you seem to be forgetting is:

> <fo:block>ALLWORKANDNOPLAYMAKESKAMALADULLBOYALLWORKANDNOPLAYMAKESKAMAL 
> ADULLBOYALLWORKANDNOPLAYMAKESKAMALADULLBOYALLWORKANDNOPLAYMAKESKAMALAD 
> ULLBOYALLWORKANDNOPLAYMAKESKAMALADULLBOYALLWORKANDNOPLAYMAKESKAMALADUL 
> LBOYALLWORKANDNOPLAYMAKESKAMALADULLBOYALLWORKANDNOPLAYMAKESKAMALADULLB 
> OYALLWORKANDNOPLAYMAKESKAMALADULLBOYALLWORKANDNOPLAYMAKESKAMALADULLBOY 
> ALLWORKANDNOPLAYMAKESKAMALADULLBOY
>           <fo:block>

You need:

<fo:block hyphenate="true">...

Or alternatively, specify the property on the fo:root, if you want it  
to apply to all fo:blocks in the document.


HTH!

Andreas


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