Re: Norwegian hyphenation rules

2011-09-16 Thread Lars Bjørndal
Hi, Simon!

You wrote:

 Yes, I realized that FOP_HYPHENATION_PATH is used in debian and
 ubuntu, and in fop's own startup script, and apparently not in fedora.
 Does the fedora script have no option to add the path to the
 hyphenation jar file, other than modifying the script?

It works while putting the following into the .foprc file:

CLASSPATH=path-to-jar-file

Lars

 On Wed, Sep 14, 2011 at 11:03:43AM +0200, Lars Bjørndal wrote:
 Hello, Simon, and thank you much for your valuable feedback!
 
 You wrote:
 
  This should work. If you are using fop downloaded from Apache, use:
 
  fop --execdebug xxx.fo xxx.pdf
 
  to see the classpath, and check whether /home/lrs/fop/fop-hyph.jar is
  part of it. Also check if /home/lrs/fop/fop-hyph.jar exists and is
  readable.
 
 I use Fedora 14 with a pre built RPM package, fop-0.95-5.fc14.noarch.
 the fop-hyph.jar file exists, and is readable. I ended up modifying the
 /usr/bin/fop shell script, by adding the path to the fop-hyph.jar file
 to the CLASSPATH variable. BTW the ~/.foprc file is also read, but it
 seems that putting the environment variable
 FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar in it, has no effect.

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



Re: Norwegian hyphenation rules

2011-09-14 Thread Lars Bjørndal
Hello, Simon, and thank you much for your valuable feedback!

You wrote:

 This should work. If you are using fop downloaded from Apache, use:

 fop --execdebug xxx.fo xxx.pdf

 to see the classpath, and check whether /home/lrs/fop/fop-hyph.jar is
 part of it. Also check if /home/lrs/fop/fop-hyph.jar exists and is
 readable.

I use Fedora 14 with a pre built RPM package, fop-0.95-5.fc14.noarch.
the fop-hyph.jar file exists, and is readable. I ended up modifying the
/usr/bin/fop shell script, by adding the path to the fop-hyph.jar file
to the CLASSPATH variable. BTW the ~/.foprc file is also read, but it
seems that putting the environment variable
FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar in it, has no effect.

I still have problems and error message, let me mention those in another
mail.

Lars

 On Sun, Sep 11, 2011 at 08:39:28PM +0200, Lars Bjørndal wrote:
 
 I then used 'unzip -v fop-hyph.jar' to list the content, and found the
 file 'hyph/no.hyp'. In ~/.foprc, I put:
 'FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar'.
 
 In the .fo file, I've tried both, language=no and language=nb. In
 both cases, I get the following output while running fop:
 
 11.sep.2011 20:14:51 org.apache.fop.hyphenation.Hyphenator
 getHyphenationTree
 SEVERE: Couldn't find hyphenation pattern no
 
 Any ideas?
 
 Lars

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



Re: Norwegian hyphenation rules

2011-09-14 Thread Simon Pepping
Yes, I realized that FOP_HYPHENATION_PATH is used in debian and
ubuntu, and in fop's own startup script, and apparently not in fedora.
Does the fedora script have no option to add the path to the
hyphenation jar file, other than modifying the script?

Simon

On Wed, Sep 14, 2011 at 11:03:43AM +0200, Lars Bjørndal wrote:
 Hello, Simon, and thank you much for your valuable feedback!
 
 You wrote:
 
  This should work. If you are using fop downloaded from Apache, use:
 
  fop --execdebug xxx.fo xxx.pdf
 
  to see the classpath, and check whether /home/lrs/fop/fop-hyph.jar is
  part of it. Also check if /home/lrs/fop/fop-hyph.jar exists and is
  readable.
 
 I use Fedora 14 with a pre built RPM package, fop-0.95-5.fc14.noarch.
 the fop-hyph.jar file exists, and is readable. I ended up modifying the
 /usr/bin/fop shell script, by adding the path to the fop-hyph.jar file
 to the CLASSPATH variable. BTW the ~/.foprc file is also read, but it
 seems that putting the environment variable
 FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar in it, has no effect.

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



Re: Norwegian hyphenation rules

2011-09-13 Thread Simon Pepping
This should work. If you are using fop downloaded from Apache, use:

fop --execdebug xxx.fo xxx.pdf

to see the classpath, and check whether /home/lrs/fop/fop-hyph.jar is
part of it. Also check if /home/lrs/fop/fop-hyph.jar exists and is
readable.

If you are using fop from debian or ubuntu, use:

DEBUG_WRAPPER=1 fop xxx.fo xxx.pdf

and check.

On Sun, Sep 11, 2011 at 08:39:28PM +0200, Lars Bjørndal wrote:
 
 I then used 'unzip -v fop-hyph.jar' to list the content, and found the
 file 'hyph/no.hyp'. In ~/.foprc, I put:
 'FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar'.
 
 In the .fo file, I've tried both, language=no and language=nb. In
 both cases, I get the following output while running fop:
 
 11.sep.2011 20:14:51 org.apache.fop.hyphenation.Hyphenator
 getHyphenationTree
 SEVERE: Couldn't find hyphenation pattern no
 
 Any ideas?
 
 Lars
 

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



Re: Norwegian hyphenation rules

2011-09-11 Thread Lars Bjørndal
Hi

Simon Pepping writes:

 Pattern file nb: Norwegian Bokmal hyphenation patterns
 Pattern file nn: Norwegian Nynorsk hyphenation patterns

 In the note 'Configuring FOP for hyphenation' on the installation
 pages you can find instructions on how to enable these for
 language=no.

At last, I found the file here:

http://sourceforge.net/projects/offo/files/offo-hyphenation/1.0/offo-hyphenation-fop-stable.zip/download

I then used 'unzip -v fop-hyph.jar' to list the content, and found the
file 'hyph/no.hyp'. In ~/.foprc, I put:
'FOP_HYPHENATION_PATH=/home/lrs/fop/fop-hyph.jar'.

In the .fo file, I've tried both, language=no and language=nb. In
both cases, I get the following output while running fop:

11.sep.2011 20:14:51 org.apache.fop.hyphenation.Hyphenator
getHyphenationTree
SEVERE: Couldn't find hyphenation pattern no

Any ideas?

Lars

 On Tue, Sep 06, 2011 at 08:42:04PM +0200, Lars Bjørndal wrote:
 I'd like to add support for Norwegian hyphenation in fop. I'm running a
 distro built fop package, version 0.95 on Fedora 14. On offo.sf.net, I
 can't find any download link for files like nohyph.xml or fop-hyph.jar
 that's mentioned in the web pages. Can someone please give me some hints
 on how to get this working?
 
 Thanks,
 Lars
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 

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


-- 
Lars Bjørndal l...@lamasti.net
Ostadalsveien 64, 0753 Oslo.
Mobil: 958 37 537

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



Norwegian hyphenation rules

2011-09-06 Thread Lars Bjørndal
I'd like to add support for Norwegian hyphenation in fop. I'm running a
distro built fop package, version 0.95 on Fedora 14. On offo.sf.net, I
can't find any download link for files like nohyph.xml or fop-hyph.jar
that's mentioned in the web pages. Can someone please give me some hints
on how to get this working?

Thanks,
Lars

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