DO NOT REPLY [Bug 9113] - Strange indentation on hyphenation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9113. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9113 Strange indentation on hyphenation [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2003-01-03 09:04 --- Yep: Fixed with 0.20.5RC. But see my attachment which indents incorrectly with 0.20.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP Style Guide (update)
Hello all I've just restyled our style guide draft for the ApacheWiki and would like to finalize this within the next two weeks. I will then clean up the page and call for a vote. Given we reach consensus I will then convert the Wiki page to XML and put it on our website. (Joerg, I'm still missing your comments.) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Working on fonts
Victor (and others), are you currently working in the font department? I'm asking because I started again with code cleanup and am currently working in the font changes I did a while ago in the branch. I just don't want to ruin anybody's work too much. :-) thx. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FW: Using FOP / trying to embed FOP
Trying to embed FOP within Java. I added code that the documentation stated was necessary in order to embed FOP. I compiled the code. I get errors when instantiating the FOP Driver class. I apologize for this be lengthy. ---Executing my java code: My goal is to take one of the sample .fo files (simple.fo) and generate a pdf file. ** Error: ** C:\fop-0.20.5rcjava embed simple.fo testembed.pdf argument1: simple.fo argument2: testembed.pdf Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/fo/PropertyList at org.apache.fop.apps.Driver.init(Driver.java:178) at org.apache.fop.apps.Driver.init(Driver.java:186) at embed.main(embed.java:60) C:\fop-0.20.5rc - - I can see a PropertyList.java file but no class file. Compiling PropertyList.java gives the following error -- -- C:\org\apache\fop\fojavac PropertyList.java PropertyList.java:11: Class org.apache.fop.fo.properties.WritingMode not found in import. import org.apache.fop.fo.properties.WritingMode; ^ 1 error C:\org\apache\fop\fo -- -- There is only one file (package.html) in the org.apache.fop.fo.properties. This file states the following: Classes representing XSL-FO properties (See §7 of the XSL 1.0 Standard). * Questions Problem locating these files...Where do I get them? Are there any steps that I need to do in order to get this to work? What is the purpose for building FOP? Is there anything wrong with my code located below? * My Java code: ** * I had to add a lot of import statements to get the code to compile. import java.util.*; import java.text.*; import org.apache.fop.apps.Driver; import org.xml.sax.InputSource; import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.Logger; // FOP import org.apache.fop.fo.*; import org.apache.fop.configuration.Configuration; import org.apache.fop.configuration.ConfigurationReader; import org.apache.fop.fo.ElementMapping; import org.apache.fop.fo.FOTreeBuilder; import org.apache.fop.render.Renderer; //import org.apache.fop.render.pdf.PDFRenderer; import org.apache.fop.tools.DocumentInputSource; import org.apache.fop.tools.DocumentReader; import org.apache.fop.messaging.MessageHandler; // Avalon import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.Logger; // DOM import org.w3c.dom.Document; // SAX import org.xml.sax.ContentHandler; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; // Java import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Enumeration; import java.util.HashMap; import java.util.Vector; //import java.io.OutputStream; import java.io.*; //import org.apache.avalon.ramwork.logger.Logger; public class embed { public static void main(String[] args) { try{ System.out.println(argument1: + args[0]); System.out.println(argument2: + args[1]); Driver driver = new Driver (new InputSource (args[0]), new FileOutputStream(args[1])); driver.setRenderer(Driver.RENDER_PDF); driver.run(); Logger logger = new ConsoleLogger (ConsoleLogger.LEVEL_INFO); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); //userConfigFile = new File(userConfig); //options = new Options(userConfigFile); }catch(Exception e) { } //System.out.println(); //System.out.println(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Using FOP / trying to embed FOP
Hi Kevin This is probably a classpath problem (NoClassDefFoundError). You've got to make sure that fop.jar (as well as batik and friends) are on your classpath. Example: java -cp fop.jar;batik.jar;other-jars... embed simple.fo testembed.pdf Look at fop.bat as another example. Don't try to compile FOP from the command line using javac. Use the Ant build script instead and then use the generated fop.jar in your application. Another comment further down... Please be so kind as to ask this sort of question on the fop-user mailing list next time. Thanks and good luck! On 03.01.2003 15:05:00 Kevin.Wood wrote: Trying to embed FOP within Java. I added code that the documentation stated was necessary in order to embed FOP. I compiled the code. I get errors when instantiating the FOP Driver class. I apologize for this be lengthy. ---Executing my java code: My goal is to take one of the sample .fo files (simple.fo) and generate a pdf file. ** Error: ** C:\fop-0.20.5rcjava embed simple.fo testembed.pdf argument1: simple.fo argument2: testembed.pdf Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/fo/PropertyList at org.apache.fop.apps.Driver.init(Driver.java:178) at org.apache.fop.apps.Driver.init(Driver.java:186) at embed.main(embed.java:60) C:\fop-0.20.5rc - - I can see a PropertyList.java file but no class file. Compiling PropertyList.java gives the following error -- -- C:\org\apache\fop\fojavac PropertyList.java PropertyList.java:11: Class org.apache.fop.fo.properties.WritingMode not found in import. import org.apache.fop.fo.properties.WritingMode; ^ 1 error C:\org\apache\fop\fo -- -- There is only one file (package.html) in the org.apache.fop.fo.properties. This file states the following: Classes representing XSL-FO properties (See §7 of the XSL 1.0 Standard). * Questions Problem locating these files...Where do I get them? Are there any steps that I need to do in order to get this to work? What is the purpose for building FOP? Is there anything wrong with my code located below? * My Java code: ** * I had to add a lot of import statements to get the code to compile. import java.util.*; import java.text.*; import org.apache.fop.apps.Driver; import org.xml.sax.InputSource; import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.Logger; // FOP import org.apache.fop.fo.*; import org.apache.fop.configuration.Configuration; import org.apache.fop.configuration.ConfigurationReader; import org.apache.fop.fo.ElementMapping; import org.apache.fop.fo.FOTreeBuilder; import org.apache.fop.render.Renderer; //import org.apache.fop.render.pdf.PDFRenderer; import org.apache.fop.tools.DocumentInputSource; import org.apache.fop.tools.DocumentReader; import org.apache.fop.messaging.MessageHandler; // Avalon import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.Logger; // DOM import org.w3c.dom.Document; // SAX import org.xml.sax.ContentHandler; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; // Java import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Enumeration; import java.util.HashMap; import java.util.Vector; //import java.io.OutputStream; import java.io.*; //import org.apache.avalon.ramwork.logger.Logger; public class embed { public static void main(String[] args) { try{ System.out.println(argument1: + args[0]); System.out.println(argument2: + args[1]); Driver driver = new Driver (new InputSource (args[0]), new FileOutputStream(args[1])); driver.setRenderer(Driver.RENDER_PDF); driver.run(); Once you're here
RE: Working on fonts
Jeremias Maerki wrote: are you currently working in the font department? I'm asking because I started again with code cleanup and am currently working in the font changes I did a while ago in the branch. I just don't want to ruin anybody's work too much. :-) thx. Jeremias: Thanks for checking. I am /trying/ to work on fonts, but have myself pretty well bogged down trying to get the web site generated. I haven't had time to work on any of it the last 2 weeks, and I don't have a good feel for how long it will take me to get the web site issues resolved, but I am determined to finish that before getting back to anything else. I have some branch font work that I wanted to put into the trunk, but it was minor needs to be rethought anyway in light of multiple threads. If you are ready to go, please do so. I'll let you know when I am ready to go again on that line. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Table Question
I noticed that the recent 0.20.5rc began generating an error when you deliver a table-cell that is not first in a table-row. The error is found in TableCell.java of package org.apache.fop.fo.flow, line 101: if (!(parent instanceof TableRow)) { throw new FOPException(A table cell must be child of fo:table-row... According to the recommendation a cell can exist as a child of a table-body as well as a table-row (see page 133 of 15 October 2001 XSL Recommendation). In addition, the property starts-row (see 7.26.15) implies that you can spit out cells in a kind of implicit row, and then declare that a new row should begin. I don't want to turn this into a user question, but I actually came up against this issue. From an XSLT, I want to ouput up to 12 small calendars. Given a list of calendar months, If I can use starts-row, I can simply use the mod operator to break to a new row once I exceed a maximum position(). Otherwise I have to get fancier with the XSLT. I also noticed that the recent snapshot, 20030103052138, does not have this condition and related error. However, starts-row remains unused. I'm a relative newbie to Java, but I am willing to hunt for a solution to this problem (what I view as a problem). Problem is, I'm a newbie to working on Open Source code too. I already have a commercial interest in your product, and that interest will likely intensify in the near future. Your thoughts will be appreciated. -Jarrod Stenberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Table Question
On Friday 03 January 2003 22:19, Jarrod Stenberg wrote: According to the recommendation a cell can exist as a child of a table-body as well as a table-row Yes, but only the latter is implemented and works. The error message should prevent bad surprises. I also noticed that the recent snapshot, 20030103052138, does not have this condition and related error. However, starts-row remains unused. The 0.20.5rc version comes from another branch than this snapshot. I'm a relative newbie to Java, but I am willing to hunt for a solution to this problem (what I view as a problem). Good luck! Problem is, I'm a newbie to working on Open Source code too. In what sense is this a problem? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Footnote Problem
Hi all, is the footnote are supposed to span the whole page width even if the body region has columns? If so, adding a footnote would cause reshuffling of content of already filled columns, which in turn might push the FO causing the footnote onto the next page (another candidate for the anomalous layout wiki?). Apart from this, is this case similar enough to rebalancing in case a fo:block span=all is encountered? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Footnote Problem
-Original Message- From: Joerg Pietschmann [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 5:53 PM To: [EMAIL PROTECTED] Subject: Footnote Problem Hi all, is the footnote are supposed to span the whole page width even if the body region has columns? If so, adding a footnote would cause reshuffling of content of already filled columns, which in turn might push the FO causing the footnote onto the next page (another candidate for the anomalous layout wiki?). Apart from this, is this case similar enough to rebalancing in case a fo:block span=all is encountered? Yes. There is no provision for columns in the footnote region. Arved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]