Re: configuration problem: hyphenation
Kyle Kotwica wrote: Using either form of the URL suggested. The comment meant: 1. file:///\fop\fop-0.20.5\conf While it is a syntatcically valid URL, it probably wont work as expected, i.e. it does not address the file system object \fop\fop-0.20.5\conf 2. file:///\fop\fop-0.20.5\conf This will address the file system object \fop\fop-0.20.5\conf, but it's still no use because 3. The config setting is not an URL, but realy a directory name (path name). You should use \fop\fop-0.20.5\conf or C:\fop\fop-0.20.5\conf or whatever drive you use. Running under -d I do get [DEBUG] user configuration file: \fop\fop-0.20.5\conf\userconfig.xml but no more about en_US.xml other then the message: [ERROR] Couldn't find hyphenation pattern en_US using general language pattern en instead. Oops, debug dumps are controlled by a static variable in the hyphenator, and are by default disabled. You can enable it by doing the following: 1. Get a JDK and the FOP source distro. 2. Open the file src/org/apache/fop/layout/hyphenation/Hyphenator.java in a text editor 3. Change the initialization of the errorDump variable to true. 4. Recompile by running build.bat. I still believe the cause of the problem is malformed XML, perhaps an encoding problem. Use another XML tool (not XML Spy) to verify your XML is free of this problems. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuration problem: hyphenation
On Tue, 2004-01-13 at 19:14, J.Pietschmann wrote: Kyle Kotwica wrote: Using either form of the URL suggested. The comment meant: 1. file:///\fop\fop-0.20.5\conf While it is a syntatcically valid URL, it probably wont work as expected, i.e. it does not address the file system object \fop\fop-0.20.5\conf 2. file:///\fop\fop-0.20.5\conf This will address the file system object \fop\fop-0.20.5\conf, but it's still no use because 3. The config setting is not an URL, but realy a directory name (path name). I thought that Java correctly translates forward slash to the System property file-separator setting, in the appropriate places. -- John Austin [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuration problem: hyphenation
J.Pietschmann wrote: 2. file:///\fop\fop-0.20.5\conf Darn, should be file:///fop/fop-0.20.5/conf of course. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration problem: hyphenation
-Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] J.Pietschmann wrote: 2. file:///\fop\fop-0.20.5\conf Darn, should be file:///fop/fop-0.20.5/conf of course. Sorry if it's contagious :) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuration problem: hyphenation
I'm trying to add my own hyphenation file, en_US.xml. I get the following error message: [ERROR] Couldn't find hyphenation pattern en_US using general language pattern en instead. Fop seems to know the configuration directory. [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser Dumping configuration: [INFO] -- [INFO] key: debugMode [INFO] key: version [INFO]value: FOP 0.20.5 [INFO] key: dumpConfiguration [INFO]value: true [INFO] key: quiet [INFO]value: false [INFO] key: hyphenation-dir [INFO]value: \fop\fop-0.20.5\conf [INFO] key: fonts [INFO]values: [INFO] [INFO] -- [INFO] key: stream-filter-list [INFO]values: [INFO] flate - [INFO] ascii-85 - [INFO] Directory of C:\fop\fop-0.20.5\conf 01/12/2004 12:48 PMDIR . 01/12/2004 12:48 PMDIR .. 07/14/2003 06:04 PM 193 config.dtd 01/07/2004 05:42 PM 1,547 config.xml 01/07/2004 04:40 PM63,848 en.xml 01/07/2004 05:24 PM63,848 en_US.xml 01/12/2004 11:45 AM 3,235 userconfig.xml From userconfig.xml entry keyhyphenation-dir/key value\fop\fop-0.20.5\conf/value /entry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration problem: hyphenation
-Original Message- From: Kyle Kotwica [mailto:[EMAIL PROTECTED] I'm trying to add my own hyphenation file, en_US.xml. I get the following error message: snip / From userconfig.xml entry keyhyphenation-dir/key value\fop\fop-0.20.5\conf/value Make this path a valid URL: file:///\fop\fop-0.20.5\conf Should work. Hope this helps! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuration problem: hyphenation
Andreas L. Delmelle wrote: Make this path a valid URL: file:///\fop\fop-0.20.5\conf Using file:///fop/fop-0.20.5/conf would be an even more valid URL. However, the hyphenation-dir is really meant to be a directory, *not* an URL. The actual data is read from a java.io.File. Running FOP with -d should either give reading ... en_US.xml which means the file was found (but probably is not well-formed XML) or Tried to load ... which means the file was not found. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration problem: hyphenation
Thanks for the help, but still no luck. Using either form of the URL suggested. Running under -d I do get [DEBUG] user configuration file: \fop\fop-0.20.5\conf\userconfig.xml but no more about en_US.xml other then the message: [ERROR] Couldn't find hyphenation pattern en_US using general language pattern en instead. -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 2:08 PM To: [EMAIL PROTECTED] Subject: Re: configuration problem: hyphenation Andreas L. Delmelle wrote: Make this path a valid URL: file:///\fop\fop-0.20.5\conf Using file:///fop/fop-0.20.5/conf would be an even more valid URL. However, the hyphenation-dir is really meant to be a directory, *not* an URL. The actual data is read from a java.io.File. Running FOP with -d should either give reading ... en_US.xml which means the file was found (but probably is not well-formed XML) or Tried to load ... which means the file was not found. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]