Commit Graph

299 Commits

Author SHA1 Message Date
Manuel Mall
892999d417 Added support for leader with pattern "use-content" and recovered a previously lost 1mpt due to rounding
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@312604 13f79535-47bb-0310-9956-ffa450edef68
2005-10-10 10:22:05 +00:00
Jeremias Maerki
70c04b72d7 Test case for wrap-option on fo:block.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307092 13f79535-47bb-0310-9956-ffa450edef68
2005-10-07 11:56:05 +00:00
Manuel Mall
58dcf55c95 Update to support border and padding and alignments on inline fos
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307055 13f79535-47bb-0310-9956-ffa450edef68
2005-10-07 08:55:22 +00:00
Manuel Mall
7dab077c58 more test images for layout engine tests
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307038 13f79535-47bb-0310-9956-ffa450edef68
2005-10-07 07:16:52 +00:00
Jeremias Maerki
1a22c6397f Test case for showing a problem with the Knuth algorithm.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@295059 13f79535-47bb-0310-9956-ffa450edef68
2005-10-05 18:04:59 +00:00
Andreas L. Delmelle
b4af6a848e Added simple testcase for indefinite page-height
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291400 13f79535-47bb-0310-9956-ffa450edef68
2005-09-25 11:49:23 +00:00
Andreas L. Delmelle
8515f6c780 Added check for both page-height and page-width set to indefinite; use fallback (auto) for the appropriate one
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291351 13f79535-47bb-0310-9956-ffa450edef68
2005-09-24 23:55:41 +00:00
Andreas L. Delmelle
0fe96db894 Added custom Maker for page-height and page-width; use fallback values in case value is auto
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291338 13f79535-47bb-0310-9956-ffa450edef68
2005-09-24 22:00:02 +00:00
Andreas L. Delmelle
88ed6ff20d Added fallback for specified negative or zero for column-number
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290736 13f79535-47bb-0310-9956-ffa450edef68
2005-09-21 16:25:57 +00:00
Andreas L. Delmelle
98ca4b5522 Update for initial-values of column-number + some pending style-violation corrections
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290540 13f79535-47bb-0310-9956-ffa450edef68
2005-09-20 19:29:31 +00:00
Andreas L. Delmelle
155bd7c999 Update of FOTree testcases for column-number property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289867 13f79535-47bb-0310-9956-ffa450edef68
2005-09-18 00:02:35 +00:00
Andreas L. Delmelle
5ae94fdda6 Update of FOTree testcases for column-number property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289866 13f79535-47bb-0310-9956-ffa450edef68
2005-09-18 00:00:18 +00:00
Jeremias Maerki
c88a9cc1cc Bugfix: Lengths evaluated through percentages evaluated to zero in side-regions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289426 13f79535-47bb-0310-9956-ffa450edef68
2005-09-16 08:10:59 +00:00
Chris Bowditch
e6372ef276 expected table width was incorrect and now fails due to table width calculation being corrected by Jeremias' last change. I have corrected the expected width
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289270 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 15:58:39 +00:00
Jeremias Maerki
7d9bddafd8 Test case showing a bug with table width determination.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289242 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 14:27:54 +00:00
Andreas L. Delmelle
bfb9c6bd90 Slight modification to layout testcase to make initial values for column-number work
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289200 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 10:56:23 +00:00
Andreas L. Delmelle
d129791c9e Disabled testcase for column-number property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289199 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 10:53:21 +00:00
Andreas L. Delmelle
4175ecb709 Simple testcase for initial value of column-number -- tables without explicit rows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289195 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 10:35:07 +00:00
Andreas L. Delmelle
dc3d8b9a84 Added line-/column-number output for easier tracing of errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280971 13f79535-47bb-0310-9956-ffa450edef68
2005-09-14 23:51:14 +00:00
Andreas L. Delmelle
f9467d7fcf Disabled test for column-number -- initial values unimplemented for the moment
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280969 13f79535-47bb-0310-9956-ffa450edef68
2005-09-14 23:49:21 +00:00
Andreas L. Delmelle
ed61449fc7 Simple testcase for initial value of column-number -- tables with explicit rows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280968 13f79535-47bb-0310-9956-ffa450edef68
2005-09-14 23:48:07 +00:00
Jeremias Maerki
4c0baf717b Ouch. The penalties are completely wrong if a higher-level block defines non-conditional padding.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280872 13f79535-47bb-0310-9956-ffa450edef68
2005-09-14 15:02:24 +00:00
Finn Bock
9f1150e3be Run the checks on the parent's propertyList.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280608 13f79535-47bb-0310-9956-ffa450edef68
2005-09-13 17:57:58 +00:00
Chris Bowditch
4b394ea90d disabled Border conditionality test on tables as it isn't implemented yet
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280529 13f79535-47bb-0310-9956-ffa450edef68
2005-09-13 09:52:38 +00:00
Chris Bowditch
bf31084f9f Added Test case for Border Conditionality on fo:table
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280527 13f79535-47bb-0310-9956-ffa450edef68
2005-09-13 09:50:36 +00:00
Finn Bock
1788fd470c Enabled fotree junit tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280298 13f79535-47bb-0310-9956-ffa450edef68
2005-09-12 09:08:52 +00:00
Jeremias Maerki
1b6a5e32c9 Implemented the example under 4.3.1 Space-resolution Rules as a test case. Test fails.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279733 13f79535-47bb-0310-9956-ffa450edef68
2005-09-09 08:49:46 +00:00
Luca Furini
db5e586f80 Removing trailing spaces at the end of text areas: this is done by storing the Position, whose value points to the AreaInfo created for a space, inside the glue element that is ignored if there is a line break.
This fixes item 2) in bug 36533.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279551 13f79535-47bb-0310-9956-ffa450edef68
2005-09-08 10:47:57 +00:00
Jeremias Maerki
c6cb98b668 Bugzilla #36505:
Several fixes for SVG painting in the Java2DRenderer.
Updated SVG test case to test additional features.
Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk>

Comments and changes by jeremias:
Added an additional SVG image with an intrinsic size and modified the test case to use and test that, too.
I'll commit this patch because it improves the current situation but I'm not happy with the current state of Java2DRenderer.renderSVGDocument(). Creating inverse transformation matrices is surely not the right way to do this. The matrix should be saved and restored instead.
Furthermore, renderSVGDocument should be extracted into a Java2DSVGHandler like it is done for the other renderers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278966 13f79535-47bb-0310-9956-ffa450edef68
2005-09-06 10:18:58 +00:00
Jeremias Maerki
0cddabfebd Renamed test cases to avoid filename problems under Unix.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278754 13f79535-47bb-0310-9956-ffa450edef68
2005-09-05 14:37:50 +00:00
Jeremias Maerki
2daf206227 Renamed test cases to avoid filename problems under Unix.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278753 13f79535-47bb-0310-9956-ffa450edef68
2005-09-05 14:36:56 +00:00
Jeremias Maerki
6851da4022 Bugzilla #36487:
Forgot to remove the two test cases Manuel indicated.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278699 13f79535-47bb-0310-9956-ffa450edef68
2005-09-05 09:17:38 +00:00
Jeremias Maerki
cdd9881066 Bugzilla #36487:
Background images were incorrectly positioned in some absolute positioned blocks.
Some additional attributes output by the XMLRenderer.
Refactored the layout for e-g and i-f-o. Introduced common base classes for the
corresponding flow objects as well as the e-g and i-f-o LMs.
Fixed incorrectly applied margins on region-body when writing mode is not lr.
Fixed application of correct percent base for margins and extents on regions
when the reference orientation is 90 degrees.
Fixed incorrectly positioned regions when writing mode is different between the
simple-page-master setting and the setting on the region.
Several updates to the layout engine test cases.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278690 13f79535-47bb-0310-9956-ffa450edef68
2005-09-05 08:09:42 +00:00
Jeremias Maerki
47960eaad3 Resurrected overwritten test case external-graphic4.xml under a different name.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265747 13f79535-47bb-0310-9956-ffa450edef68
2005-09-01 15:57:03 +00:00
Jeremias Maerki
93341b9c8b Bugzilla #36460 (second part):
Renamed all test cases to more speaking names.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265720 13f79535-47bb-0310-9956-ffa450edef68
2005-09-01 13:29:28 +00:00
Jeremias Maerki
243ec46c26 Bugzilla #36460 (first part):
Some minor cleanup and two bigger revamps of two cases. (Forgot the new image.)
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265713 13f79535-47bb-0310-9956-ffa450edef68
2005-09-01 13:03:17 +00:00
Jeremias Maerki
54a687b99e Bugzilla #36460 (first part):
Some minor cleanup and two bigger revamps of two cases
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265711 13f79535-47bb-0310-9956-ffa450edef68
2005-09-01 12:51:47 +00:00
Jeremias Maerki
f9400f8255 PDFNumber.doubleOut() rewritten using java.text.DecimalFormat.
This fixes a bug of doubleOut() not recognizing the scientific format sometimes returned by Double.toString(double).
This change may result in slightly different value being written to the PDF stream. The former doubleOut contained specific code to do special rounding where the new method using DecimalFormat implicitly uses the BigDecimal.ROUND_HALF_EVEN strategy when rounding. These different values hopefully won't make a big visual difference. They don't in my tests.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265688 13f79535-47bb-0310-9956-ffa450edef68
2005-09-01 10:06:53 +00:00
Finn Bock
8cad88a3e3 Bugzilla #36379:
Revised percentage resolution system.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

Slightly modified to avoid early evaluation of getValue().




git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265577 13f79535-47bb-0310-9956-ffa450edef68
2005-08-31 20:29:33 +00:00
Jeremias Maerki
6af5e0e866 Test case for squeezing an oversized image into a page. Currently fails because min/opt/max mechanisms currently ignored by the EGLM.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265051 13f79535-47bb-0310-9956-ffa450edef68
2005-08-31 14:32:59 +00:00
Jeremias Maerki
48ca43af19 normal-breaking6 shows problems with breaking in narrow environments.
keep-together-inline1 documents that keep-together.within-line doesn't work, yet.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264822 13f79535-47bb-0310-9956-ffa450edef68
2005-08-30 18:14:39 +00:00
Jeremias Maerki
ea32759dc9 Fix for text-align2.xml (for real now). The alignment used to set up the element list was not properly determined.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264797 13f79535-47bb-0310-9956-ffa450edef68
2005-08-30 15:35:37 +00:00
Jeremias Maerki
b70f1643d0 Hmm, seems like my fix was not enough. Now, it simply crashes due to a different case. Not sure how to solve this, yet.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264789 13f79535-47bb-0310-9956-ffa450edef68
2005-08-30 14:36:55 +00:00
Jeremias Maerki
36447fe8c8 Some tests for text-align (not comprehensive!).
text-align2 test for a special constellation which currently results in a ClassPathException.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264771 13f79535-47bb-0310-9956-ffa450edef68
2005-08-30 12:54:59 +00:00
Jeremias Maerki
1733b33dbb Initial commit for a FO tree testing facility.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264709 13f79535-47bb-0310-9956-ffa450edef68
2005-08-30 06:09:14 +00:00
Jeremias Maerki
96e8a153ae Background trait's toString() streamlined. Test cases adjusted accordingly.
Test cases without checks will fail from now on!!!
Checks for certain test cases and the others are added to the disabled list.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264120 13f79535-47bb-0310-9956-ffa450edef68
2005-08-29 12:03:27 +00:00
Jeremias Maerki
e15c02ae2f Bugzilla #36396:
More test cases for background images.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264118 13f79535-47bb-0310-9956-ffa450edef68
2005-08-29 12:01:13 +00:00
Jeremias Maerki
719569d8c8 Added negative reference-orientations to block-container4.
Now checking the CTMs, too
New block-container4a based on the test case submitted by Yannick Valot for Bugzilla #36391.
I had to disable block-container4a because the CTM for 180/-180 is really wrong. Comment about the defect added to the checks. There's no quick fix, but this is also low-priority for me.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240461 13f79535-47bb-0310-9956-ffa450edef68
2005-08-27 21:51:40 +00:00
Jeremias Maerki
3041bf1861 Two new config values: stop-on-exception and create-diffs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240253 13f79535-47bb-0310-9956-ffa450edef68
2005-08-26 14:53:01 +00:00
Jeremias Maerki
d87b1fe8fa Bugzilla: #36356
Test case for Bug #36356, slightly simplified by using absolute lengths instead of percentages for the margins. Checks added, too.
Submitted by: Manuel Mall <mm.at.arcus.com.au>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240219 13f79535-47bb-0310-9956-ffa450edef68
2005-08-26 12:25:43 +00:00