Compilation with Java-1

2001-08-31 Thread gbredis

Is there a possibility to compile FOP with the JDK 1.1.8?
As I found in build.xml, there're options to skip some features while compiling under the Java-1, but while just changing the JAVA_HOME in build.bat to my JDK 1.1.8 directory, the compilation fails. so, Is it possible to compile under Java-1, and if yes, then - how?

Best Regards,
George Bredis

JJ DREGER Consulting
Tverskaya 12/1/14
103009 Moscow
Russia

Phone: +7-095-9566895
Fax:   +7-095-9562878
WWW: http://www.dreger.de
E-Mail: [EMAIL PROTECTED]

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



cvs commit: xml-fop fop.sh

2001-08-31 Thread keiron

keiron  01/08/31 04:45:02

  Modified:.fop.sh
  Log:
  a better shell script to run fop with works
  from anywhere and sets the classpath in a better way.
  Submitted by: Weiqi Gao [EMAIL PROTECTED]
  
  Revision  ChangesPath
  1.4   +103 -4xml-fop/fop.sh
  
  Index: fop.sh
  ===
  RCS file: /home/cvs/xml-fop/fop.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- fop.sh2001/08/20 21:11:02 1.3
  +++ fop.sh2001/08/31 11:45:02 1.4
  @@ -1,5 +1,104 @@
  -#!/bin/sh
  -LIBDIR=./lib
  
-LOCALCLASSPATH=$LIBDIR/../build/fop.jar:$LIBDIR/batik.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/avalon-framework-4.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/jimi-1.0.jar
 
  -java -cp $CLASSPATH:$LOCALCLASSPATH org.apache.fop.apps.Fop $@
  +#! /bin/sh
  +#
  +# Shell script to run FOP, adapted from the Jakarta-Ant project.
  +
  +if [ -f $HOME/.foprc ] ; then 
  +  . $HOME/.foprc
  +fi
  +
  +# OS specific support.  $var _must_ be set to either true or false.
  +cygwin=false;
  +darwin=false;
  +case `uname` in
  +  CYGWIN*) cygwin=true ;;
  +  Darwin*) darwin=true ;;
  +esac
  +
  +if [ -z $FOP_HOME ] ; then
  +  # try to find FOP
  +  if [ -d /opt/fop ] ; then 
  +FOP_HOME=/opt/fop
  +  fi
  +
  +  if [ -d ${HOME}/opt/fop ] ; then 
  +FOP_HOME=${HOME}/opt/fop
  +  fi
  +
  +  ## resolve links - $0 may be a link to fop's home
  +  PRG=$0
  +  progname=`basename $0`
  +  
  +  while [ -h $PRG ] ; do
  +ls=`ls -ld $PRG`
  +link=`expr $ls : '.*- \(.*\)$'`
  +if expr $link : '.*/.*'  /dev/null; then
  + PRG=$link
  +else
  + PRG=`dirname $PRG`/$link
  +fi
  +  done
  +  
  +  FOP_HOME=`dirname $PRG`
  +
  +fi
  +
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +  [ -n $FOP_HOME ] 
  +FOP_HOME=`cygpath --unix $FOP_HOME`
  +  [ -n $JAVA_HOME ] 
  +JAVA_HOME=`cygpath --unix $JAVA_HOME`
  +  [ -n $CLASSPATH ] 
  +CLASSPATH=`cygpath --path --unix $CLASSPATH`
  +fi
  +
  +if [ -z $JAVACMD ] ; then 
  +  if [ -n $JAVA_HOME  ] ; then
  +if [ -x $JAVA_HOME/jre/sh/java ] ; then 
  +  # IBM's JDK on AIX uses strange locations for the executables
  +  JAVACMD=$JAVA_HOME/jre/sh/java
  +else
  +  JAVACMD=$JAVA_HOME/bin/java
  +fi
  +  else
  +JAVACMD=java
  +  fi
  +fi
  + 
  +if [ ! -x $JAVACMD ] ; then
  +  echo Error: JAVA_HOME is not defined correctly.
  +  echo   We cannot execute $JAVACMD
  +  exit
  +fi
  +
  +if [ -n $CLASSPATH ] ; then
  +  LOCALCLASSPATH=$CLASSPATH
  +fi
  +
  +# add fop.jar, which resides in $FOP_HOME/build
  +LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:$LOCALCLASSPATH
  +
  +# add in the dependency .jar files, which reside in $FOP_HOME/lib
  +DIRLIBS=${FOP_HOME}/lib/*.jar
  +for i in ${DIRLIBS}
  +do
  +# if the directory is empty, then it will return the input string
  +# this is stupid, so case for it
  +if [ $i != ${DIRLIBS} ] ; then
  +  if [ -z $LOCALCLASSPATH ] ; then
  +LOCALCLASSPATH=$i
  +  else
  +LOCALCLASSPATH=$i:$LOCALCLASSPATH
  +  fi
  +fi
  +done
  +
  +# For Cygwin, switch paths to Windows format before running java
  +if $cygwin; then
  +  FOP_HOME=`cygpath --path --windows $FOP_HOME`
  +  JAVA_HOME=`cygpath --path --windows $JAVA_HOME`
  +  LOCALCLASSPATH=`cygpath --path --windows $LOCALCLASSPATH`
  +fi
  +
  +$JAVACMD -classpath $LOCALCLASSPATH $FOP_OPTS org.apache.fop.apps.Fop $@
   
  
  
  

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




Re: [Patch] Re: Fw: hyphenation with table problem

2001-08-31 Thread Keiron Liddle

On Mon, 27 Aug 2001 21:34:41 Enrico Schnepel wrote:
 Hello Steve,
 
 The problem you are running into is known, resolved but not merged into 
 the cvs tree yet. I've already send a diff script which resolves
 hypenation 
 problems within LineArea to fop-dev one week ago. I've attached the diff 
 script.

This patch is committed.
It seems to have fixed a problem with text with wrap-option of no-wrap?

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




Re: A better shell script for running FOP

2001-08-31 Thread Keiron Liddle

On Wed, 22 Aug 2001 01:38:28 Weiqi Gao wrote:
 Hi,
 
 I have adapted the shell script that Ant uses to run itself into a shell
 script that can be used to run FOP.
 
 I have attached the 'fop' script.  This can potentially be a nice
 replacement for the fop.sh script that FOP currently uses.
 
 Benefit of this script:
 
 1. For users of FOP that uses it as a command line utility, as in
fop -fo myfile.fo -pdf myfile.pdf
 there is no need to mess around with the CLASSPATH.  Simply add
 /path/to/FOP-0.20.1 into the PATH, or create a symbolic like this:
ln -s /path/to/Fop-0.20.1/fop /usr/bin/fop
 and the fop command will simply work.
 
 2. The ant script works with Cygwin, even if you install FOP into a
 directory with a space in its name, like C:\Program Files.  I haven't
 tested it but it should work.
 
 3. It brings in all jar files in the $FOP_HOME/lib directory.  So in the
 future, there's no need to modify the fop script when some new library
 is added to $FOP_HOME/lib.

This new fop.sh script has been committed, seems to be significantly better
than what was there before.

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




Re: [Patch] Re: Fw: hyphenation with table problem

2001-08-31 Thread Enrico Schnepel

I don't know if there was a problem. I have tested the patch with my
testfile (send to fop-dev on 2001-08-21).

There is a problem with small table-columns and hypenation if the word
starts with a '' or a '/'. I hope I have time to create a testfile and send it
and the patch this evening because I will be on holiday next week.
this bug caused an infinite loop and kept me from from rendering a 3,5 MB
document. The html version of the candidate recommendation of the fo
specification converted to fo using html2fo. the 279 page pdf is available at
http://html2fo.sourceforge.net/xslspec.pdf. rendering it was something like a stress
test ;-)
 
Enrico

 On Mon, 27 Aug 2001 21:34:41 Enrico Schnepel wrote:
  Hello Steve,
  
  The problem you are running into is known, resolved but not merged into 
  the cvs tree yet. I've already send a diff script which resolves
  hypenation 
  problems within LineArea to fop-dev one week ago. I've attached the diff
 
  script.
 
 This patch is committed.
 It seems to have fixed a problem with text with wrap-option of no-wrap?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net



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




[Patch the 2nd] bugs with hyphenation

2001-08-31 Thread Enrico Schnepel

As I have said I created a testfile for a realy seldom situation: a non 
letter character before a word with hyphens in the word... the patch is also 
included.

The testfile also includes a demonstration for some other bugs with 
hyphenation but I don't know how to resolve them.

 There is a problem with small table-columns and hypenation if the word
 starts with a '' or a '/'. I hope I have time to create a testfile and
 send it and the patch this evening because I will be on holiday next week.
 this bug caused an infinite loop and kept me from from rendering a 3,5 MB
 document. The html version of the candidate recommendation of the fo
 specification converted to fo using html2fo. the 279 page pdf is available
 at http://html2fo.sourceforge.net/xslspec.pdf. rendering it was something
 like a stress test ;-)

Enrico


?xml version=1.0 encoding=ISO-8859-1 ?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		fo:simple-page-master master-name=first
   margin-top=1cm
   margin-left=1cm
   margin-right=1cm
   margin-bottom=1cm
   page-width=21cm
   page-height=29.7cm
			fo:region-body/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-name=first language=en hyphenate=true
		fo:flow flow-name=xsl-region-body
fo:block
	1. The first cell causes an infinite loop if there is a incorrect hyphenation function. With patch the result is still not correct but it runs through.
/fo:block
fo:block
2. The second cell is to show how special chars handleld with hypenation.
/fo:block
fo:block
3. The third cell is to demonstrate the inlinespace before the first hyphenated word in line.
/fo:block
fo:block
4. cell 1 and 3 should contain completly underlined blue text.
/fo:block
fo:block
4.1. within the first cell both properies are specified for lt;fo:inlinegt;.
The addWord function should set the underlined property.
/fo:block
fo:block
4.2. within the third cell both properies are specified for lt;fo:blockgt;.
The underlined property is not handled.
/fo:block
fo:table
fo:table-column column-width=3.5cm/
fo:table-body
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block
	fo:inline text-decoration=underline color=bluebeginning test-text-for-filling-three-lines/fo:inline
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block
	lt;testtextgt; lt;testtextgt; - lt;testtextgt; - lt;testtextgt; - lt;testtextgt;
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block font-size=14pt text-decoration=underline color=blue
 	   LongTextLongText LongTextLongText LongTextLongText LongTextLongText
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
fo:block
	The following table has the same content but full page width.
/fo:block
fo:table
fo:table-column column-width=19cm/
fo:table-body
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block
	fo:inline text-decoration=underline color=bluebeginning test-text-for-filling-three-lines/fo:inline
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block
	lt;testtextgt; lt;testtextgt; - lt;testtextgt; - lt;testtextgt; - lt;testtextgt;
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell border-width=1pt border-style=solid
fo:block font-size=14pt text-decoration=underline 

fop special character help!

2001-08-31 Thread Amy Weiss

Hi

I am a developer and I am trying to use fop (apache) to generate pdf from my
xsl file and xml file.  I need to know what font are supported by fop and
how I can print special characters.  For instance, I want to have an a with
an accent mark over it in the pdf.  I was just using the ascii value and
that worked fine, but now I also need to display korean, japanese, and
chinese characters in the pdf.  I don't want to find and type the ascii
value into the xsl and fop isn't recognizing them anyways.  My Adobe
supports these fonts but I am unable to find any way to put these characters
into the xsl file and have the fop turn them into pdf.

Please Help!

Amy Weiss

Yahoo! Inc.
Technical Yahoo!
701 First Avenue
Sunnyvale, CA 94089
Phone: 408-349-6232
Email: [EMAIL PROTECTED]



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