cvs commit: xml-fop/src/org/apache/fop/render/pdf/fonts LazyFont.java
keiron 01/08/13 00:52:21 Modified:src/org/apache/fop/render/pdf PDFRenderer.java src/org/apache/fop/render/pdf/fonts LazyFont.java Log: pdf renderer now adds the fonts at the end of all pages rather than after each page lazy font will set loaded to true after first attempt rather than keep trying if it fails Revision ChangesPath 1.81 +3 -2 xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java Index: PDFRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v retrieving revision 1.80 retrieving revision 1.81 diff -u -r1.80 -r1.81 --- PDFRenderer.java 2001/08/09 13:51:55 1.80 +++ PDFRenderer.java 2001/08/13 07:52:21 1.81 @@ -1,5 +1,5 @@ /* - * $Id: PDFRenderer.java,v 1.80 2001/08/09 13:51:55 keiron Exp $ + * $Id: PDFRenderer.java,v 1.81 2001/08/13 07:52:21 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -153,6 +153,7 @@ public void stopRenderer(OutputStream stream) throws IOException { +FontSetup.addToResources(this.pdfDoc, fontInfo); pdfDoc.outputTrailer(stream); } @@ -684,7 +685,7 @@ this.pdfDoc.setIDReferences(idReferences); this.renderPage(page); -FontSetup.addToResources(this.pdfDoc, fontInfo); +//FontSetup.addToResources(this.pdfDoc, fontInfo); // TODO: this needs to be implemented renderRootExtensions(page); 1.2 +2 -2 xml-fop/src/org/apache/fop/render/pdf/fonts/LazyFont.java Index: LazyFont.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/fonts/LazyFont.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LazyFont.java 2001/08/06 09:43:08 1.1 +++ LazyFont.java 2001/08/13 07:52:21 1.2 @@ -1,5 +1,5 @@ /* - * $Id: LazyFont.java,v 1.1 2001/08/06 09:43:08 keiron Exp $ + * $Id: LazyFont.java,v 1.2 2001/08/13 07:52:21 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -33,6 +33,7 @@ private void load(){ if(! isMetricsLoaded){ +isMetricsLoaded = true; try{ FontReader reader = new FontReader(metricsFileName); reader.useKerning(useKerning); @@ -41,7 +42,6 @@ if(realFont instanceof FontDescriptor){ realFontDescriptor = (FontDescriptor) realFont; } -isMetricsLoaded = true; // System.out.println(Metrics + metricsFileName + loaded.); } catch (Exception ex) { MessageHandler.error(Failed to read font metrics file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
embedded font problem (was: Re: FOP 0.20.0 Release now available)
On Mon, 13 Aug 2001 03:27:37 Arved Sandstrom wrote: Confirmed, on all counts: 1) NPE running your 'dsrb2' example, something to do with the lazy font code it looks like; 2) 500 K file for 17 pages with your 'emp' example. I'm not familiar with fonts, so someone else is going to want to examine this; 3) problems with some letters in 'emp'. We advertise font support prominently on the website; I'm not going to announce FOP-0.20.0 until we have some resolution on this. Okay, this should be fixed now. The problem was due to the fonts being added to the reasources after each page. It is now added at the end, in stopRenderer. This also caused the npe that you were experiencing (I'm not sure how, something to do with setting characters as used) I'm not sure about the problem letters, I couldn't get the font file. Maybe someone else can check if this is still a problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Why some fonts in FontSetup but not others?
Randall, The particular fonts that are added in FontSetup are all the fonts that are always available to Acrobat Reader. These are fonts that come with acrobat. Other fonts may be avilable to acrobat on your machine (because you havew a particular font installed) but that does not ensure that someone else will be able to view the document with that font. So in particular for the PDFGraphics2D you have two options: - use shapes to draw text (makes the file much larger and looks bad in the viewer but prints ok) - embedd the font using FOP embedding font technique, currently this is not implemented for svg text On Sun, 12 Aug 2001 09:33:48 Randall Parker wrote: In org.apache.fop.render.pdf.FontSetup.java a number of fonts are listed by addFontProperties calls. I am wondering how those particular fonts were chosen and why others are not listed there. For instance, why aren't QuickType and Arial listed? There are many others that could be listed as well. It appears that for any font that does not get initialized in FontSetup.java then when one uses that font in a call to PDFDocumentGraphics2D the result is to change it to a default font (which appears to be Helvetica without bold or italics). On my own machine looping thru and dumping out all the fonts available on JDK 1.3 here is what I see: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDFGraphics2D, sanserif, sans-serif, and sansserif
On Sun, 12 Aug 2001 05:11:09 Randall Parker wrote: In the apache.fop.svg.PDFGraphics2D.java there are the following lines: Font gFont = getFont(); String name = gFont.getName(); if (name.equals(sanserif)) { name = sans-serif; } I do not understand their purpose. Meanwhile here is an excerpt of what one gets from dumping out the list of available fonts from Java: java.awt.Font[family=sansserif,name=sansserif,style=plain,size=1] java.awt.Font[family=sansserif.bold,name=sansserif.bold,style=plain,size=1] java.awt.Font[family=sansserif.bolditalic,name=sansserif.bolditalic,style=plain,size=1] java.awt.Font[family=sansserif.italic,name=sansserif.italic,style=plain,size=1] Is there a misspelling problem here? Batik gets a list of all fonts on the machine and creates a number of different mapping combinations with the names. FOP's font setup has only one mapping for that sans-serif. Batik when it gets this type of font defaults to using the string sanserif. It is simply a matter of how the fonts are named and it does not depend on what fonts java can get. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDFGraphics2D seems to be 180 degrees out of phase for rotated text
On Sun, 12 Aug 2001 05:59:19 Randall Parker wrote: I have a class that draws up rotated text as part of a report preparation. If I call into it with a JPanel's visible Graphics2D object the text that is rotated 90 degrees and 270 degrees is displayed on the screen with the rotations that I expect. With the SVGGraphics2D object and in the SVG viewer the text also appears rotated in the expected way. However, I've used PDFDocumentGraphics2D in the same way and when the result is displayed in Acrobat the rotated text shows up rotated 270 when it should be rotated 90 and vice versa. So I suspect there is a problem with the PDFDocumentGraphics2D object. This problem only shows up when the first argument to the PDFDocumentGraphics2D constructor (textAsShapes) is false. Also, the reason I set textAsShapes to false is that when I set textAsShapes to true then all fonts show as very bold even when they are specified to be plain. When text is drawn as shapes it is not bold, the viewer is not very good at drawing the fine curves (complain to adobe), but if you print it out you will see that the text is correct. As for rotating, I've never even tried it. Do you have a simple example. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: embedded font problem (was: Re: FOP 0.20.0 Release now available)
At 09:59 AM 8/13/01 +0200, Keiron Liddle wrote: On Mon, 13 Aug 2001 03:27:37 Arved Sandstrom wrote: Confirmed, on all counts: 1) NPE running your 'dsrb2' example, something to do with the lazy font code it looks like; 2) 500 K file for 17 pages with your 'emp' example. I'm not familiar with fonts, so someone else is going to want to examine this; 3) problems with some letters in 'emp'. We advertise font support prominently on the website; I'm not going to announce FOP-0.20.0 until we have some resolution on this. Okay, this should be fixed now. The problem was due to the fonts being added to the reasources after each page. It is now added at the end, in stopRenderer. This also caused the npe that you were experiencing (I'm not sure how, something to do with setting characters as used) I'm not sure about the problem letters, I couldn't get the font file. Maybe someone else can check if this is still a problem. OK, great. I will create another distro, retire 0.20.0, and put up 0.20.1, this evening. (build.xml will also reflect Chetan Vig's proposed changes). Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: some help in generating from fo to pdf
The website will have the updated information for the changed api. Give it a couple of days and hopefully it will be updated. but basically yopu need: Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); XMLReader parser = inputHandler.getParser(); driver.setOutputStream(new FileOutputStream(outFile)); driver.render(parser, inputHandler.getInputSource()); On Fri, 10 Aug 2001 23:44:48 Maneshi Tuli wrote: hi , I am very new to this area, i want to generate pdf from xml i have generated fo from xml and xsl, but in next step , while generating pdf from fo it is giving problem this is my code File xmlFile = new File(c:\\fop\\eg\\abc.xml); File xslFile = new File(c:\\fop\\eg\\abc.xsl); File outFile = new File(c:\\fop\\eg\\abc.pdf); Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); XMLReader parser = inputHandler.getParser(); driver.buildFOTree(parser, inputHandler); driver.format(); driver.setOutputStream(new FileOutputStream(outFile)); driver.render(); it says buildFOTree method not found , plz anybody can tell me from where i can get api of fo . and what is the worng with this code. ur help will be apperciable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with FOP 0.20.0 when using the ContentHandler to feed SAX events...
Hi, I just upgraded our program to use FOP 0.20.0 We embedded FOP and used the old official method to call it. I mean using somthing like this : Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); ByteArrayOutputStream out = new ByteArrayOutputStream(); driver.setOutputStream(out); ContentHandler cnth = driver.getContentHandler(); sendSAXEvents(cnth); driver.format(); driver.render(); byte[] content = out.toByteArray(); However this not longer works with 0.20.0 for a few reasons: 1°) there is no driver.format() method. 2°) there is no driver.render() method (there are two version with parameters). Still removing those two method calls still does not work as using the ContentHandler returned by driver.getContentHandler generates a NullPointException because the _treeBuilder.setStreamRenderer(streamRenderer) is not called (and the FOTreeBuilder needs it). so I changed a few lines in Driver.java to fix this... I added a method driver.prepareRender() that setups the _treeBuilder I changed both render method to use the new prepareRender so my program now looks like this (and works). Driver driver= new Driver(); driver.setRenderer(Driver.RENDER_PDF); ByteArrayOutputStream out = new ByteArrayOutputStream(); driver.setOutputStream(out); driver.prepareRender(); ContentHandler cnth = driver.getContentHandler(); sendSAXEvents(cnth); byte[] content = out.toByteArray(); What do you think ? Was it a good idea ? anyother idea on how to acheive this ? I though about putting back the render() method (without parameters), but I tough it was weird as it would need to be called before the SAX events are generated. Michel Lehon [EMAIL PROTECTED] SAS Data Warehousing and Web Enablement. Driver.java - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
embedding fonts using xml-font-files and userconf.xml
hi! i've got problems embedding fonts. as described in http://xml.apache.org/fop/fonts.html and other resources i generated the xml font-file with: java -cp fop.jar org.apache.fop.fonts.apps.TTFReader zurchn.ttf zurich.xml i placed resulting zurich.xml along with the original *.ttf-file in the fop-directory and in the conf-directory as well Then i renamed the font-name in the font-name-tag to Zurich in the zurich.xml i configured the userconfig in the conf-directory in the following way: fonts font metrics-file=zurich.xml kerning=yes embed-file=zurich.ttf font-triplet name=Zurich style=normal weight=bold/ /font /fonts then i tried to use it as font-family=Zurich in a fo:block-tag in my fo file. but when i invoked that file with: java -cp fop.jar org.apache.fop.apps.Fop -c userconfig.xml -fo schulung.fo -pdf output.pdf and fop -c userconfig.xml -fo schulung.fo -pdf output.pdf among others the result always was: WARNING: unknown font Zurich,normal,normal so defaulted font to any any ideas what went wrong? regards matze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Namespace not supported by Parser ??
Hi all, I set the feature and I am getting the following error. It seems to throw error at org.xml.sax.XMLReader parser = inputHandler.getParser(); So I am not sure If setting the feature afterwards will be of any use.What must I add in ?Is the setting feature right?? Thanks, Mary Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); org.xml.sax.XMLReader parser = inputHandler.getParser(); parser.setFeature(http://www.w3.org/1999/XSL/Transform,true); parser.setFeature(http://www.w3.org/1999/XSL/Format,true); driver.buildFOTree(parser, inputHandler.getInputSource()); driver.format(); driver.setOutputStream(out); driver.render(); javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa ctoryImpl.java:761) at org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter(TransformerFa ctoryImpl.java:486) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:88) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:100) at velocity.urltest.doGet(urltest.java:36) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
table-footer question
Hello, I downloaded the latest fop from the cvs today and it works really good. But I'm having a problem with the footer of a table which needs to be at the bottom of a table instead of immediately after the body part. Setting the height of a table does not solve this. I don't know if this is supposed to be so (it probably is) but isn't there a way to have 1) a fixed table height 2) a table footer which is always positioned at the bottom of the table. Thanks in advance, Philippe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: embedding fonts using xml-font-files and userconf.xml
On Mon, 13 Aug 2001, Matthias Born wrote: hi! i've got problems embedding fonts. [snip] i configured the userconfig in the conf-directory in the following way: fonts font metrics-file=zurich.xml kerning=yes embed-file=zurich.ttf font-triplet name=Zurich style=normal weight=bold/ /font /fonts [snip] WARNING: unknown font Zurich,normal,normal so defaulted font to any any ideas what went wrong? Yes, you only added Zurich bold to userconfig.xml. If you want to use the normal weight, you have to add that one too (weight=normal). Tore regards matze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: embedding fonts using xml-font-files and userconf.xml
ups! thanks and sorry! it was a mistake in the mail. fonts font metrics-file=zurich.xml kerning=yes embed-file=zurich.ttf font-triplet name=Zurich style=normal weight=bold/ /font /fonts Yes, you only added Zurich bold to userconfig.xml. If you want to use the normal weight, you have to add that one too (weight=normal). i tried differend styles and weights, also i tried normal, normal, again after your mail. unfortunately it was not the solution. the weight=bold was one of my last try outs, therefore it's written in the mail. any over ideas? regards matze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Xalan 2--parser.setContentHandler(_treeBuilder);
Hi all When I looked into driver.class I see parser.setContentHandler(_treeBuilder); But I do not see setContentHandler in Parser.class I wonder if this is the reason why it is kicking up the error. Do I need to include any other libraries.(I have included fop.jar,xalan2.jar xerces123,xalanj1compat.jar,batik.jar, buildtools.jar,jimi1.jar) Insights would be appreciated. Thanks, Mary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: table-footer question
--- Philippe Van Der Gucht [EMAIL PROTECTED] wrote: Hello, 2) a table footer which is always positioned at the bottom of the table. It might not be what you want - but if the table is the only thing in the page then you could put the table footer actually in the footer. Goodluck! Alex McLintock = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ SF and Computing Book News and Reviews: http://news.diversebooks.com/ Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Using extra fonts with embedded FOP ?
hi, having read the existing documentation on adding extra fonts to FOP, the added fonts are - once translated into a format understandable to FOP - specified using a command line configuration file. When using an embedded version of FOP, can I add the fonts to config.xml and rebuild FOP rather than cerating specifying userconfig.xml ? What options are there to make userconfig.xml known to an embedded FOP ? TIA Axel Axel Spohr Accenture GmbH Otto-Volger-Straße 15 D-65843 Sulzbach, Taunus Financial Services Telefon +49 6196 57-67706 Telefax +49 6196 57-50 (Octel, Global VPN: 46/67706) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Why some fonts in FontSetup but not others?
Keiron, If one took the SVG document and parsed it into a DOM tree could one then look at that tree to find out which fonts it used, add an XSL FO set of tags around it that called out which fonts to embed and then convert that into a PDF? BTW, I've posted in a couple of forums elsewhere asking for info about which fonts are available in each version of Acrobat and Acrobat Reader. I'll let you know if I learn anything. On Mon, 13 Aug 2001 10:25:01 +0200, Keiron Liddle wrote: So in particular for the PDFGraphics2D you have two options: - use shapes to draw text (makes the file much larger and looks bad in the viewer but prints ok) - embedd the font using FOP embedding font technique, currently this is not implemented for svg text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[DO NOT REPLY: Bug 3109] New: -
BuildException when trying to run examples. PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3109 *** shadow/3109 Mon Aug 13 11:39:23 2001 --- shadow/3109.tmp.188 Mon Aug 13 11:39:23 2001 *** *** 0 --- 1,60 + ++ + | BuildException when trying to run examples.| + ++ + |Bug #: 3109Product: Fop | + | Status: NEW Version: all | + | Resolution:Platform: PC | + | Severity: Normal OS/Version: Other | + | Priority: Other Component: pdf renderer| + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + I just downloaded the newest version of the Fop bin. When I try to run the + examples using the runtests.bat I get : + + C:\fop20\docs\examplesruntests + Fop Test + + Starting Tests ... + Buildfile: build.xml + + init: + + creating new test pdf files: + + BUILD FAILED + + java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException + at java.lang.Class.getMethods0(Native Method) + at java.lang.Class.getMethods(Class.java:742) + at org.apache.tools.ant.IntrospectionHelper.init + (IntrospectionHelper.java:115) + at org.apache.tools.ant.IntrospectionHelper.getHelper + (IntrospectionHelper.java:208 + ) + at org.apache.tools.ant.UnknownElement.handleChildren + (UnknownElement.java:139) + at org.apache.tools.ant.UnknownElement.maybeConfigure + (UnknownElement.java:108) + at org.apache.tools.ant.Target.execute(Target.java:152) + at org.apache.tools.ant.Project.runTarget(Project.java:898) + at org.apache.tools.ant.Project.executeTarget(Project.java:536) + at org.apache.tools.ant.Project.executeTargets(Project.java:510) + at org.apache.tools.ant.Main.runBuild(Main.java:421) + at org.apache.tools.ant.Main.main(Main.java:149) + + Total time: 0 seconds + org/apache/tools/ant/BuildException + + I noticed that the ant.jar doesn't appear to be included in the latest release. + I already had it installed and just copied the .jar to the lib directory where + the .bat file was looking for it, but I still get the same error. + + Any suggestions? + + Bryan \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
svg probs with 0.19.0
I'm not sure why this is happening. Maybe somebody can help me? My svg gets improperly generated through FOP 0.19.0 (I have not tried others). The viewBox seems to be ignored and fill-rule:evenodd does not work. Is this a Batik thing? When I run the rasterizer in Batik 1.0 it seems to understand what I'm asking for. The Adobe SVG viewer thinks my svg is OK too. -Steve Maring ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=mymaster page-height=11in page-width=8.5in fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-name=mymaster fo:flow flow-name=xsl-region-body fo:block fo:external-graphic src=file:logo.svg/ /fo:block /fo:flow /fo:page-sequence /fo:root [file: logo.svg] ?xml version=1.0 standalone=no? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 2802//EN http://www.w3.org/TR/2000/CR-SVG-2802/DTD/svg-2802.dtd; svg width=1.2917in height=.375in viewBox=0 0 310 90 preserveAspectRatio=xMinYMin meet xml:space=preserve descZettamedia Logo/desc g !-- define the big Z in the logo -- polygon style=fill:black points=18,051,033,18 0,18/ polygon style=fill:black points=54,084,066,18 36,18/ polygon style=fill:black points=90,0117,0 27,90 0,90/ polygon style=fill:black points=54,72 78,72 60,90 36,90/ polygon style=fill:black points=90,72 111,72 93,90 72,90/ polygon style=fill:black points=126,72 144,72 126,90 108,90/ polygon style=fill:black points=162,72 177,72 159,90 144,90/ polygon style=fill:black points=198,72 210,72 192,90 180,90/ polygon style=fill:black points=234,72 243,72 225,90 216,90/ polygon style=fill:black points=270,72 276,72 258,90 252,90/ polygon style=fill:black points=306,72 309,72 291,90 288,90/ !-- * e *** -- path style=fill:black d=M 102,51 L 108,51 A 12,15 0 0,0 84,51 A 12,15 0 0,0 107.75,54 L 101.65,54 A 6,9 0 0,1 90,51 A 6,9 0 0,1 102,51/ polygon style=fill:black points=90,45 102,45 102,51 90,51/ !-- * t *** -- polygon style=fill:black points=114,36 117,36 117,33 123,27 123,36 132,36 126,42 123,42 123,66 117,66 117,42 108,42/ !-- * t *** -- polygon style=fill:black points=135,36 138,36 138,33 144,27 144,36 153,36 147,42 144,42 144,66 138,66 138,42 129,42/ !-- * a *** -- path style=fill-rule:evenodd; fill:black d=M 168,51 A 6,9 0 0,1 156,51 A 6,9 0 0,1 168,51 z M 174,51 A 12,15 0 0,1 150,51 A 12,15 0 0,1 174,51 z/ polygon style=fill:black points=168,36 174,30 174,66 168,66/ !-- * m *** -- !-- first leg -- polygon style=fill:black points=183,51 183,66 177,66 177,42 183,36 183,39 181.5,40.5 181.5,39.62 178.5,42.62 178.5,64.5 181.5,64.5 181.5,51/ !-- second leg -- polygon style=fill:black points=201,51 201,66 195,66 195,51 196.5,51 196.5,64.5 199.5,64.5 199.5,51/ !-- third leg -- polygon style=fill:black points=219,51 219,66 213,66 213,51 214.5,51 214.5,64.5 217.5,64.5 217.5,51/ !-- first hump top -- path style=fill:black d=M 181.5,41.5 A 10.5,13.5 0 0,1 198,44.3 L 198,41.2 A 12,15 0 0,0 181.5,39.2/ !-- first hump bottom -- path style=fill:black d=M 183,51 A 6,9 0 0,1 195,51 L 196.5,51 A 7.5,10.5 0 0,0 181.5,51/ !-- second hump top -- path style=fill:black d=M 198,41.2 A 12,15 0 0,1 219,51 L 217.5,51 A 10.5,13.5 0 0,0 198,44.3/ !-- second hump bottom -- path style=fill:black d=M 201,51 A 6,9 0 0,1 213,51 L 214.5,51 A 7.5,10.5 0 0,0 199.5,51/ !-- *** e -- path
Re: AW: embedding fonts using xml-font-files and userconf.xml
Hehe, it would've been to easy if it was only a typo :) It really don't have any other suggestions except using absolute urls/paths in userconfig.xml, like: font metrics-file=file:///C:/fop/zurich.xml kerning=yes embed-file=C:\WINNT\Fonts\zurich.ttf font-triplet name=Zurich style=normal weight=normal/ /font Tore On Mon, 13 Aug 2001, Matthias Born wrote: ups! thanks and sorry! it was a mistake in the mail. fonts font metrics-file=zurich.xml kerning=yes embed-file=zurich.ttf font-triplet name=Zurich style=normal weight=bold/ /font /fonts Yes, you only added Zurich bold to userconfig.xml. If you want to use the normal weight, you have to add that one too (weight=normal). i tried differend styles and weights, also i tried normal, normal, again after your mail. unfortunately it was not the solution. the weight=bold was one of my last try outs, therefore it's written in the mail. any over ideas? regards matze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop build.xml
arved 01/08/13 17:16:20 Modified:.build.xml Log: AHS: build improvements; version change Revision ChangesPath 1.39 +3 -5 xml-fop/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/build.xml,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- build.xml 2001/08/12 17:37:25 1.38 +++ build.xml 2001/08/14 00:16:20 1.39 @@ -164,7 +164,7 @@ tstamp/ property name=Name value=Fop/ property name=name value=fop/ -property name=version value=0.20.0/ +property name=version value=0.20.1/ filter token=version value=${version}/ property name=year value=1999-2001/ @@ -669,7 +669,6 @@ zip zipfile=${Name}-${version}-src.zip basedir=${dist.src.dir} includes=**/ tar tarfile=${Name}-${version}-src.tar basedir=${dist.src.dir} includes=**/ gzip zipfile=${Name}-${version}-src.tar.gz src=${Name}-${version}-src.tar / -delete file=${Name}-${version}-src.tar/ /target @@ -684,9 +683,8 @@ delete dir=${dist.src.dir}/ delete dir=${dist.bin.dir}/ delete - fileset dir=${basedir} includes=${Name}-${version}*.tar.gz/ - fileset dir=${basedir} includes=${Name}-${version}*.tar/ - fileset dir=${basedir} includes=${Name}-${version}*.zip/ + fileset dir=${basedir} includes=${Name}-*.tar.gz/ + fileset dir=${basedir} includes=${Name}-*.zip/ /delete /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/lib buildtools.jar
arved 01/08/13 17:17:16 Modified:lib buildtools.jar Log: AHS: updated buildtools Revision ChangesPath 1.9 +189 -204 xml-fop/lib/buildtools.jar Binary file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Patch] ./build.sh distclean should delete *.tar.gz and *..zip files from all versions
Just a quick comment - I think quite a few ppl would use a 2 stage untar/unzip process, in which case the delete *.tar is necessary. It doesn't do any harm, either. JT -Original Message- From: Weiqi Gao [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 7:00 AM To: [EMAIL PROTECTED] Subject: [Patch] ./build.sh distclean should delete *.tar.gz and *..zip files from all versions Hi, The attached patch will allow ./build.sh distclean to delete not only the *.tar.gz and *.zip files of the current version, but also the *.tar.gz and *.zip files from earlier versions. Also the delete command for *.tar is not needed. -- Weiqi Gao [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop build.xml
arved 01/08/13 17:52:43 Modified:.build.xml Log: AHS: need to specifically delete tarfiles after all Revision ChangesPath 1.40 +1 -0 xml-fop/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/build.xml,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- build.xml 2001/08/14 00:16:20 1.39 +++ build.xml 2001/08/14 00:52:42 1.40 @@ -669,6 +669,7 @@ zip zipfile=${Name}-${version}-src.zip basedir=${dist.src.dir} includes=**/ tar tarfile=${Name}-${version}-src.tar basedir=${dist.src.dir} includes=**/ gzip zipfile=${Name}-${version}-src.tar.gz src=${Name}-${version}-src.tar / +delete file=${Name}-${version}-src.tar/ /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release Process Improvements, Versioning etc
On 13 Aug 2001 22:08:50 +, Arved Sandstrom wrote: I invite everyone to submit ideas as to how we can improve the release process: versioning, builds and testing. It seems like almost everytime a 0.X.0 release comes out, there is almost instantaneously a showstopper bug that necessitates a 0.X.1 release, as happened this time. If making a release reveals bugs, then there should be more releases. Release early, release often is one of the tenets of Open Source. I don't want to dictate how things would work - we have a lot of good developers here who do configuration management, source control and testing in real life just as I do - but here are a few obvious ideas. 1) Believe it or not I can actually guarantee to do builds on a given date, now that I have a system for doing the CHANGES file rather rapidly. So once we have decided on a given date for a release, I suggest that we mandate a code freeze starting N days before the release. At the start of the freeze I build a pre-release distro, and it will be labelled as a pre-release (PR suffix maybe?) During those N days (2 days, 3 days?) everyone will have an opportunity to test the release, and find those bad bugs that somehow never showed up before. That sounds like a very good idea. And I have seen other Apache projects doing it. (Except that they are not calling it PR. This is another instance where Apache management should probably dictate all sub projects to use a uniform name for the pre-releases.) 2) More comprehensive build tests. I am not so much concerned with how the PDF looks as just making sure we get no exceptions. Petr Andrs' font embedding examples, if used as build tests, would have caught a bad bug, for example. This testing is complementary to the testing Keiron Liddle has laid the groundwork for, which is oriented towards conformance testing. I have not used the testing framework. I tried ./build.sh test once and it threw me some error message. It would be benefitial if the testing frame work can be made to work in a way similar to the make; make check sequence for GNU projects. That way more people would run the test. Make it a rule that absolutely nothing will be committed without clearing all the tests. If feasible, solicit donations to the test case .fo files directory from other applications, authors of XML books, the W3C recommendation authors, and FOP users in general. The idea is to build a formidable set of real world examples of .fo files, and .xml/.xslt files so as to 1) test FOP, and 2) show case FOP's capabilities. Wouldn't it be nice if after building and testing FOP from a source download, the user gets a subset of the W3C XSL 1.0 Recommendation (or a section of the DocBook Definitive Guide, or Chapter 17 of the XML Bible) in PDF format ready to be viewed, searched, and printed. 3) Versioning and build numbers: I hate putting up FOP-0.20.0, and 24 hours later putting up FOP-0.20.1, just for a bug fix. Granted, it was an important defect, and needed to be addressed right away, but I don't think it rates that kind of revision increment. I don't have any good suggestions (I know how I do things at work, but that's different). Any thoughts? 0.20.1 is fine. I don't have any issues with it. If another bug was found and fixed tomorrow, I would be glad to use a 0.20.2. As it is right now, I don't think that we are making a full use of the third number anyway. I am sure there is other stuff also. My goal here is to develop a formal process document that describes exactly what I do, so that anyone with commit privileges can easily duplicate the complete release process. A pre-release communication with other Open Source projects, like Cocoon2, about API changes and other changes that may potentially impact them is also critical. -- Weiqi Gao [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
makedoc.bat errors
Just download the latest 0.20.1. Found a few problems when I try to run makedoc.bat in the docs\xml-docs directory: 1) ant.jar is not included in the lib directory 2) the bat is still refering to another version of xalan for CLASSPATH, change it to xalan-2.0.0 that comes with download 3) The final error I don't know how to fix: C:\Fop-0.20.1\docs\xml-docs\build.xml:57: org.apache.fop.apps.FOPException: basi c-link can't be directly under flow org.apache.fop.apps.FOPException: basic-link can't be directly under flow at org.apache.fop.fo.flow.BasicLink.init(BasicLink.java:41) at org.apache.fop.fo.flow.BasicLink$Maker.make(BasicLink.java:26) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:212) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML Validator.java:840) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen tScanner.java:1853) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp atch(XMLDocumentScanner.java:1234) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at org.apache.fop.apps.Driver.render(Driver.java:424) at org.apache.fop.apps.Driver.run(Driver.java:508) at org.apache.fop.tools.anttasks.FOPTaskStarter.run(Fop.java:185) at org.apache.fop.tools.anttasks.Fop.execute(Fop.java:135) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:122) at org.apache.tools.ant.Target.execute(Target.java:142) at org.apache.tools.ant.Project.runTarget(Project.java:818) at org.apache.tools.ant.Project.executeTarget(Project.java:532) at org.apache.tools.ant.Project.executeTargets(Project.java:506) at org.apache.tools.ant.Main.runBuild(Main.java:420) at org.apache.tools.ant.Main.main(Main.java:149) Any advice? TIA! __ For the latest news, go to http://www.asiaone.com And get your free AsiaOne email account and home page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerException: Unknown error in XPath
Scott, It would appear to be something to do with importing another stylesheet. in propmaker the problem is (at-this line) from these parts: xsl:import href=elements.xsl/ xsl:attribute name=family this line ---xsl:call-template name=capallxsl:with-param name=str select=$prefixVal//xsl:call-template /xsl:attribute - in elements.xsl is this: xsl:variable name=prefixVal xsl:value-of select=//elements/@prefix/ /xsl:variable and xsl:template name=capall xsl:param name=str/ xsl:variable name=lcletters select='abcdefghijklmnopqrstuvwxyz' / xsl:variable name=ucletters select='ABCDEFGHIJKLMNOPQRSTUVWXYZ' / xsl:value-of select=translate($str, $lcletters, $ucletters)/ /xsl:template So has something changed with importing variables and templates? On Fri, 10 Aug 2001 18:23:14 [EMAIL PROTECTED] wrote: I don't think so, though I could be wrong. Can someone send me propmaker.xsl, since I'm too lazy to go digging for it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]