Discussion:
FOP, hypenation. How to compile hyph pattern? my own
lexa2009
2010-04-23 11:16:10 UTC
Permalink
Hi, i make such pattern file:
<hyphenation-info>
<hyphen-char value="-"/>
<hyphen-char value="="/>
<hyphen-char value="+"/>
<hyphen-char value=","/>
<hyphen-char value="."/>
<hyphen-min before="3" after="2"/>
</hyphenation-info>

how to make fop work with it? i can not understand how to use ant for
building it to fop format.
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28340019.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Simon Pepping
2010-04-23 14:33:01 UTC
Permalink
The command is: ant compile-hyphenation

You need to tell ant where your pattern directory is, by defining the
variable user.hyph.dir. You can do this in the file
build-local.properties in the fop directory, as follows:

user.hyph.dir=/path/to/your/directory/with/pattern/files,
e.g. user.hyph.dir=/home/lexa2009/fop/patterns, or
user.hyph.dir=C:\fop\patterns.

You can have only one hyphenation character and therefore only one
hyphen-char element. Your pattern file has no hyphenation patterns,
and therefore there will be no hyphenations in your texts. Then the
hyphenation character has no use.

Simon
Post by lexa2009
<hyphenation-info>
<hyphen-char value="-"/>
<hyphen-char value="="/>
<hyphen-char value="+"/>
<hyphen-char value=","/>
<hyphen-char value="."/>
<hyphen-min before="3" after="2"/>
</hyphenation-info>
how to make fop work with it? i can not understand how to use ant for
building it to fop format.
--
Simon Pepping
home page: http://www.leverkruid.eu
lexa2009
2010-04-29 09:58:05 UTC
Permalink
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>

when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error

Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml

BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".

Total time: 0 seconds

i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in the
project "null".?
i have to write build.xml by myself?
thx!
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Peter Hancock
2010-04-29 10:49:30 UTC
Permalink
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.

Pete
Post by lexa2009
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>
when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in the
project "null".?
i have to write build.xml by myself?
thx!
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
lexa2009
2010-04-29 11:08:00 UTC
Permalink
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml

BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".

Total time: 0 seconds
Post by Peter Hancock
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.
Pete
Post by lexa2009
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>
when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in the
project "null".?
i have to write build.xml by myself?
thx!
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Peter Hancock
2010-04-29 12:13:16 UTC
Permalink
Hi,
Googling lead me to the suggestion that you need JAVA_HOME to point to the
jdk, not the jre. see http://forums.sun.com/thread.jspa?threadID=757039

Pete
Post by lexa2009
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
Post by Peter Hancock
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.
Pete
Post by lexa2009
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>
when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in the
project "null".?
i have to write build.xml by myself?
thx!
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Post by Peter Hancock
Post by lexa2009
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
lexa2009
2010-04-29 13:59:08 UTC
Permalink
hihi, thx.
u think problem in this? it is only warning. on some forum i read that it
does not metter when create hyph.

what must be in build.xml ?? i really do not know what to write in it.
Post by Peter Hancock
Hi,
Googling lead me to the suggestion that you need JAVA_HOME to point to the
jdk, not the jre. see http://forums.sun.com/thread.jspa?threadID=757039
Pete
Post by lexa2009
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
Post by Peter Hancock
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.
Pete
Post by lexa2009
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>
when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do
not
Post by Peter Hancock
Post by lexa2009
need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in the
project "null".?
i have to write build.xml by myself?
thx!
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Post by Peter Hancock
Post by lexa2009
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28400915.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Peter Hancock
2010-04-29 14:44:48 UTC
Permalink
You should have and use the standard build.xml that shipped with fox. The
target 'compile-hyphenation' is defined in this. See Simon's post for where
to go from here.
Post by lexa2009
hihi, thx.
u think problem in this? it is only warning. on some forum i read that it
does not metter when create hyph.
what must be in build.xml ?? i really do not know what to write in it.
Post by Peter Hancock
Hi,
Googling lead me to the suggestion that you need JAVA_HOME to point to
the
Post by Peter Hancock
jdk, not the jre. see http://forums.sun.com/thread.jspa?threadID=757039
Pete
Post by lexa2009
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
Post by Peter Hancock
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.
Pete
Post by lexa2009
Hi! Thx a lot, i change my pattern file for this (for example)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
<hyphenation-info>
<hyphen-min before="2" after="3"/>
<patterns>
-->
+5a
a5+
+5b
b5+
</patterns>
</hyphenation-info>
when i try to compile it( in cmd i go to ant/bin and write ant.bat
compile-hyphenation i have an error
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: C:\ant\bin\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
i use google and fing that i can ignore Unable to locate tools.jar. Expected
to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do
not
Post by Peter Hancock
Post by lexa2009
need
it for my task.
but what to do with Target "compile-hyphenation" does not exist in
the
Post by Peter Hancock
Post by lexa2009
Post by Peter Hancock
Post by lexa2009
project "null".?
i have to write build.xml by myself?
thx!
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.html
Post by Peter Hancock
Post by lexa2009
Post by Peter Hancock
Post by lexa2009
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.html
Post by Peter Hancock
Post by lexa2009
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28400915.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Simon Pepping
2010-04-29 18:29:42 UTC
Permalink
There is indeed nothing wrong with build.xml; target
'compile-hyphenation' is defined. However, your error message says:
project "null". That is definitely not good, and shows that your ant
installation does not work properly. The project is fop, and is also
defined in build.xml.

In principle you can compile the hyphenation patterns without ant. Run
java with org.apache.fop.hyphenation.SerializeHyphPattern as the main
class; arguments are the directory with patterns and the target
directory for storing the compiled hyphenation files. The class path
should be the same as for a normal fop run. But this seems more
complicated than using ant.

Regards, Simon
Post by Peter Hancock
You should have and use the standard build.xml that shipped with fox. The
target 'compile-hyphenation' is defined in this. See Simon's post for where
to go from here.
Post by lexa2009
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
--
Simon Pepping
home page: http://www.leverkruid.eu
lexa2009
2010-04-30 07:38:08 UTC
Permalink
i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write C:\fop-0.95>ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed

i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.

i google and find that tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?
Post by Simon Pepping
There is indeed nothing wrong with build.xml; target
project "null". That is definitely not good, and shows that your ant
installation does not work properly. The project is fop, and is also
defined in build.xml.
In principle you can compile the hyphenation patterns without ant. Run
java with org.apache.fop.hyphenation.SerializeHyphPattern as the main
class; arguments are the directory with patterns and the target
directory for storing the compiled hyphenation files. The class path
should be the same as for a normal fop run. But this seems more
complicated than using ant.
Regards, Simon
Post by Peter Hancock
You should have and use the standard build.xml that shipped with fox.
The
target 'compile-hyphenation' is defined in this. See Simon's post for where
to go from here.
Post by lexa2009
done. now i use it from fop directory but have the same output -
C:\fop-0.95>ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\fop-0.95\build.xml
BUILD FAILED
Target "compile-hyphenation" does not exist in the project "null".
Total time: 0 seconds
--
Simon Pepping
home page: http://www.leverkruid.eu
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28409369.html
Sent from the FOP - Users mailing list archive at Nabble.com.
J.Pietschmann
2010-04-30 14:59:01 UTC
Permalink
Post by lexa2009
i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write C:\fop-0.95>ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.
i google and find that tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?
The error messages comes from ant which tries to load its built-in
tasks, and some of them use tools.jar from the JDK.
Either get a full JDK and point the JAVA_HOME there rather than to a
JRE, or use command line based on the following in your FOP directory:
java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern hyph hyph-dest
Undo the linebreak, maybe adjust the directory and filename of the
FOP jar, and you may also have to change the "java" command into
"jre" depending on what you have installed. The "hyph" is the directory
your hyphenation pattern file is in. If you get errors about missing
classes, guess and add the appropriate jar which should be in the lib/
directory (I can't test this right now).

J.Pietschmann
Lucian Opris
2010-05-04 13:16:43 UTC
Permalink
Hi,
Could someone please let me know why webdings and windings symbols contained
into a svg are not showing fine in the PDF? Actually I got on error saying :
Created transformer (ClientThreadFOP95.java:895)
(Location of error unknown)java.lang.RuntimeException: TrueType font
is not supported: file:///nas/web/fonts/webdings.ttf

This is what I have in fop95.xconf

<directory recursive="true">/nas/web/fonts</directory>
<auto-detect/>
<use-cache>true</use-cache>

<font kerning="yes" embed-url="file:///nas/web/fonts/webdings.ttf">
<font-triplet name="Webdings" style="normal" weight="normal"/>
</font>

<font kerning="yes" embed-url="file:///nas/web/fonts/wingding.ttf">
<font-triplet name="Wingdings" style="normal" weight="normal"/>
</font>

<font kerning="yes" embed-url="file:///nas/web/fonts/WINGDNG2.TTF">
<font-triplet name="Wingdings2" style="normal" weight="normal"/>
</font>

Thanks
Lucian Opris
Venkat Reddy
2010-05-04 13:45:19 UTC
Permalink
Hi,

I hope, you are getting this problem with FOP 0.95 version.

have you tried with FOPTrunk version? There are so much of functional
changes in this area added into trunk version.

Please try with the trunk version and see if you are able to solve this
problem..

Venkat.
Post by Lucian Opris
Hi,
Could someone please let me know why webdings and windings symbols contained
Created transformer (ClientThreadFOP95.java:895)
(Location of error unknown)java.lang.RuntimeException: TrueType font
is not supported: file:///nas/web/fonts/webdings.ttf
This is what I have in fop95.xconf
<directory recursive="true">/nas/web/fonts</directory>
<auto-detect/>
<use-cache>true</use-cache>
<font kerning="yes" embed-url="file:///nas/web/fonts/webdings.ttf">
<font-triplet name="Webdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/wingding.ttf">
<font-triplet name="Wingdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/WINGDNG2.TTF">
<font-triplet name="Wingdings2" style="normal" weight="normal"/>
</font>
Thanks
Lucian Opris
---------------------------------------------------------------------
Lucian Opris
2010-05-04 14:16:10 UTC
Permalink
Hi,
Yes, that's correct I got this error with fop0.95. I don't think I have to
test on trunk- I need to have it work in 2 days.
I've even tried to create the xml metric file and it failed.
java -classpath
build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar:l
ib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/wingding.ttf
/nas/web/fonts/wingding.xml
TTF Reader for Apache FOP 0.95

Parsing font...
Reading /nas/web/fonts/wingding.ttf...
Unsupported TrueType font: Unicode cmap table not present. Aborting

Is there out a commercial version which would work? Like type 1 version.

Thanks
Lucian Opris

-----Original Message-----
From: Venkat Reddy [mailto:***@googlemail.com]
Sent: Tuesday, May 04, 2010 9:45 AM
To: fop-***@xmlgraphics.apache.org
Subject: Re: Wingdings, WINDINGS 2 WINGDINGS 3 and webdings

Hi,

I hope, you are getting this problem with FOP 0.95 version.

have you tried with FOPTrunk version? There are so much of functional
changes in this area added into trunk version.

Please try with the trunk version and see if you are able to solve this
problem..

Venkat.
Post by Lucian Opris
Hi,
Could someone please let me know why webdings and windings symbols contained
Created transformer (ClientThreadFOP95.java:895)
(Location of error unknown)java.lang.RuntimeException: TrueType font
is not supported: file:///nas/web/fonts/webdings.ttf
This is what I have in fop95.xconf
<directory recursive="true">/nas/web/fonts</directory>
<auto-detect/>
<use-cache>true</use-cache>
<font kerning="yes" embed-url="file:///nas/web/fonts/webdings.ttf">
<font-triplet name="Webdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/wingding.ttf">
<font-triplet name="Wingdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/WINGDNG2.TTF">
<font-triplet name="Wingdings2" style="normal" weight="normal"/>
</font>
Thanks
Lucian Opris
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-***@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-***@xmlgraphics.apache.org
Chris Bowditch
2010-05-04 14:36:28 UTC
Permalink
Post by Lucian Opris
Hi,
Hi Lucian,
Post by Lucian Opris
Yes, that's correct I got this error with fop0.95. I don't think I have to
test on trunk- I need to have it work in 2 days.
Of course, you don't *have* to do anything. However, we believe it will
work with the trunk version so why not try it? You will be able to
download and compile it in less than 2 days.
Post by Lucian Opris
I've even tried to create the xml metric file and it failed.
java -classpath
build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar:l
ib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/wingding.ttf
/nas/web/fonts/wingding.xml
TTF Reader for Apache FOP 0.95
Parsing font...
Reading /nas/web/fonts/wingding.ttf...
Unsupported TrueType font: Unicode cmap table not present. Aborting
Yes that error is to be expected in FOP 0.95 whether creating metrics or
using the font without metrics will result in the same problem: No CMAP
table.
Post by Lucian Opris
Is there out a commercial version which would work? Like type 1 version.
wingding.ttf is a commercial font supplied by Microsoft. If you need an
alternative version you will need to speak to a font provider, but if
they don't have an off the shelf solution it will take more than 2 days
to develop the font.

Thanks,

Chris
Post by Lucian Opris
Thanks
Lucian Opris
-----Original Message-----
Sent: Tuesday, May 04, 2010 9:45 AM
Subject: Re: Wingdings, WINDINGS 2 WINGDINGS 3 and webdings
Hi,
I hope, you are getting this problem with FOP 0.95 version.
have you tried with FOPTrunk version? There are so much of functional
changes in this area added into trunk version.
Please try with the trunk version and see if you are able to solve this
problem..
Venkat.
Post by Lucian Opris
Hi,
Could someone please let me know why webdings and windings symbols
contained
Post by Lucian Opris
into a svg are not showing fine in the PDF? Actually I got on error saying
Created transformer (ClientThreadFOP95.java:895)
(Location of error unknown)java.lang.RuntimeException: TrueType
font
Post by Lucian Opris
is not supported: file:///nas/web/fonts/webdings.ttf
This is what I have in fop95.xconf
<directory recursive="true">/nas/web/fonts</directory>
<auto-detect/>
<use-cache>true</use-cache>
<font kerning="yes" embed-url="file:///nas/web/fonts/webdings.ttf">
<font-triplet name="Webdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/wingding.ttf">
<font-triplet name="Wingdings" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///nas/web/fonts/WINGDNG2.TTF">
<font-triplet name="Wingdings2" style="normal" weight="normal"/>
</font>
Thanks
Lucian Opris
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Chris Bowditch
2010-05-04 14:19:06 UTC
Permalink
Post by Lucian Opris
Hi,
Hi Lucian,
Post by Lucian Opris
Could someone please let me know why webdings and windings symbols contained
Created transformer (ClientThreadFOP95.java:895)
(Location of error unknown)java.lang.RuntimeException: TrueType font
is not supported: file:///nas/web/fonts/webdings.ttf
FOP 0.95 and earlier only supports True Type Fonts with CMap table.
Symbol fonts such as Wingdings and Webdings do not have CMap table. Some
support for True Type Fonts without CMap tables has been added to FOP
Trunk, see the first entry at [1]

So as Venkat already suggested please download and build the trunk
version to see if your problem is resolved there.

Thanks,

Chris


[1]
http://xmlgraphics.apache.org/fop/changes.html#Changes+to+the+Font+Subsystem

<snip/>
Martin Edge
2010-05-04 14:37:56 UTC
Permalink
You can also find a font converter to convert the font into something
better like type1, just be aware there may be license implications in
doing so.

I've used transtype from fontlabs quite successfully

Martin

On 05/05/2010, at 12:19 AM, Chris Bowditch
Post by Chris Bowditch
Post by Lucian Opris
Hi,
Hi Lucian,
Post by Lucian Opris
Could someone please let me know why webdings and windings symbols contained
Created transformer (ClientThreadFOP95.java:895)
TrueType font
is not supported: file:///nas/web/fonts/webdings.ttf
FOP 0.95 and earlier only supports True Type Fonts with CMap table.
Symbol fonts such as Wingdings and Webdings do not have CMap table.
Some support for True Type Fonts without CMap tables has been added
to FOP Trunk, see the first entry at [1]
So as Venkat already suggested please download and build the trunk
version to see if your problem is resolved there.
Thanks,
Chris
[1] http://xmlgraphics.apache.org/fop/changes.html#Changes+to+the+Font+Subsystem
<snip/>
---------------------------------------------------------------------
lexa2009
2010-05-06 08:17:29 UTC
Permalink
thx! i have installed full jdk and when i write ant compile-hyphenation in
fop folder i have error about build.xml


C:\fop-0.95>ant compile-hyphenation
Buildfile: build.xml does not exist!
Build failed

if i try
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern patterns patterns
i have this output -
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apac
he.fop.hyphenation.SerializeHyphPattern patterns patterns
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/fop/hyphen
ation/SerializeHyphPattern
Caused by: java.lang.ClassNotFoundException:
org.apache.fop.hyphenation.Serializ
eHyphPattern
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class:
org.apache.fop.hyphenation.SerializeHyphPattern.
Program will exit.

what to do??
hope for you help
Post by J.Pietschmann
Post by lexa2009
i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write
C:\fop-0.95>ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.
i google and find that tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?
The error messages comes from ant which tries to load its built-in
tasks, and some of them use tools.jar from the JDK.
Either get a full JDK and point the JAVA_HOME there rather than to a
java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern hyph hyph-dest
Undo the linebreak, maybe adjust the directory and filename of the
FOP jar, and you may also have to change the "java" command into
"jre" depending on what you have installed. The "hyph" is the directory
your hyphenation pattern file is in. If you get errors about missing
classes, guess and add the appropriate jar which should be in the lib/
directory (I can't test this right now).
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28470641.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Venkat Reddy
2010-05-06 08:43:59 UTC
Permalink
FOP version 0.95 doesn't have this class

org.apache.fop.hyphenation.SerializeHyphPattern

The above class included in FOPTrunk version...

Venkat.
Post by lexa2009
thx! i have installed full jdk and when i write ant compile-hyphenation in
fop folder i have error about build.xml
C:\fop-0.95>ant compile-hyphenation
Buildfile: build.xml does not exist!
Build failed
if i try
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern patterns patterns
i have this output -
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apac
he.fop.hyphenation.SerializeHyphPattern patterns patterns
org/apache/fop/hyphen
ation/SerializeHyphPattern
org.apache.fop.hyphenation.Serializ
eHyphPattern
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
org.apache.fop.hyphenation.SerializeHyphPattern.
Program will exit.
what to do??
hope for you help
Post by J.Pietschmann
Post by lexa2009
i try Check Installation in http://ant.apache.org/manual/install.html
all work good. i go to fop.0.95 directory in cmd and write
C:\fop-0.95>ant
ant compile-hyphenation
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
i have this error. last post i use my own build.xml which i find in fop
directory. it was my mistake.
i google and find that tools.jar do not need for hyph, so i can ignore this
message. but why i have error Buildfile: build.xml does not exist! ?
The error messages comes from ant which tries to load its built-in
tasks, and some of them use tools.jar from the JDK.
Either get a full JDK and point the JAVA_HOME there rather than to a
java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern hyph hyph-dest
Undo the linebreak, maybe adjust the directory and filename of the
FOP jar, and you may also have to change the "java" command into
"jre" depending on what you have installed. The "hyph" is the directory
your hyphenation pattern file is in. If you get errors about missing
classes, guess and add the appropriate jar which should be in the lib/
directory (I can't test this right now).
J.Pietschmann
---------------------------------------------------------------------
lexa2009
2010-06-08 12:56:44 UTC
Permalink
hello. i download fop-0.95 src and now i can compile hyp.
a make su.xml and place it in fop_dir\hyph
it contains
<?xml version="1.0" encoding="UTF-8"?>
<hyphenation-info>
<hyphen-min before="0" after="0"/>
<patterns> <!-- just type <return> if you're not using INITEX
-->
m5o
mot5her
mo5ther
moth5er
m5
<!-- end of additional patterns.
--></patterns>
</hyphenation-info>

than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
hyph
i have xsl-fo with this block
<fo:block text-indent="0.5cm" hyphenate="true" language="en">
mothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermothermother
</fo:block>
but it do not work. what i do wrong?
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28817469.html
Sent from the FOP - Users mailing list archive at Nabble.com.
J.Pietschmann
2010-06-09 18:50:29 UTC
Permalink
Post by lexa2009
, so i have su.hyp in fop_dir\build\classes\hyph
...
Post by lexa2009
i have xsl-fo with this block
<fo:block text-indent="0.5cm" hyphenate="true" language="en">
If your hyphenation file is named su.hyph, you should try
language="su"
instead (even though 'su' isn't a valid ISO language code).
Have a look at the hyph/readme file.

J.Pietschmann
lexa2009
2010-06-09 20:11:22 UTC
Permalink
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
Post by J.Pietschmann
Post by lexa2009
, so i have su.hyp in fop_dir\build\classes\hyph
...
Post by lexa2009
i have xsl-fo with this block
<fo:block text-indent="0.5cm" hyphenate="true" language="en">
If your hyphenation file is named su.hyph, you should try
language="su"
instead (even though 'su' isn't a valid ISO language code).
Have a look at the hyph/readme file.
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28835277.html
Sent from the FOP - Users mailing list archive at Nabble.com.
J.Pietschmann
2010-06-09 21:31:00 UTC
Permalink
Post by lexa2009
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
The 'ant jar-hyphenation' gets the *.hyp files from
fop_dir\build\classes\hyph, if you moved the su.hyp file, the
jar could be empty, check whether the hyp file is in
the jar (use jar -tvf fop-hyph.jar).

J.Pietschmann
lexa2009
2010-06-11 06:13:30 UTC
Permalink
thx, i try.
C:\...\fop-0.95\build>jar -tvf fop-hyph.
jar
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp

here is it..
Post by J.Pietschmann
Post by lexa2009
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
The 'ant jar-hyphenation' gets the *.hyp files from
fop_dir\build\classes\hyph, if you moved the su.hyp file, the
jar could be empty, check whether the hyp file is in
the jar (use jar -tvf fop-hyph.jar).
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28851635.html
Sent from the FOP - Users mailing list archive at Nabble.com.
lexa2009
2010-06-11 06:30:37 UTC
Permalink
Post by lexa2009
thx, i try.
C:\...\fop-0.95\build>jar -tvf fop-hyph.
jar
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
here it is..
in lib the same result
C:\...\fop-0.95\lib>jar -tvf fop-hyph.ja
r
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
Post by J.Pietschmann
Post by lexa2009
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
The 'ant jar-hyphenation' gets the *.hyp files from
fop_dir\build\classes\hyph, if you moved the su.hyp file, the
jar could be empty, check whether the hyp file is in
the jar (use jar -tvf fop-hyph.jar).
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28851711.html
Sent from the FOP - Users mailing list archive at Nabble.com.
lexa2009
2010-06-18 08:02:46 UTC
Permalink
any idias? what i do wrong? can u write full path of obtaining pattern and
making document?
Post by lexa2009
thx, i try.
C:\...\fop-0.95\build>jar -tvf fop-hyph.
jar
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
here it is..
in lib the same result
C:\...\fop-0.95\lib>jar -tvf fop-hyph.ja
r
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
Post by J.Pietschmann
Post by lexa2009
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
The 'ant jar-hyphenation' gets the *.hyp files from
fop_dir\build\classes\hyph, if you moved the su.hyp file, the
jar could be empty, check whether the hyp file is in
the jar (use jar -tvf fop-hyph.jar).
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28922579.html
Sent from the FOP - Users mailing list archive at Nabble.com.
lexa2009
2010-06-18 08:02:45 UTC
Permalink
any idias? what i do wrong? can u write full path of obtaining pattern and
making document?
Post by lexa2009
thx, i try.
C:\...\fop-0.95\build>jar -tvf fop-hyph.
jar
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
here it is..
in lib the same result
C:\...\fop-0.95\lib>jar -tvf fop-hyph.ja
r
0 Tue Jun 08 16:39:18 MSD 2010 META-INF/
349 Tue Jun 08 16:39:16 MSD 2010 META-INF/MANIFEST.MF
0 Tue Jun 08 16:33:30 MSD 2010 hyph/
2593 Tue Jun 08 16:33:30 MSD 2010 hyph/bu.hyp
43808 Tue Jun 08 16:33:30 MSD 2010 hyph/en.hyp
2593 Tue Jun 08 16:02:00 MSD 2010 hyph/su.hyp
Post by J.Pietschmann
Post by lexa2009
ops, i am sorry. i use language="su", but do not work. i test also with
english standart hyph pattern(en.hyph), but it also do not work. here was my
mistake that i type "en" instead of "su"
than i use
Post by Simon Pepping
ant compile-hyphenation
, so i have su.hyp in fop_dir\build\classes\hyph
i put this file to fop_dir\hyph and use
Post by Simon Pepping
ant jar-hyphenation
so i have fop-hyph.jar in fop_dir\build, i place it to fop_dir\lib and try
The 'ant jar-hyphenation' gets the *.hyp files from
fop_dir\build\classes\hyph, if you moved the su.hyp file, the
jar could be empty, check whether the hyp file is in
the jar (use jar -tvf fop-hyph.jar).
J.Pietschmann
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28922578.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Loading...