cvs commit: xml-fop/src/codegen foproperties.xml

2001-07-08 Thread arved

arved   01/07/08 13:58:27

  Modified:src/codegen foproperties.xml
  Log:
  Support 'format' property on fo:page-sequence
  
  Revision  ChangesPath
  1.17  +44 -0 xml-fop/src/codegen/foproperties.xml
  
  Index: foproperties.xml
  ===
  RCS file: /home/cvs/xml-fop/src/codegen/foproperties.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- foproperties.xml  2001/04/11 21:39:02 1.16
  +++ foproperties.xml  2001/07/08 20:58:27 1.17
  @@ -1363,6 +1363,50 @@
/enumeration
defaultbefore/default
/property
  + property
  + nameformat/name
  + inheritedfalse/inherited
  + datatypeString/datatype
  + default1/default
  + /property
  + property
  + namegrouping-separator/name
  + inheritedfalse/inherited
  + datatypeCharacter/datatype
  + defaultnone/default
  + /property
  + property
  + namegrouping-size/name
  + inheritedfalse/inherited
  + datatypeNumber/datatype
  + !-- 0 means no grouping --
  + default0/default
  + /property
  + property
  + nameletter-value/name
  + inheritedfalse/inherited
  + datatypeEnum/datatype
  + enumeration
  + value const=ALPHABETICalphabetic/value
  + value const=TRADITIONALtraditional/value
  + value const=AUTOauto/value
  + /enumeration
  + defaultauto/default
  + /property
  + property
  + nameforce-page-count/name
  + inheritedfalse/inherited
  + datatypeEnum/datatype
  + enumeration
  + value const=EVENeven/value
  + value const=ODDodd/value
  + value const=END_ON_EVENend-on-even/value
  + value const=END_ON_ODDend-on-odd/value
  + value const=NO_FORCEno-force/value
  + value const=AUTOauto/value
  + /enumeration
  + defaultauto/default
  + /property
/generic-property-list
   /property-list
   
  
  
  

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




RE: New Mailing List

2001-07-08 Thread Ruairi






Regards,
-Ruairi


Ruairi O'Donnell
Rutland Systems www.rutlands.com
Alcalde Lorenzo 16 2A Tel +34 981 884108
15220 Bertamirans, Ames   Fax +34 981 884108
Spain  Mobile +44 7801141801


The contents of this message should be read in conjunction
with the document found at:
http://www.rutlands.com/signature.htm

-Original Message-
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
Sent: 07 July 2001 16:53
To: [EMAIL PROTECTED]
Subject: New Mailing List


Hi, all

We have a new mailing list set up, courtesy of the XML PMC.

It is called '[EMAIL PROTECTED]'.

Subscribe by posting to '[EMAIL PROTECTED]'. Subject line
and body is irrelevant. You'll get the typical ezmlm response, that you also
reply to, and then you are in.

Regards,
Arved Sandstrom

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]


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




[Bug 2504] New: - Some font properties in tables are not preserved across columns

2001-07-08 Thread bugzilla

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2504

*** shadow/2504 Sun Jul  8 17:31:04 2001
--- shadow/2504.tmp.4016Sun Jul  8 17:31:04 2001
***
*** 0 
--- 1,17 
+ ++
+ | Some font properties in tables are not preserved across columns|
+ ++
+ |Bug #: 2504Product: Fop |
+ |   Status: NEW Version: 0.17|
+ |   Resolution:Platform: PC  |
+ | Severity: Normal   OS/Version: Linux   |
+ | Priority: High  Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED]   |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ There are two similar cases wherein' font-variant=small-caps' property is 
+notpreserved by Fop-0.18.1-DEV.1, When used in a table-header and the table is longer 
+than will fit in a single column of a multicolumn page (' column-count=2' ). In this 
+case the small-caps text (which appearscorrectly the first time) is rendered as all 
+large caps (i.e. non-leading chars are mapped toupper case, but of the same height as 
+the leading char). In this case the text is hardcoded literalsin an xsl file used to 
+transliate an xml file into pdf.2. When a small-caps heading is placed in a 
+table-body of a table placed in a simple-page-master region-before and the flow 
+causes a second page to be created using the region-before's static-content.It also 
+appears that other font properties are not always preserved. Both text-indent and 
+(text)color were not preserved on at least one occasion each. In this case the text 
+is retrieved byXalan from an xml file being formatted into pdf.

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




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

2001-07-08 Thread arved

arved   01/07/08 20:01:15

  Modified:src/org/apache/fop/fo/pagination PageSequence.java
  Log:
  AHS: support 'force-page-count'
  
  Revision  ChangesPath
  1.31  +97 -6 xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java
  
  Index: PageSequence.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- PageSequence.java 2001/07/08 05:04:10 1.30
  +++ PageSequence.java 2001/07/09 03:01:12 1.31
  @@ -1,4 +1,4 @@
  -/*-- $Id: PageSequence.java,v 1.30 2001/07/08 05:04:10 arved Exp $ --
  +/*-- $Id: PageSequence.java,v 1.31 2001/07/09 03:01:12 arved 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.
  @@ -83,10 +83,15 @@
   
   private Page currentPage;
   
  - // page number and elated formatting variables
  + // page number and related formatting variables
  + private String ipnValue;
   private int currentPageNumber = 0;
private PageNumberGenerator pageNumberGenerator;

  + private int forcePageCount = 0;
  + private int pageCount = 0;
  + private boolean isForcing = false;
  + 
   /** specifies page numbering type (auto|auto-even|auto-odd|explicit) */
   private int pageNumberType;
   
  @@ -125,8 +130,7 @@
   _flowMap = new Hashtable();
   
   thisIsFirstPage = true; // we are now on the first page of the page sequence
  -String ipnValue =
  -  this.properties.get(initial-page-number).getString();
  +ipnValue = this.properties.get(initial-page-number).getString();
   
   if (ipnValue.equals(auto)) {
   pageNumberType = AUTO;
  @@ -154,6 +158,8 @@
this.properties.get(grouping-size).getNumber().intValue(),
this.properties.get(letter-value).getEnum()
);
  + 
  + this.forcePageCount = 
this.properties.get(force-page-count).getEnum();
   }
   
   public void addFlow(Flow flow) throws FOPException {
  @@ -177,11 +183,12 @@
   
   this.layoutMasterSet.resetPageMasters();
   
  + int firstAvailPageNumber = 0;
   do {
   // makePage() moved to after the page-number computations,
   // but store the page-number at this point for that method,
   // since we want the 'current' current page-number...
  -int firstAvailPageNumber =
  +firstAvailPageNumber =
 this.root.getRunningPageNumberCounter();
   boolean tempIsFirstPage = false;
   
  @@ -260,9 +267,12 @@
   }
   MessageHandler.log(]);
   areaTree.addPage(currentPage);
  + this.pageCount++;   // used for 'force-page-count' 
calculations
   } while (flowsAreIncomplete())
   ;
  -
  + // handle the 'force-page-count'
  + forcePage(areaTree, firstAvailPageNumber);
  + 
   MessageHandler.logln();
   }
   
  @@ -398,6 +408,12 @@
   private SimplePageMaster getNextSimplePageMaster(
 PageSequenceMaster sequenceMaster, int currentPageNumber,
 boolean thisIsFirstPage, boolean isEmptyPage) {
  +   // handle forcing
  +   if (isForcing) {
  + String nextPageMaster = getNextPageMasterName(sequenceMaster,
  + currentPageNumber, false, true);
  + return this.layoutMasterSet.getSimplePageMaster(nextPageMaster);
  +   }
   String nextPageMaster = getNextPageMasterName(sequenceMaster,
   currentPageNumber, thisIsFirstPage, isEmptyPage);
   return this.layoutMasterSet.getSimplePageMaster(nextPageMaster);
  @@ -522,6 +538,7 @@
   private boolean isFlowForMasterNameDone(String masterName) {
   // parameter is master-name of PMR; we need to locate PM
   // referenced by this, and determine whether flow(s) are OK
  + if (isForcing) return false;
   if (masterName != null) {
   
   SimplePageMaster spm =
  @@ -545,4 +562,78 @@
   public void setIsFlowSet(boolean isFlowSet) {
   this.isFlowSet = isFlowSet;
   }
  + 
  + public String getIpnValue() {
  + return ipnValue;
  + }
  + 
  + public int getCurrentPageNumber() {
  + return currentPageNumber;
  + }
  + 
  + private void forcePage(AreaTree areaTree, int firstAvailPageNumber) {
  + boolean makePage = false;
  + if (this.forcePageCount == ForcePageCount.AUTO) {
  + PageSequence nextSequence =
  +   

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

2001-07-08 Thread arved

arved   01/07/08 20:02:43

  Modified:src/org/apache/fop/fo/pagination
RepeatablePageMasterAlternatives.java
  Log:
  AHS: restore ability to do blank pages
  
  Revision  ChangesPath
  1.5   +2 -2  
xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java
  
  Index: RepeatablePageMasterAlternatives.java
  ===
  RCS file: 
/home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RepeatablePageMasterAlternatives.java 2000/11/15 10:26:23 1.4
  +++ RepeatablePageMasterAlternatives.java 2001/07/09 03:02:39 1.5
  @@ -1,4 +1,4 @@
  -/*-- $Id: RepeatablePageMasterAlternatives.java,v 1.4 2000/11/15 10:26:23 fotis Exp 
$ -- 
  +/*-- $Id: RepeatablePageMasterAlternatives.java,v 1.5 2001/07/09 03:02:39 arved Exp 
$ -- 
   

  The Apache Software License, Version 1.1
  @@ -134,7 +134,7 @@

(ConditionalPageMasterReference)conditionalPageMasterRefs.elementAt(i);
   
// 0-indexed page number
  - if (cpmr.isValid(currentPageNumber + 1, thisIsFirstPage,false))
  + if (cpmr.isValid(currentPageNumber + 1, 
thisIsFirstPage,isEmptyPage))
{
pm = cpmr.getMasterName();
break;
  
  
  

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




force-page-count

2001-07-08 Thread Arved_37

The force-page-count property on fo:page-sequence is now supported, in full
(that means you can use 'auto', 'even', 'odd', 'end-on-even', 'end-on-odd' and
'no-force').

Caveats:

1. This is relatively untested stuff. I ran through a bunch of combinations, but
let's face it, proper black-box testing of the various force-page-count +
initial-page-number + page-sequence page count combinations results in a
*large* number of test cases, and I've only dented the surface. Expect bugs;

2. If 'force-page-count' produces an extra page, it will be a blank page. This
is unsophisticated, but if anyone can think of a better idea, let's hear it. :-)
You, of course, have access to the outer regions on this blank page using the
blank-or-not-blank='blank' conditional-page-master-reference;

3. This third point is related to point 2. The default on force-page-count is
'auto', and unlike a lot of other properties, this one doesn't mean don't do
anything. In fact, 'auto' will result in a forced blank page (in this
implementation) fairly frequently. You need to account for this by having a
suitable simple-page-master available, basically one that is identified with a
blank-or-not-blank='blank' conditional-page-master-reference, or a default that
is effectively the same. If not, I cannot guarantee beautiful behaviour at the
moment. Basically you don't want a page-master that tries to pull in fo:flow
content being used for a blank page. If you have been using page-breaks you are
probably already OK with this.

Short fix for point 3: if you have lots of material (direct FO, or XSLT
stylesheets) change your fo:page-sequences to have a
force-page-count='no-force'. This will save you from having to deal with blank
pages if you don't want to. Again, keep in mind that 'no-force' is NOT the
default.

Hope this property, in combination with 'initial-page-count', plugs most of the
remaining holes in pagination. The final big one, I believe, is
page-position=last.

Regards,
Arved Sandstrom


---
 This mail was sent through the Nova Scotia Provincial Server, 
 with technical resources provided by Chebucto Community Net.
 http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/


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




Unknown Font

2001-07-08 Thread rajeev nair

hello all,
Now i got my userconfig file read.but the font i
embedded is not taking into consideration.error
unknown font is occuring.
I built the font metric  xml file and customised the
userconfig.xml as per the docs provided.I was trying 

java -cp fop.jar org.apache.fop.fonts.apps.TTFReader 
-fn c:\Windows\fonts\SHIVB___.ttf
c:\Windows\fonts\SHIVB___.ttf shiva.xml.
Am i doing anything wrong here.
please anyone help me
regards
rajiv


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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