space-before in 1.0Dev

2003-11-07 Thread Chris Bowditch
Hi Glen and other devs,

I'm responding to an earlier message where you said:

quote
Another issue I was working on last weekend--still
unsolved--was that in 1.0 layout, fo:block
space-before is being added to the top of *each* page
that the block consumes (instead of just once at the
top of the block).  This may take some time to
fix--I'll keep working on it.
/quote
how far did you get with this? I had a spare few minutes and had a look as 
well. I may be well off base with this as I'm new to the code:

The BlockLayoutManager.addAreas seems to be responsible for adding space 
before/after. Currently there is no check to see whether or not this is the 
first/last call to addAreas. Is the LayoutContext object supposed to be the 
mechanism for checking such state? Currently LayoutContexts in the parent 
FlowLayoutManager are created with flags=0. Do you think it should be 
setting FIRST, LAST, etc?

Any insight would be appreciated,

Chris

_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess



RE: Replacing me on the PMC

2003-11-07 Thread Victor Mote
Peter B. West wrote:

 I have been very quiet lately, although I have been monitoring the list.
   Initially that was because of the work I was doing, but that has now
 ceased, and I hope to be able to get back to work on alt.design soon.

We're looking forward to having you back. When you are ready to get active
again, I would be glad to find out whether any of the changes completed and
in progress solve some of your alt.design concerns.

 However, I am still pre-occupied with some other issues, and I think the
 initial mooted period of membership of the PMC (six months) has probably
 expired anyway.

 I think, therefore, that we should look at a replacement for me, at
 least, on the PMC, and present my resignation and my replacement at the
 same time.

 I nominate Joerg as my replacement, should he desire the position.

+1.

Victor Mote



cvs commit: xml-fop/examples/mathml/src/org/apache/fop/mathml MathMLObj.java MathMLElement.java MathMLElementMapping.java

2003-11-07 Thread jeremias
jeremias2003/11/07 13:22:26

  Modified:examples/mathml/src/org/apache/fop/mathml MathMLObj.java
MathMLElement.java MathMLElementMapping.java
  Log:
  Cleanup and make it compile again
  
  Revision  ChangesPath
  1.3   +3 -3  xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java
  
  Index: MathMLObj.java
  ===
  RCS file: 
/home/cvs/xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MathMLObj.java7 Mar 2003 10:47:42 -   1.2
  +++ MathMLObj.java7 Nov 2003 21:22:26 -   1.3
  @@ -55,7 +55,7 @@
   import org.apache.fop.fo.XMLObj;
   
   /**
  - * Catch all MathML object as default element.
  + * Catch all MathML objects as default element.
*/
   public class MathMLObj extends XMLObj {
   
  @@ -70,7 +70,7 @@
* @see org.apache.fop.fo.XMLObj#getNameSpace()
*/
   public String getNameSpace() {
  -return MathMLElementMapping.URI;
  +return MathMLElementMapping.NAMESPACE;
   }
   }
   
  
  
  
  1.3   +3 -3  
xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
  
  Index: MathMLElement.java
  ===
  RCS file: 
/home/cvs/xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MathMLElement.java7 Mar 2003 10:47:42 -   1.2
  +++ MathMLElement.java7 Nov 2003 21:22:26 -   1.3
  @@ -123,7 +123,7 @@
   doc = svgDoc;
   }
   } catch (Throwable t) {
  -userAgent.getLogger().error(Could not convert MathML to SVG, t);
  +getLogger().error(Could not convert MathML to SVG, t);
   width = 0;
   height = 0;
   }
  @@ -181,7 +181,7 @@
*/
   public String getDocumentNamespace() {
   if (svgDoc == null) {
  -return MathMLElementMapping.URI;
  +return MathMLElementMapping.NAMESPACE;
   }
   return http://www.w3.org/2000/svg;;
   }
  
  
  
  1.4   +6 -3  
xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java
  
  Index: MathMLElementMapping.java
  ===
  RCS file: 
/home/cvs/xml-fop/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MathMLElementMapping.java 12 Jul 2003 21:22:03 -  1.3
  +++ MathMLElementMapping.java 7 Nov 2003 21:22:26 -   1.4
  @@ -66,8 +66,11 @@
*/
   public class MathMLElementMapping extends ElementMapping {
   
  +/** MathML Namespace */
  +public static final String NAMESPACE = http://www.w3.org/1998/Math/MathML;; 
  +
   public MathMLElementMapping() {
  -URI = http://www.w3.org/1998/Math/MathML;;
  +this.namespaceURI = NAMESPACE;
   }
   
   protected void initialize() {
  @@ -76,7 +79,7 @@
   foObjs.put(math, new ME());
   foObjs.put(DEFAULT, new MathMLMaker());
   
  -XMLReader.setConverter(URI, new MathMLConverter());
  +XMLReader.setConverter(this.namespaceURI, new MathMLConverter());
   }
   }
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop/examples/plan/src/org/apache/fop/plan PlanElementMapping.java PlanElement.java

2003-11-07 Thread jeremias
jeremias2003/11/07 13:23:58

  Modified:examples/plan/src/org/apache/fop/plan
PlanElementMapping.java PlanElement.java
  Log:
  Put namespace URI in public constant
  
  Revision  ChangesPath
  1.4   +6 -3  
xml-fop/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java
  
  Index: PlanElementMapping.java
  ===
  RCS file: 
/home/cvs/xml-fop/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PlanElementMapping.java   12 Jul 2003 21:22:03 -  1.3
  +++ PlanElementMapping.java   7 Nov 2003 21:23:58 -   1.4
  @@ -63,8 +63,11 @@
*/
   public class PlanElementMapping extends ElementMapping {
   
  +/** Plan Namespace */
  +public static final String NAMESPACE = http://xml.apache.org/fop/plan;; 
  +
   public PlanElementMapping() {
  -URI = http://xml.apache.org/fop/plan;;
  +this.namespaceURI = NAMESPACE;
   }
   
   protected void initialize() {
  @@ -73,7 +76,7 @@
   foObjs.put(plan, new PE());
   foObjs.put(DEFAULT, new PlanMaker());
   
  -XMLReader.setConverter(URI, new PlanConverter());
  +XMLReader.setConverter(this.namespaceURI, new PlanConverter());
   }
   }
   
  
  
  
  1.3   +2 -2  xml-fop/examples/plan/src/org/apache/fop/plan/PlanElement.java
  
  Index: PlanElement.java
  ===
  RCS file: /home/cvs/xml-fop/examples/plan/src/org/apache/fop/plan/PlanElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PlanElement.java  7 Mar 2003 10:47:51 -   1.2
  +++ PlanElement.java  7 Nov 2003 21:23:58 -   1.3
  @@ -119,7 +119,7 @@
*/
   public String getDocumentNamespace() {
   if (svgDoc == null) {
  -return PlanElementMapping.URI;
  +return PlanElementMapping.NAMESPACE;
   }
   return http://www.w3.org/2000/svg;;
   }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop/src/java/org/apache/fop/apps Driver.java

2003-11-07 Thread jeremias
jeremias2003/11/07 13:49:02

  Modified:src/java/org/apache/fop/apps Driver.java
  Log:
  Tried to fix basic driver tests but didn't manage, yet.
  Some initialisation code moved from render() to getContentHandler().
  
  Revision  ChangesPath
  1.45  +15 -17xml-fop/src/java/org/apache/fop/apps/Driver.java
  
  Index: Driver.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/apps/Driver.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- Driver.java   4 Nov 2003 23:59:11 -   1.44
  +++ Driver.java   7 Nov 2003 21:49:02 -   1.45
  @@ -540,8 +540,23 @@
   
   foInputHandler.enableLogging(getLogger());
   
  +/** Document creation is hard-wired for now, but needs to be made
  + accessible through the API and/or configuration */
  +if (currentDocument == null) {
  +currentDocument = new Document(this);
  +}
  +currentDocument.foInputHandler = foInputHandler;
  +/** LayoutStrategy is hard-wired for now, but needs to be made
  +accessible through the API and/or configuration */
  +if (foInputHandler instanceof FOTreeHandler) {
  +if (currentDocument.getLayoutStrategy() == null) {
  +currentDocument.setLayoutStrategy(new 
LayoutManagerLS(currentDocument));
  +}
  +}
  +
   treeBuilder.setUserAgent(getUserAgent());
   treeBuilder.setFOInputHandler(foInputHandler);
  +treeBuilder.foTreeControl = currentDocument;
   
   return treeBuilder;
   }
  @@ -568,24 +583,7 @@
*/
   public synchronized void render(XMLReader parser, InputSource source)
   throws FOPException {
  -if (!isInitialized()) {
  -initialize();
  -}
  -/** Document creation is hard-wired for now, but needs to be made
  - accessible through the API and/or configuration */
  -if (currentDocument == null) {
  -currentDocument = new Document(this);
  -}
   parser.setContentHandler(getContentHandler());
  -currentDocument.foInputHandler = foInputHandler;
  -/** LayoutStrategy is hard-wired for now, but needs to be made
  -accessible through the API and/or configuration */
  -if (foInputHandler instanceof FOTreeHandler) {
  -if (currentDocument.getLayoutStrategy() == null) {
  -currentDocument.setLayoutStrategy(new 
LayoutManagerLS(currentDocument));
  -}
  -}
  -treeBuilder.foTreeControl = currentDocument;
   try {
   if (foInputHandler instanceof FOTreeHandler) {
   FOTreeHandler foTreeHandler = (FOTreeHandler)foInputHandler;
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop/src/java/org/apache/fop/svg ACIUtils.java

2003-11-07 Thread jeremias
jeremias2003/11/07 13:53:43

  Added:   src/java/org/apache/fop/svg ACIUtils.java
  Log:
  Helper class for debugging in TextPainters
  
  Revision  ChangesPath
  1.1  xml-fop/src/java/org/apache/fop/svg/ACIUtils.java
  
  Index: ACIUtils.java
  ===
  /*
   * $Id: ACIUtils.java,v 1.1 2003/11/07 21:53:43 jeremias Exp $
   * 
   *The Apache Software License, Version 1.1
   * 
   *
   * Copyright (C) 2003 The Apache Software Foundation. All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *
   * 1. Redistributions of source code must retain the above copyright notice,
   *this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *this list of conditions and the following disclaimer in the documentation
   *and/or other materials provided with the distribution.
   *
   * 3. The end-user documentation included with the redistribution, if any, must
   *include the following acknowledgment: This product includes software
   *developed by the Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgment may appear in the software itself, if
   *and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names FOP and Apache Software Foundation must not be used to
   *endorse or promote products derived from this software without prior
   *written permission. For written permission, please contact
   *[EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache, nor may
   *Apache appear in their name, without prior written permission of the
   *Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation and was originally created by
   * James Tauber [EMAIL PROTECTED]. For more information on the Apache
   * Software Foundation, please see http://www.apache.org/.
   */
  package org.apache.fop.svg;
  
  import java.text.AttributedCharacterIterator;
  import java.text.CharacterIterator;
  import java.util.Iterator;
  import java.util.Map;
  
  /**
   * Utilities for java.text.AttributedCharacterIterator.
   */
  public final class ACIUtils {
  
  private ACIUtils() {
  //This class shouldn't be instantiated.
  }
  
  /**
   * Dumps the contents of an ACI to System.out. Used for debugging only.
   * @param aci the ACI to dump
   */
  public static void dumpAttrs(AttributedCharacterIterator aci) {
  aci.first();
  Iterator i = aci.getAttributes().entrySet().iterator();
  while (i.hasNext()) {
  Map.Entry entry = (Map.Entry)i.next();
  if (entry.getValue() != null) {
  System.out.println(entry.getKey() + :  + entry.getValue());
  } 
  }
  int start = aci.getBeginIndex();
  System.out.print(AttrRuns: );
  while (aci.current() != CharacterIterator.DONE) {
  int end = aci.getRunLimit();
  System.out.print( + (end - start) + , );
  aci.setIndex(end);
  if (start == end) {
  break;
  } 
  start = end;
  }
  System.out.println();
  }
  
  }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop/src/java/org/apache/fop/svg AbstractFOPTranscoder.java

2003-11-07 Thread jeremias
jeremias2003/11/07 13:54:32

  Modified:src/java/org/apache/fop/svg AbstractFOPTranscoder.java
  Log:
  Use different base class for user agent.
  
  Revision  ChangesPath
  1.3   +17 -63xml-fop/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java
  
  Index: AbstractFOPTranscoder.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractFOPTranscoder.java11 Oct 2003 14:48:49 -  1.2
  +++ AbstractFOPTranscoder.java7 Nov 2003 21:54:32 -   1.3
  @@ -65,8 +65,10 @@
   import org.apache.batik.dom.util.DocumentFactory;
   import org.apache.batik.transcoder.ErrorHandler;
   import org.apache.batik.transcoder.TranscoderException;
  +import org.apache.batik.transcoder.TranscodingHints;
   import org.apache.batik.transcoder.SVGAbstractTranscoder;
   import org.apache.batik.transcoder.image.ImageTranscoder;
  +import org.apache.batik.transcoder.keys.BooleanKey;
   import org.apache.batik.util.SVGConstants;
   import org.apache.batik.util.XMLResourceDescriptor;
   import org.w3c.dom.DOMImplementation;
  @@ -78,6 +80,18 @@
   implements LogEnabled {
   
   /**
  + * The key to specify whether to stroke text instead of using text 
  + * operations.
  + */
  +public static final TranscodingHints.Key KEY_STROKE_TEXT = new BooleanKey();
  +
  +/** The value to turn on text stroking. */
  +public static final Boolean VALUE_FORMAT_ON = Boolean.TRUE;
  +
  +/** The value to turn off text stroking. */
  +public static final Boolean VALUE_FORMAT_OFF = Boolean.FALSE;
  +
  +/**
* The user agent dedicated to this Transcoder.
*/
   protected UserAgent userAgent = createUserAgent();
  @@ -143,8 +157,8 @@
*/
   protected DocumentFactory createDocumentFactory(DOMImplementation domImpl,
   String parserClassname) {
  -final FOPSAXSVGDocumentFactory factory = 
  -new FOPSAXSVGDocumentFactory(parserClassname);
  +final FOPSAXSVGDocumentFactory factory 
  += new FOPSAXSVGDocumentFactory(parserClassname);
   if (this.resolver != null) {
   factory.setAdditionalEntityResolver(this.resolver);
   }
  @@ -195,15 +209,7 @@
   /**
* A user agent implementation for FOP's Transcoders.
*/
  -protected class FOPTranscoderUserAgent extends UserAgentAdapter {
  -
  -/**
  - * Returns the default size of this user agent (400x400).
  - * @return the default viewport size
  - */
  -public Dimension2D getViewportSize() {
  -return new Dimension(400, 400);
  -}
  +protected class FOPTranscoderUserAgent extends SVGAbstractTranscoderUserAgent {
   
   /**
* Displays the specified error message using the ttErrorHandler/tt.
  @@ -253,20 +259,6 @@
   }
   
   /**
  - * Returns the user language specified in the
  - * ttTranscodingHints/tt or en (english) if any.
  - * @return the languages for the transcoder
  - */
  -public String getLanguages() {
  -Object key = ImageTranscoder.KEY_LANGUAGE;
  -if (getTranscodingHints().containsKey(key)) {
  -return (String)getTranscodingHints().get(key);
  -} else {
  -return en;
  -}
  -}
  -
  -/**
* Get the media for this transcoder. Which is always print.
* @return PDF media is print
*/
  @@ -274,44 +266,6 @@
   return print;
   }
   
  -/**
  - * Returns the user stylesheet specified in the
  - * ttTranscodingHints/tt or null if any.
  - * @return the user style sheet URI specified in the hints
  - */
  -public String getUserStyleSheetURI() {
  -return (String)getTranscodingHints()
  -.get(ImageTranscoder.KEY_USER_STYLESHEET_URI);
  -}
  -
  -/**
  - * Returns the XML parser to use from the TranscodingHints.
  - * @return the XML parser class name
  - */
  -public String getXMLParserClassName() {
  -Object key = KEY_XML_PARSER_CLASSNAME;
  -if (getTranscodingHints().containsKey(key)) {
  -return (String)getTranscodingHints().get(key);
  -} else {
  -return XMLResourceDescriptor.getXMLParserClassName();
  -}
  -}
  -
  -/**
  - * Check if the XML parser is validating.
  - * @return true if the XML parser is validating
  - */
  -public boolean isXMLParserValidating() {
  -return false;
  -}
  -
  -/**
  - * 

Re: space-before in 1.0Dev

2003-11-07 Thread J.Pietschmann
Chris Bowditch wrote:
The BlockLayoutManager.addAreas seems to be responsible for adding space 
before/after. Currently there is no check to see whether or not this is 
the first/last call to addAreas. Is the LayoutContext object supposed to 
be the mechanism for checking such state?
I think so.

J.Pietschmann



Re: Replacing me on the PMC

2003-11-07 Thread J.Pietschmann
Peter B. West wrote:
I nominate Joerg as my replacement, should he desire the position.
Well, not exactly a desire but if it's my turn to take the duty,
I'll do it.
J.Pietschmann



cvs commit: xml-fop/src/java/org/apache/fop/render/ps EPSTranscoder.java AbstractPSTranscoder.java AbstractPSDocumentGraphics2D.java EPSDocumentGraphics2D.java PSProcSets.java PSTranscoder.java PSGraphics2D.java PSGenerator.java PSRenderer.java PSTextElementBridge.java PSXMLHandler.java DSCConstants.java PSDocumentGraphics2D.java PSTextPainter.java

2003-11-07 Thread jeremias
jeremias2003/11/07 14:19:20

  Modified:src/java/org/apache/fop/render/ps PSProcSets.java
PSTranscoder.java PSGraphics2D.java
PSGenerator.java PSRenderer.java
PSTextElementBridge.java PSXMLHandler.java
DSCConstants.java PSDocumentGraphics2D.java
PSTextPainter.java
  Added:   src/java/org/apache/fop/render/ps EPSTranscoder.java
AbstractPSTranscoder.java
AbstractPSDocumentGraphics2D.java
EPSDocumentGraphics2D.java
  Log:
  Substantial refactoring of the PS transcoder (especially the text painting, less 
painting using the StrokingTextPainter, therefore more speed and smaller output files)
  Addition of an EPS transcoder
  
  Revision  ChangesPath
  1.7   +8 -0  xml-fop/src/java/org/apache/fop/render/ps/PSProcSets.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSProcSets.java.diff?r1=1.6r2=1.7
  
  
  1.7   +5 -97 xml-fop/src/java/org/apache/fop/render/ps/PSTranscoder.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSTranscoder.java.diff?r1=1.6r2=1.7
  
  
  1.6   +349 -333  xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java.diff?r1=1.5r2=1.6
  
  
  1.3   +69 -14xml-fop/src/java/org/apache/fop/render/ps/PSGenerator.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSGenerator.java.diff?r1=1.2r2=1.3
  
  
  1.18  +29 -50xml-fop/src/java/org/apache/fop/render/ps/PSRenderer.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSRenderer.java.diff?r1=1.17r2=1.18
  
  
  1.4   +13 -26
xml-fop/src/java/org/apache/fop/render/ps/PSTextElementBridge.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSTextElementBridge.java.diff?r1=1.3r2=1.4
  
  
  1.8   +11 -5 xml-fop/src/java/org/apache/fop/render/ps/PSXMLHandler.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSXMLHandler.java.diff?r1=1.7r2=1.8
  
  
  1.3   +3 -0  xml-fop/src/java/org/apache/fop/render/ps/DSCConstants.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/DSCConstants.java.diff?r1=1.2r2=1.3
  
  
  1.8   +52 -147   
xml-fop/src/java/org/apache/fop/render/ps/PSDocumentGraphics2D.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSDocumentGraphics2D.java.diff?r1=1.7r2=1.8
  
  
  1.9   +274 -143  xml-fop/src/java/org/apache/fop/render/ps/PSTextPainter.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/PSTextPainter.java.diff?r1=1.8r2=1.9
  
  
  1.1  xml-fop/src/java/org/apache/fop/render/ps/EPSTranscoder.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/EPSTranscoder.java?rev=1.1
  
  
  1.1  
xml-fop/src/java/org/apache/fop/render/ps/AbstractPSTranscoder.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/AbstractPSTranscoder.java?rev=1.1
  
  
  1.1  
xml-fop/src/java/org/apache/fop/render/ps/AbstractPSDocumentGraphics2D.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/AbstractPSDocumentGraphics2D.java?rev=1.1
  
  
  1.1  
xml-fop/src/java/org/apache/fop/render/ps/EPSDocumentGraphics2D.java
  
  
http://cvs.apache.org/viewcvs/xml-fop/src/java/org/apache/fop/render/ps/EPSDocumentGraphics2D.java?rev=1.1
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop build.xml

2003-11-07 Thread jeremias
jeremias2003/11/07 14:21:28

  Modified:.build.xml
  Log:
  Adjust transcoder packaging to changes in FOP.
  
  Revision  ChangesPath
  1.92  +6 -2  xml-fop/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- build.xml 4 Nov 2003 23:59:11 -   1.91
  +++ build.xml 7 Nov 2003 22:21:28 -   1.92
  @@ -288,7 +288,7 @@
   condition property=junit.message value=JUnit Support PRESENT
 equals arg1=${junit.present} arg2=true/
   /condition
  -condition property=junit.message value=JUnit Support NOT Present
  +condition property=junit.message value=JUnit Support NOT Present - 
Committers are required to have JUnit working
 not
   equals arg1=${junit.present} arg2=true/
 /not
  @@ -534,9 +534,13 @@
   patternset id=transcoder-classes
 !-- General classes --
 patternset
  +include name=org/apache/fop/apps/Document*/
  +include name=org/apache/fop/fo/FOTreeControl*/
  +include name=org/apache/fop/fo/FOTreeListener*/
  +include name=org/apache/fop/area/AreaTreeControl*/
   include name=org/apache/fop/svg/**/
   include name=org/apache/fop/fonts/**/
  -include name=org/apache/fop/layout/Font*.class/
  +!--include name=org/apache/fop/layout/Font*.class/--
   include name=org/apache/fop/image/FopImag*.class/
   include name=org/apache/fop/image/Jpeg*/
   include name=org/apache/fop/image/Abstract*/
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: xml-fop/src/java/org/apache/fop/util StreamUtilities.java

2003-11-07 Thread jeremias
jeremias2003/11/07 14:21:57

  Removed: src/java/org/apache/fop/util StreamUtilities.java
  Log:
  Not needed anymore. Everything we need is in Commons IO.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Replacing me on the PMC

2003-11-07 Thread Jeremias Maerki
Hehe. +1 from me, too. Don't worry it's not that much to do.

On 07.11.2003 23:15:28 J.Pietschmann wrote:
 Peter B. West wrote:
  I nominate Joerg as my replacement, should he desire the position.
 
 Well, not exactly a desire but if it's my turn to take the duty,
 I'll do it.
 
 J.Pietschmann



Jeremias Maerki



Changes in PostScript support

2003-11-07 Thread Jeremias Maerki
Finally, I managed to scratch together some time and resync my local
codebase again. I failed to upload my PS refactoring I did in August and
then a lot of little changes happened. Took me quite a long time to get
that sorted out. Teaches me for next time. :-) Anyway, I hope I have
correctly preserved all the changes that were done since August.

Here's what I did:
- Improved PSTextPainter to allow for less painting by the
  StrokingTextPainter. This improves speed and decreases the size of the
  generated files.
- Improved font handling and text painting in PSGraphics2D. This was
  needed to support the changes in the TextPainter.
- Hidden in the code is a little change that allows me to generate more
  than one page with a PSDocumentGraphics2D. I've done an experiment
  with JPS (Java Printing System) to use PSDocumentGraphics2D as base
  for an alternative PS backend to JPS (that code is not committed). I
  hope nobody minds if I leave that multipage code in there. It
  shouldn't hurt.
- I've added an EPS transcoder. That was simply a matter of creating
  abstract base classes so I could manage the little differences between
  normal PostScript files and EPS files. It could be that there are some
  illegal (WRT EPS) statements left generated by PSGraphics2Dm but I
  don't think so. This is simply to say that the code is brand new and
  to be considered alpha-quality.

A big todo that is left open in PSGraphics2D ATM is proper bitmap
support.

Besides that I'm itching to refactor the Transcoder instantiation in
Batik so that additional transcoders can be added just like we add FOP
extensions. Right now, support for the PDF transcoder is hardcoded in
Batik. But I still need to find time to do that.

Jeremias Maerki