Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-27 Thread Simon Pepping
The OFFO hyphenation jar file offo-hyphenation-fop-stable_v1.2.zip
contains en.hyp, en_GB.hyp, en_US.hyp. The experimental OFFO
hyphenation jar file offo-hyphenation-fop-stable-utf8.zip contains
en.hyp and en_GB.hyp.

The fop script of Debian and (probably) Ubuntu locates fop-hyph.jar at
$FOP_HYPHENATION_PATH.

How to include fop-hyph.jar in a build of the trunk code is described
at
http://offo.sourceforge.net/hyphenation/fop-stable/installation.html.

If you build fop from the trunk code, the idea is to leave the
generated jar files where they are, e.g. /opt/fop. You need to call
the fop script as: /path/to/fop-directory/fop, e.g. /opt/fop/fop. You
can also copy the fop script to /usr/bin or another directory in your
path, and set FOP_HOME to the path of the fop directory:

export FOP_HOME=/path/to/fop-directory.

Simon

On Wed, Jun 23, 2010 at 05:32:46PM -0500, Tom Browder wrote:
 On Wed, Jun 23, 2010 at 16:29, J.Pietschmann j3322...@yahoo.de wrote:
  On 23.06.2010 18:08, Tom Browder wrote:
 
  I'm trying to understand how the distributable packages on the fop
  download site are assembled, by hand or by script?  If by script,
 ...
  It's the build.xml file. You'll need ant (http://ant.apache.org) to
  run it, the target dist will generate tgz and zip archives for
 
 Thanks, I forgot about listing all the ant build targets (duh)!
 
  both a binary and a source package. It will not generate a package
  which can be used by the Ubuntu package system.
 
 Okay, but at least  should be able to be installed (i.e., unpacked)
 into some directory and it should work if the fop start-up script
 can be found on one's path.
 
 Thanks for everyone's patience--consider this thread closed.
 
 -Tom

-- 
Simon Pepping
home page: http://www.leverkruid.eu


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-27 Thread Tom Browder
On Sun, Jun 27, 2010 at 14:20, Simon Pepping spepp...@leverkruid.eu wrote:
...
 How to include fop-hyph.jar in a build of the trunk code is described
 at
 http://offo.sourceforge.net/hyphenation/fop-stable/installation.html.

Thanks, Simon!

Regards,

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Eric Douglas
What path?
What version fop are you using?
I downloaded the source and rebuilt the jar without any classpath in it because 
we use it embedded in another language which has it's own classpath setup where 
I reference all required jars, but I haven't sent that version out yet.  Our 
live system is still using the fop.jar from the 0.95 binary download.  If I 
open that jar in 7-zip, I can see it contains a folder called META-INF.  In 
that folder is a file called MANIFEST.MF.  Within that file is this statement:
Class-Path: avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.3.1.jar 
commons-logging-1.0.4.jar serializer-2.7.0.jar servlet-2.2.jar xalan-2.7.0.jar 
xercesImpl-2.7.1.jar xml-apis-1.3.04.jar xml-apis-ext-1.3.04.jar 
xmlgraphics-commons-1.3.1.jar fop-hyph.jar jai_codec.jar jai_core.jar 
jai_imageio.jar jimi-1.0.jar xmlunit1.0.jar 

So you can see there is no path.  That path would use I assume any path already 
assigned to the JVM, or it would expect all those jars to exist in the same 
path as fop.jar.

-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Wednesday, June 23, 2010 7:45 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Tue, Jun 22, 2010 at 15:50, Eric Douglas edoug...@blockhouse.com wrote:
 You can view the files in a jar including classes with a jar viewer 
 program.  A jar is just a form of compressed file like zip or rar.  I 
 use 7-zip to view it.

Using: jar -tvf fop-hyph.jar I get (other languages deleted from the list):

    0 Mon Apr 14 13:32:22 CDT 2008 META-INF/
   71 Mon Apr 14 13:32:22 CDT 2008 META-INF/MANIFEST.MF
    0 Mon Apr 14 13:31:24 CDT 2008 hyph/
74672 Mon Apr 14 13:25:02 CDT 2008 hyph/en_US.hyp 126340 Mon Apr 14 13:25:02 
CDT 2008 hyph/en_GB.hyp
67983 Mon Apr 14 13:25:02 CDT 2008 hyph/en.hyp

Using cat on the manifest file shows:

Manifest-Version: 1.0
Created-By: 1.5.0_14 (Sun Microsystems Inc.)

(blank line at the end)

So, assuming the jar file is physically in dir /usr/local/share/fop, should 
the CLASSPATH read:

  export CLASSPATH=/usr/local/share/fop/fop-hyph.jar

or something else, i.e., how is the path inside the manifest handled?

Or should I manually repack the jar file without the subdirectory hyph?

Thanks,

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 06:45, Tom Browder tom.brow...@gmail.com wrote:
 On Tue, Jun 22, 2010 at 15:50, Eric Douglas edoug...@blockhouse.com wrote:
...
 So, assuming the jar file is physically in dir /usr/local/share/fop,
 should the CLASSPATH read:

  export CLASSPATH=/usr/local/share/fop/fop-hyph.jar

By experiment, that method worked for the build directory, but not for
my installed fop 0.95.

I also tried using the environment variable FOP_HYPHENATION_PATH again
(after unsetting CLASSPATH).

I tried it two ways: (1) setting it to point the file and (2) setting
it to point to the parent directory of the file.

Both worked for the installed fop 0.95.

I would like to try all that with the trunk version, but nowhere on
the fop site does it tell how to install after a build.  The closest
thing I found is the package argument to ant.

What should I do to install, please?

Thanks.

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Eric Douglas
What do you mean install after a build?  Fop is not an application to be 
installed.  It's a Java program, which you can run from a command line or embed 
in another application.

The ant classpath arguments are in the build.xml.  I only vaguely know ant to 
tell what that code is doing but there seems to be one classpath ant needs to 
be able to compile the fop.jar and another classpath ant uses to build the 
runtime path as the classpath statement in the manifest.mf text file in the 
jar.  To build of course requires downloading the fop source, then downloading 
some other required jars from other sites.

To 'install' as in to be able to run from a command line, simply requires 
having all required jars in the classpath.  If you use the binary download, the 
classpath is built into the jar's manifest.  Just read the classpath statement 
there and have all those jars in the same path as the fop jar.

What else are you trying to do, or where exactly are you getting an error?

-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Wednesday, June 23, 2010 8:38 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Wed, Jun 23, 2010 at 06:45, Tom Browder tom.brow...@gmail.com wrote:
 On Tue, Jun 22, 2010 at 15:50, Eric Douglas edoug...@blockhouse.com wrote:
...
 So, assuming the jar file is physically in dir /usr/local/share/fop, 
 should the CLASSPATH read:

  export CLASSPATH=/usr/local/share/fop/fop-hyph.jar

By experiment, that method worked for the build directory, but not for my 
installed fop 0.95.

I also tried using the environment variable FOP_HYPHENATION_PATH again (after 
unsetting CLASSPATH).

I tried it two ways: (1) setting it to point the file and (2) setting it to 
point to the parent directory of the file.

Both worked for the installed fop 0.95.

I would like to try all that with the trunk version, but nowhere on the fop 
site does it tell how to install after a build.  The closest thing I found is 
the package argument to ant.

What should I do to install, please?

Thanks.

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 08:06, Eric Douglas edoug...@blockhouse.com wrote:
 What do you mean install after a build?
...
 To 'install' as in to be able to run from a command line, simply requires 
 having all required jars in the classpath.  If you use the binary download, 
 the classpath is built into the jar's manifest.  Just read the classpath 
 statement there and have all

Well then how does a developer build the installation package (i.e.,
the binary download)?

I want  to install the trunk build just as, say, Ubuntu does to
ensure all dependencies, etc., work outside the build environment.

And I want to be able to distribute the run package to others.

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Eric Douglas
The binary download is the same as the source download should be if you compile 
it.
That's not a standalone package.  It doesn't install as an application in 
Windows.

I don't know anything about Ubuntu, but to distribute it you would just get the 
binary jar and package it into an msi, zip, or other such format yourself, to 
include the jars referenced in the classpath.  Some required jars must be 
downloaded from other sites.
Do you have a need to send the fop program to someone else to run on their 
local machine?  Can you just set it on a server and have them connect to run it 
ie webstart? 

-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Wednesday, June 23, 2010 9:33 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Wed, Jun 23, 2010 at 08:06, Eric Douglas edoug...@blockhouse.com wrote:
 What do you mean install after a build?
...
 To 'install' as in to be able to run from a command line, simply 
 requires having all required jars in the classpath.  If you use the 
 binary download, the classpath is built into the jar's manifest.  Just 
 read the classpath statement there and have all

Well then how does a developer build the installation package (i.e., the 
binary download)?

I want  to install the trunk build just as, say, Ubuntu does to ensure all 
dependencies, etc., work outside the build environment.

And I want to be able to distribute the run package to others.

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 09:04, Eric Douglas edoug...@blockhouse.com wrote:
 The binary download is the same as the source download should be if you 
 compile it.
 That's not a standalone package.  It doesn't install as an application in 
 Windows.

I'm not trying to be difficult here, Eric, just trying to figure the
fop system out.

I compared the fop 0.95 binary download with the trunk build and
they are not the same--extra stuff in the trunk (not counting
subversion files), extra stuff in the binary.  Obviously there is
either manual intervention or a packaging script to produce the bin
package for download.  If there is not a script, there should be.  If
there is a script, where is it?

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Eric Douglas
Of course the 0.95 is not the same as the trunk.
There is a binary download and a source download for 0.95.  If you compile that 
source, you should get a binary which matches the binary download.  The trunk 
is only available in source form.

To produce a binary from source you have to do the Ant build.  Supposedly this 
can be done from a command prompt.  I use Eclipse.  To compile with Ant in 
Eclipse, you just create a new project using Ant, then open that project, find 
the build.xml file and right click on it.  Select Run As Ant.

In order to compile the source either for 0.95 or the trunk, you have to add 
the missing jars.  If you attempt to build it you should get errors which 
should tell you which jars it's missing.  Some jars are not included because 
the license doesn't allow.
Once it's compiled, open the jar as an archive and you can view the manifest.mf 
file which has a classpath statement with the list of other jars needed to run 
it.
 

-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Wednesday, June 23, 2010 11:09 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Wed, Jun 23, 2010 at 09:04, Eric Douglas edoug...@blockhouse.com wrote:
 The binary download is the same as the source download should be if you 
 compile it.
 That's not a standalone package.  It doesn't install as an application in 
 Windows.

I'm not trying to be difficult here, Eric, just trying to figure the fop system 
out.

I compared the fop 0.95 binary download with the trunk build and they are not 
the same--extra stuff in the trunk (not counting subversion files), extra stuff 
in the binary.  Obviously there is either manual intervention or a packaging 
script to produce the bin package for download.  If there is not a script, 
there should be.  If there is a script, where is it?

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 10:52, Eric Douglas edoug...@blockhouse.com wrote:
 Of course the 0.95 is not the same as the trunk.
 There is a binary download and a source download for 0.95.  If you compile 
 that source, you should get a binary which matches the binary download.  The 
 trunk is only available in source form.

Then how is the source download package produced from the trunk?

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Eric Douglas
You have to use Subversion to download the trunk source.
There is a Subversion program which you can run from a command prompt, and 
there's an extension for Eclipse.  Either way works. 

-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Wednesday, June 23, 2010 12:01 PM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Wed, Jun 23, 2010 at 10:52, Eric Douglas edoug...@blockhouse.com wrote:
 Of course the 0.95 is not the same as the trunk.
 There is a binary download and a source download for 0.95.  If you compile 
 that source, you should get a binary which matches the binary download.  The 
 trunk is only available in source form.

Then how is the source download package produced from the trunk?

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 11:03, Eric Douglas edoug...@blockhouse.com wrote:
 You have to use Subversion to download the trunk source.
 There is a Subversion program which you can run from a command prompt, and 
 there's an extension for Eclipse.  Either way

Eric, I'm working in the subversion trunk.

I'm trying to understand how the distributable packages on the fop
download site are assembled, by hand or by script?  If by script,
where is it?  If by hand, where are the procedures written?

Thanks,

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread J.Pietschmann

On 23.06.2010 18:08, Tom Browder wrote:

I'm trying to understand how the distributable packages on the fop
download site are assembled, by hand or by script?  If by script,
where is it?


It's the build.xml file. You'll need ant (http://ant.apache.org) to
run it, the target dist will generate tgz and zip archives for
both a binary and a source package. It will not generate a package
which can be used by the Ubuntu package system. They wont contain
the jar with the hyphenation classes either.

J.Pietschmann


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-23 Thread Tom Browder
On Wed, Jun 23, 2010 at 16:29, J.Pietschmann j3322...@yahoo.de wrote:
 On 23.06.2010 18:08, Tom Browder wrote:

 I'm trying to understand how the distributable packages on the fop
 download site are assembled, by hand or by script?  If by script,
...
 It's the build.xml file. You'll need ant (http://ant.apache.org) to
 run it, the target dist will generate tgz and zip archives for

Thanks, I forgot about listing all the ant build targets (duh)!

 both a binary and a source package. It will not generate a package
 which can be used by the Ubuntu package system.

Okay, but at least  should be able to be installed (i.e., unpacked)
into some directory and it should work if the fop start-up script
can be found on one's path.

Thanks for everyone's patience--consider this thread closed.

-Tom


Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-22 Thread J.Pietschmann

On 22.06.2010 19:02, Tom Browder wrote:

I have tried to explicitly point to the fop-hyph.jar file with the
FOP_HYPHENATION_PATH environment variable but that doesn't seem to
work.


The fop-hyph.jar must be in the classpath, putting it into
the fop/lib directory should be sufficient if FOP is run using
one of the scripts as they pick up any jar there.

I'm not sure whether the fop-hyph.jar from the OFFO project
contains an en_US hyphenation class, maybe there is only
an en_UK class there. Check using jar -tvf lib/fop-hyph.jar

J.Pietschmann




Re: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-22 Thread Tom Browder
On Tue, Jun 22, 2010 at 15:29, J.Pietschmann j3322...@yahoo.de wrote:
 On 22.06.2010 19:02, Tom Browder wrote:

 I have tried to explicitly point to the fop-hyph.jar file with the
 FOP_HYPHENATION_PATH environment variable but that doesn't seem to
 work.

So should I file a bug for that?

 The fop-hyph.jar must be in the classpath, putting it into
 the fop/lib directory should be sufficient if FOP is run using
 one of the scripts as they pick up any jar there.

 I'm not sure whether the fop-hyph.jar from the OFFO project
 contains an en_US hyphenation class, maybe there is only
 an en_UK class there. Check using jar -tvf lib/fop-hyph.jar

Note that I tried the CLASSPATH trick before with fop 0.95 and it
didn't work, but I'll try again.  Is there any way (tool or utility)
to read a jar file to see if a particular hyphenation class is there?

Thanks,

-Tom


RE: SEVERE: Couldn't find hyphenation pattern en_US

2010-06-22 Thread Eric Douglas
You can view the files in a jar including classes with a jar viewer
program.  A jar is just a form of compressed file like zip or rar.  I
use 7-zip to view it.

You can get the manifest.mf file from the jar to check for a classpath
being referenced by the jar.  If the classpath just has the jar names,
it's assumed they're in the same path as the fop.jar.  Make sure you
have all the jars referenced in the classpath.  Some of them you have to
download elsewhere and you may need to rename.

The classpath within the jar may interfere with programs which embed the
jar and assign their own classpath.  I had that problem, so I downloaded
the source, removed the classpath from the manifest, and recompiled it
myself.


-Original Message-
From: Tom Browder [mailto:tom.brow...@gmail.com] 
Sent: Tuesday, June 22, 2010 4:43 PM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: SEVERE: Couldn't find hyphenation pattern en_US

On Tue, Jun 22, 2010 at 15:29, J.Pietschmann j3322...@yahoo.de wrote:
 On 22.06.2010 19:02, Tom Browder wrote:

 I have tried to explicitly point to the fop-hyph.jar file with the 
 FOP_HYPHENATION_PATH environment variable but that doesn't seem to 
 work.

So should I file a bug for that?

 The fop-hyph.jar must be in the classpath, putting it into the fop/lib

 directory should be sufficient if FOP is run using one of the scripts 
 as they pick up any jar there.

 I'm not sure whether the fop-hyph.jar from the OFFO project contains 
 an en_US hyphenation class, maybe there is only an en_UK class there. 
 Check using jar -tvf lib/fop-hyph.jar

Note that I tried the CLASSPATH trick before with fop 0.95 and it didn't
work, but I'll try again.  Is there any way (tool or utility) to read a
jar file to see if a particular hyphenation class is there?

Thanks,

-Tom