8 Mar 20:16
jEuclid-problem
From: Thomas Zastrow <listen <at> thomas-zastrow.de>
Subject: jEuclid-problem
Newsgroups: gmane.text.xml.fop.user
Date: 2007-03-08 19:17:35 GMT
Subject: jEuclid-problem
Newsgroups: gmane.text.xml.fop.user
Date: 2007-03-08 19:17:35 GMT
Hi there,
for my little project, I tried to add mathml-support to my FOP. So, as
described in fop-0.93/examples/mathml/README, I downloaded jEuclid and
copied the Jar-file (jeuclid-2.9.4.jar) as jeuclid.jar into FOP's
lib-directory.
Then - please be patient, I never used ant before - I downloaded ant and
then in the mathml-directory of FOP:
../../../ant/apache-ant-1.7.0/bin/ant -buildfile build.xml
It started to do something, but then the process failed:
----------------------------------------------------------------
Buildfile: build.xml
init:
[echo] ------------------- MathML-FOP 0.1-CVS [2002-2004]
----------------
jeuclid-check:
prepare:
[echo] Preparing the build directories
[mkdir] Created dir: /home/zastrow/fop/fop-0.93/examples/mathml/build
[mkdir] Created dir:
/home/zastrow/fop/fop-0.93/examples/mathml/build/src
[mkdir] Created dir:
(Continue reading)
You're welcome, of course.
> I'm not sure if I can help something, I have some Java-experience
> but don't want to mess up other's work.
If you really want to help, all that needs to be changed/updated is
the class org.apache.fop.mathml.MathMLElement (located in examples/
mathml/src, to restore compatibility with the latest JEuclid.
It only seems that JEuclid, in one of the last releases, has begun
targeting Java 1.5 as a minimum. I can't say for sure whether no
other problems will arise. FOP and Batik both still have a minimal
target JVM of 1.3 (release FOP 0.93 / Batik 1.6). For FOP this should
be 1.4 by the next release. This means we can't use Java 1.5 features
like generics or typesafe enums internally in FOP, and I'm not sure
whether the MathBase constructor will accept a standard Map, which
would resolve to:
Map<Object, Object>
If this latter issue is only minor, and the updated MathBase
constructor also accepts non-generic Maps, then updating the
extension should prove to be a cake-walk. If the issue cannot be
RSS Feed