Hi Tav, Looks like you did everything right on your side, so indeed this may be a Fedora packaging problem. After a quick search I didn’t manage to find the corresponding rpm, in order to have a look into it. But apparently things differ quite a bit from the upstream package.
The FOP_HYPHENATION_PATH method works only if you’re using the original fop script. Try to figure out how FOP is called in Fedora. I bet this is a customized shell script that calls java in some way. Maybe you will then be able to figure out how to add fop-hyph.jar to the classpath. Perhaps a separate rpm exists that provides hyphenation files? At any rate it looks like a good idea to contact the package maintainers and ask them if they modified anything WRT the upstream version. HTH, Vincent Tavmjong Bah wrote: > Vincent, > > Thanks for your replies. > > On Mon, 2008-05-19 at 09:25 +0100, Vincent Hennebert wrote: >> Hi, >> >> Tavmjong Bah wrote: >>> Hi, >>> >>> Fop (0.95beta) is included in Fedora 9. Has anybody gotten hyphenation >>> to work with this package? I get the error message: >>> >>> SEVERE: Couldn't find hyphenation pattern en >>> >>> I have downloaded the precompiled JAR file from OFFO and tried setting >>> the CLASSPATH to include it. I've also tried setting the >> Are you writing your own program embedding FOP, or are you using the >> command-line version? > > Command line version. > >> You can copy the fop-hyph.jar file into the lib/ or build/ directory of >> the FOP distribution. This makes hyphenation patterns available to every >> user of the machine (if this is of any interest for you), however the >> file may not survive a subsequent update of the FOP rpm package. > > A. Since I wasn't building FOP myself, I didn't have a build > directory (it's built already in Fedora 9). There also isn't an > explicit lib directory. I tried putting it the same place where > fop-0.95.jar is located. > >>> FOP_HYPHENATION_PATH to point to it. >> How did you do exactly? Note that the variable must explicitly include >> ‘fop-hyph.jar’: >> export FOP_HYPHENATION_PATH="/path/to/my/fop-hyph.jar" >> Just setting the directory won’t work. > > Tried that... still doesn't work. > >> You can have a look at the following page for help: >> http://offo.sourceforge.net/hyphenation/fop-stable/installation.html >> (although I’ve just noticed that the explanation about >> FOP_HYPHENATION_PATH is slighty inexact —will need correction.) > > That's where I looked first. > > I am thinking that maybe it's due to the way it was packaged by Fedora. > I will try to email the person that did the packaging. > > I have built fop myself... and it is now finding the hyphenation file. > > Tav -- Vincent Hennebert Anyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
