[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Sergiu Dumitriu wrote:
It is a bug, but an unfixable one. The problem is
that Radeox works with
regular expressions, and regular expressions are not strong enough to
capture an paragraph.
As for heading margins, I've been playing
with a rtf file with different
indentations and margins applied to headings and paragraphs. It seems to
move fine at least between Word, Pages and OpenOffice. In Mac, Suse
Linux and Windows.
As far as I see, the next step for me is to configure a developing
environment for XWiki here and learn at least how to trap at least the
two intermediary XHTMLs and the XSL-FO documents to keep track of
changes and issues.
Please, if you have any idea about how to modify heading margins,
pictures size and <p> appearance, it will be really welcome! Thanks!
We could try to use a newer version of fop and css4j. I already updated
fop in the trunk. css4j needs some testing, as the version we're using
is pretty old (0.4, compared to 0.9.1), and the API might have changed.
Thanks Sergiu. I will adjust the rtf export I've to produce now by hand
and follow this issue as close as possible!
I managed to get those margins in pdf and rtf, using the 0.95beta
release of fop (now used in the trunk). You should take into account the
different bugs css4j has (most of them are still present in the most
recent version). So, I have this working:
h2 {
margin-left: 2cm;
margin-bottom: 1cm;
color: yellow;
}
You can also use margin: 1cm; to set all 4 margins to the same length,
but you cannot use margin: 2cm 0cm 1cm; to set different values. Also,
you cannot use !important.
You just have to upgrade
http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.9…
and
http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.…
(replace the older jars in WEB-INF/libs)
I am taking land with my new responsibilities and the
new group clearly
needs XWiki :-) And this css4j/Xalan/FOP thing is a key component of its
current and future use.
One of my concerns is to establish a link between this world an a
different issue we have talked about before: TeX and related
environments (LaTeX, LyX,...). I don't know how these two worlds could
link. Even if they are different worlds or just facets of the same
topic. Or perhaps I am completely lost!
Well, TeX is different, because fop only accepts xsl-fo documents as its
input, and TeX is a standalone applications hard to combine with a Java
application directly.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/