Re: PS Renderer patch

2002-06-09 Thread Jeremias Maerki

Hi Huikang

I had to work with the plain java file you posted instead of the diff,
because the diff seems to be made against the CVS HEAD branch instead of
the maintenance branch. Anyway, using another differ I was able to
extract your changes. It's still in the works, amoung other things I'm
currently working on in the PS renderer.

What I'd like to ask you is the following: I found that you added a
translate in renderPage() and changed the scaling factor. Why exactly
did you do this? Currently, without this, the PS renderer produces pages
that are 99.99% identical to the PDF if printed out (at least where the
PS functionality is complete. doesn't apply for SVG, yet, for example).

Can it be that you've activated one of the following check boxes in
Acrobat's printing dialog?
- Shrink oversized  paper to paper size
- Expand small pages to paper size
- Auto-rotate and center pages

I've fallen victim to this pitfall a number of times now. Maybe you have,
too. These options result in scaled and offset PDFs being printed.
Please check if this is the case and if not, please send me an fo file
where I can see the differences you describe.

> Attached is a unified diff with current CVS.
> 
> This patch will render the PostScript file in same appearance (position and
> size of border, table and font) with PDF's. Although we noted that the size
> of border and table in PDF file is smaller than it should be. I have tested
> the code with Fop-0.20.3 but not current CVS.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Re: delay for release candidate

2002-06-09 Thread Peter B. West

Christian,

What's the latest?  I have just patched .../fo/flow/BasicLink.java to 
change the default, but I have not committed it yet.  I would like to 
get an interested user to try it before general release, if possible.

Peter

Christian Geisert wrote:
> Hi all,
> 
> as you probably have noticed the date for the release candidate has been
> reached but I would like to see the following things done for 0.20.4:
> (new target date: next weekend ;-)
> 
> - fix multiple rectangle links
>   http://marc.theaimsgroup.com/?l=fop-dev&m=102212484928910&w=2
>   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9335

-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


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




[GUMP] Build Failure - xml-fop

2002-06-09 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 1.0dev [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 30 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/allprops.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/Constants.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/genconst.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/propmap.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/enumgen.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/charlist.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/CodePointMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/code-point-mapping.xsl
[style] Transforming into 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Courier.java
[style] home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl:0:0: Fatal 
Error! java.lang.RuntimeException: Programmer assertion is incorrect! - Namespace 
context can not be null! Cause: java.lang.RuntimeException: Programmer assertion is 
incorrect! - Namespace context can not be null!
[style] Failed to process /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml

BUILD FAILED
/home/rubys/jakarta/xml-fop/build.xml:431: Fatal error during transformation

Total time: 27 seconds

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




Re: header image of http://xml.apache.org/fop/index.html

2002-06-09 Thread Peter B. West

Oleg,

Known problem, which has actually been solved, as you can see if you 
build htmldoc in a CVS HEAD checkout.  Some of the graphics haven't made 
their way into the website tree yet.  I'll have a look at it.

Peter

Oleg Tkachenko wrote:
> Hello there!
> 
> I just noticed that header image at fop's index page looks rather 
> bizarre - there is probably white "FOP" string at the right, but what I 
> can see (mozilla1.0 or IE6) is only left bottom corner of letters "FO". 
> Can anybody else see it?
> 


-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


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




header image of http://xml.apache.org/fop/index.html

2002-06-09 Thread Oleg Tkachenko

Hello there!

I just noticed that header image at fop's index page looks rather bizarre - 
there is probably white "FOP" string at the right, but what I can see 
(mozilla1.0 or IE6) is only left bottom corner of letters "FO". Can anybody 
else see it?

-- 
Oleg Tkachenko
Multiconn International Ltd, Israel


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




Antw: AW: printing the correct document

2002-06-09 Thread Juergen Lippold

Guten Tag,

mit der angehängten Fo-Datei werden Etiketten erzeugt, die Abstände zwischen den 
Etiketten habe ich fuer die bessere Übersicht noch gefärbt. Ich vermute, dass die 
eiinzige Möglichkeit dies ordentlich zu drucken darin besteht, das Dokument beim 
Ausdrucken zu zentrieren und den Text mit margin-left und margin-right ein bisschen in 
die Mitte des Etikettes zu setzten.
Aber viellecht haben Sie ja noch eine bessere Idee. Vielen Dank im voraus.

Mit freundlichen Grüßen

Jürgen Lippold

>>> [EMAIL PROTECTED] 08.06.2002  14.11 Uhr >>>
Guten Tag,

schicken Sie mir die Input xsl:fo? Dann kann ich den Fall einmal anschauen.

Mit freundlichen Gruessen
Hansuli Anderegg
Tel. 01-381-0207




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




http://www.w3.org/1999/XSL/Format";>











 


Anton Donaudampfschifffahrtskapitaensadjutantenmuetzentraeger 


Waldweg 1


50259


Pulheim






Carl Dietrich


Rosenweg 2


46372


Abelsheim





 


Anton Donaudampfschifffahrtskapitaensadjutantenmuetzentraeger 


Waldweg 1


50259


Pulheim






Carl Dietrich


Rosenweg 2


46372


Abelsheim





 


Anton Donaudampfschifffahrtskapitaensadjutantenmuetzentraeger 


Waldweg 1


50259


Pulheim






Carl Dietrich


Rosenweg 2


46372


Abelsheim





 


Anton Donaudampfschifffahrtskapitaensadjutantenmuetzentraeger 


Waldweg 1


50259
 

cvs commit: xml-fop/src/org/apache/fop/datatypes Numeric.java

2002-06-09 Thread pbwest

pbwest  2002/06/09 03:39:11

  Modified:src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
Numeric.java
  Log:
  Added isDistance()
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +15 -3 xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java
  
  Index: Numeric.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Numeric.java  7 May 2002 16:06:36 -   1.1.2.1
  +++ Numeric.java  9 Jun 2002 10:39:11 -   1.1.2.2
  @@ -1,11 +1,11 @@
   /*
  - * $Id: Numeric.java,v 1.1.2.1 2002/05/07 16:06:36 pbwest Exp $
  + * $Id: Numeric.java,v 1.1.2.2 2002/06/09 10:39:11 pbwest 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.
* @author mailto:[EMAIL PROTECTED]";>Peter B. West
  - * @version $Revision: 1.1.2.1 $ $Name:  $
  + * @version $Revision: 1.1.2.2 $ $Name:  $
*/
   
   package org.apache.fop.datatypes;
  @@ -131,6 +131,11 @@
   public static final int NOT_NUMBER = UNIT | REL_LENGTH;
   
   /**
  + * Integer constants for distances.
  + */
  +public static final int DISTANCE = MILLIPOINTS | REL_LENGTH;
  +
  +/**
* The numerical contents of this instance.
*/
   protected double value;
  @@ -399,6 +404,13 @@
   }
   
   /**
  + * This object is a distance; a absolute or relative length
  + */
  +public boolean isDistance() {
  +return (baseunit & DISTANCE) != 0;
  +}
  +
  +/**
* This object is a time in milliseconds.
*/
   public boolean isTime() {
  @@ -905,7 +917,7 @@
   }
   
   /**
  - * @param unit an int encoding a Time unit.
  + * @param unit an int encoding a unit.
* @return the String name of the unit.
*/
   public static String getUnitName(int unit) {
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/datatypes TextDecorations.java

2002-06-09 Thread pbwest

pbwest  2002/06/09 03:33:39

  Modified:src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
TextDecorations.java
  Log:
  Fixed truncated comment
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +7 -3  xml-fop/src/org/apache/fop/datatypes/Attic/TextDecorations.java
  
  Index: TextDecorations.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/TextDecorations.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- TextDecorations.java  7 May 2002 16:06:36 -   1.1.2.1
  +++ TextDecorations.java  9 Jun 2002 10:33:39 -   1.1.2.2
  @@ -8,16 +8,20 @@
   
   /*
* TextDecorations.java
  - * $Id: TextDecorations.java,v 1.1.2.1 2002/05/07 16:06:36 pbwest Exp $
  + * $Id: TextDecorations.java,v 1.1.2.2 2002/06/09 10:33:39 pbwest 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.
* @author mailto:[EMAIL PROTECTED]";>Peter B. West
  - * @version $Revision: 1.1.2.1 $ $Name:  $
  + * @version $Revision: 1.1.2.2 $ $Name:  $
*/
   /**
  - * Class for 
  + * Class for the text decorations to be applied according to the
  + * text-decoration property.  This class maintains the current
  + * set of text decorations.  Modifications to the set are specified in a
  + * TextDecorator object, which contains the on and off masks to be applied
  + * to the "current" set of decorations.
*/
   
   public class TextDecorations
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/fo FOTree.java

2002-06-09 Thread pbwest

pbwest  2002/06/09 03:25:29

  Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOTree.java
  Log:
  Part of migration of propertyStacks into FOTree
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +5 -7  xml-fop/src/org/apache/fop/fo/Attic/FOTree.java
  
  Index: FOTree.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOTree.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- FOTree.java   7 May 2002 05:17:52 -   1.1.2.1
  +++ FOTree.java   9 Jun 2002 10:25:29 -   1.1.2.2
  @@ -37,7 +37,7 @@
* Created: Thu Aug  2 20:29:57 2001
*
* @author mailto:[EMAIL PROTECTED]";>Peter B. West
  - * @version $Id: FOTree.java,v 1.1.2.1 2002/05/07 05:17:52 pbwest Exp $
  + * @version $Id: FOTree.java,v 1.1.2.2 2002/06/09 10:25:29 pbwest Exp $
*/
   /**
* FOTree is the class that generates and maintains the FO Tree.
  @@ -69,12 +69,7 @@
* 
*  LinkedList is part of the 1.2 Collections framework.
*/
  -protected static final LinkedList[] propertyStacks;
  -static {
  -propertyStacks = new LinkedList[PropNames.LAST_PROPERTY_INDEX + 1];
  -for (int i = 0; i <= PropNames.LAST_PROPERTY_INDEX; i++)
  -propertyStacks[i] = new LinkedList();
  -}
  +protected final LinkedList[] propertyStacks;
   
   /**
* @param xmlevents the buffer from which XMLEvents from the
  @@ -87,6 +82,9 @@
   exprParser = new PropertyParser();
   
   // Initialise the propertyStacks
  +propertyStacks = new LinkedList[PropNames.LAST_PROPERTY_INDEX + 1];
  +for (int i = 0; i <= PropNames.LAST_PROPERTY_INDEX; i++)
  +propertyStacks[i] = new LinkedList();
   // Initialize the FontSize first.  Any lengths defined in ems must
   // be resolved relative to the current font size.  This may happen
   // during setup of initial values.
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/fo Properties.java

2002-06-09 Thread pbwest

pbwest  2002/06/09 03:22:47

  Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
Properties.java
  Log:
  Initial shorthand support - BackgroundPosition
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.3   +333 -8xml-fop/src/org/apache/fop/fo/Attic/Properties.java
  
  Index: Properties.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/Properties.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- Properties.java   9 May 2002 04:08:39 -   1.1.2.2
  +++ Properties.java   9 Jun 2002 10:22:46 -   1.1.2.3
  @@ -1,11 +1,11 @@
   /*
  - * $Id: Properties.java,v 1.1.2.2 2002/05/09 04:08:39 pbwest Exp $
  + * $Id: Properties.java,v 1.1.2.3 2002/06/09 10:22:46 pbwest 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.
*
* @author mailto:[EMAIL PROTECTED]";>Peter B. West
  - * @version $Revision: 1.1.2.2 $ $Name:  $
  + * @version $Revision: 1.1.2.3 $ $Name:  $
*/
   
   package org.apache.fop.fo;
  @@ -225,7 +225,8 @@
 ,COMPUTED = 1
,SPECIFIED = 2
 ,COMPOUND = 3
  -,VALUE_SPECIFIC = 4
  + ,SHORTHAND_INH = 4
  +,VALUE_SPECIFIC = 5
 ;
   
   
  @@ -577,7 +578,7 @@
   }
   
   public static class Background extends Properties {
  -public static final int dataTypes = SHORTHAND;
  +public static final int dataTypes = SHORTHAND | INHERIT;
   public static final int traitMapping = SHORTHAND_MAP;
   public static final int initialValueType = NOTYPE_IT;
   public static final int inherited = NO;
  @@ -647,6 +648,330 @@
   public static final int traitMapping = SHORTHAND_MAP;
   public static final int initialValueType = NOTYPE_IT;
   public static final int inherited = NO;
  +
  +public static final int
  +LEFT = 1
  + ,CENTER = 2
  +  ,RIGHT = 3
  +,TOP = 4
  +,CENTERV = 5
  + ,BOTTOM = 6
  + ;
  +
  +private static final String[] rwEnums = {
  +null
  +,"left"
  +,"center"
  +,"right"
  +,"top"
  +,"center"
  +,"bottom"
  +};
  +
  +private static final ROStringArray enums = new ROStringArray(rwEnums);
  +
  +/**
  + * 'value' is a PropertyValueList or an individual PropertyValue.
  + *
  + * If 'value' is an individual PropertyValue, it must contain
  + * either a single distance measurement, a single NCName enumeration
  + * token, or an Inherit value.
  + * The distance measurement can be either a Length or a Percentage.
  + *
  + * If 'value' is a PropertyValueList, it contains either a pair of
  + * distance measurement (length or percentage) or a pair of
  + * enumeration tokens representing the background position offset
  + * in the "height" and "width" dimensions.
  + *
  + * The value(s) provided, if valid, are converted into a list
  + * containing the expansion of the shorthand.  I.e. the first
  + * element is a value for BackgroundPositionHorizontal, and the
  + * second is for BackgroundPositionVertical.
  + */
  +public static PropertyValue complex
  +(int property, PropertyValue value) throws PropertyException
  +{
  +if ( ! (value instanceof PropertyValueList)) {
  +return processValue(property, value);
  +} else {
  +return processList(property, (PropertyValueList)value);
  +}
  +}
  +
  +private static PropertyValueList processValue
  +(int property, PropertyValue value) throws PropertyException
  +{
  +PropertyValueList newlist = new PropertyValueList(property);
  +// Can only be Inherit, NCName (i.e. enum token)
  +// or Numeric (i.e. Length or Percentage)
  +if (value instanceof Inherit) {
  +// Construct a list of two Inherit values
  +newlist.add(new Inherit(
  +PropNames.BACKGROUND_POSITION_HORIZONTAL));
  +newlist.add(new Inherit(
  +PropNames.BACKGROUND_POSITION_VERTICAL));
  +} else if (value instanceof Numeric)

Re: Info on my efforts for the 0.20.4 release

2002-06-09 Thread Peter B. West

Jeremias,

I'm pleased to hear this.  I believe that the PS renderer is an 
important part of FOP's future.

Peter

Jeremias Maerki wrote:
> Hi Chrisian and other foppers
> 
> Yesterday, I started to work on incorporating Huikang Xu's patch for the
> PS renderer. As things go, I've found a pile of things in the PS
> renderer I didn't like, so I started to hack around. The good message
> is: The PS renderer will get a few improvements (all bug fixes by
> Huikang Xu, better DSC compliance, correct image placement, totally
> refactored encoding filters that don't throw occasional Exceptions
> anymore etc.). The bad message is: It got late last night and I haven't
> finished and I won't be able to finish today. So, Christian, if you
> manage to get the release candidate out today, go for it. I'll commit my
> changes after the final release. Sorry.
> 

P.S. Re: the sudden re-appearance of my .sig.  Don't be alarmed.  I have 
just done a clean install of Mozilla 1.0, and rebuilt my prefs.js file 
in the process.  This simple action has cleared a couple of 
long-standing movemail bugs for me, including the loss of a .signature 
file.  Isn't the 1.0 release a mighty achievement?
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


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




Info on my efforts for the 0.20.4 release

2002-06-09 Thread Jeremias Maerki

Hi Chrisian and other foppers

Yesterday, I started to work on incorporating Huikang Xu's patch for the
PS renderer. As things go, I've found a pile of things in the PS
renderer I didn't like, so I started to hack around. The good message
is: The PS renderer will get a few improvements (all bug fixes by
Huikang Xu, better DSC compliance, correct image placement, totally
refactored encoding filters that don't throw occasional Exceptions
anymore etc.). The bad message is: It got late last night and I haven't
finished and I won't be able to finish today. So, Christian, if you
manage to get the release candidate out today, go for it. I'll commit my
changes after the final release. Sorry.

Cheers,
Jeremias Maerki


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