aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Bugzilla #39443:Jeremias Maerki2006-05-071-0/+68
| | | | | | | Bugfix: Sections with span="all" lead to overlapping text if spanning multiple pages. Tables and list produced an illegal value for break class on normal breaks. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@404751 13f79535-47bb-0310-9956-ffa450edef68
* Fixed incorrect handling of percentages in vertical-align property values ↵Manuel Mall2006-05-061-7/+47
| | | | | | and added testcase git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@400279 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38243:Jeremias Maerki2006-05-031-0/+58
| | | | | | | Bugfix for NPE when there are gaps in the table-column setup. Submitted by: Gerhard Oettl <gerhard.oettl.at.oesoft.at> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@399200 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38946:Jeremias Maerki2006-05-034-29/+35
| | | | | | | First step for improved color handling. FOP's own ColorType was replaced with java.awt.Color throughout the codebase. Submitted by: Max Berger <max.at.berger.name> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@399185 13f79535-47bb-0310-9956-ffa450edef68
* Important wording correctionManuel Mall2006-05-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@398911 13f79535-47bb-0310-9956-ffa450edef68
* Added testcase which demonstrates that (or how?) linebreaking of consecutive ↵Manuel Mall2006-05-021-0/+68
| | | | | | images works. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@398909 13f79535-47bb-0310-9956-ffa450edef68
* Introduced "ignored namespaces" list on FopFactory. Attributes from ignored ↵Jeremias Maerki2006-04-282-0/+47
| | | | | | | | | | | namespaces are not complained about. Not done for elements, yet. Added support for foreign attributes (attributes in a non-FO namespace) on formatting objects, for example to specify additional (proprietary) hints for rendering i-f-o and e-g. First usage example is PCLRendererContext which the PCLGraphics2DAdapter uses to decide whether to paint natively using HP GL/2 or using a bitmap. PCL Renderer revived: Basic framework constructed based on the old one. Still incomplete (no border painting, incomplete Graphics2D implementation, problems with reference orientation, no kerning etc.). The PCL Renderer implements PCL5 (monochrome) and HP GL/2. Work in progress! Added UnitConv helper class which could also be useful elsewhere (Could be a candidate for Commons). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@397806 13f79535-47bb-0310-9956-ffa450edef68
* Previous commit of disabled-testcases.xml was brokenManuel Mall2006-04-271-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@397552 13f79535-47bb-0310-9956-ffa450edef68
* Test case for Bug 39414Manuel Mall2006-04-272-2/+1880
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@397511 13f79535-47bb-0310-9956-ffa450edef68
* Content in block-containers makes better use of shrink to fit content ↵Jeremias Maerki2006-04-251-0/+51
| | | | | | | | | | vertically into the available area. This can be used indirectly to justify content vertically in a block-container. PageBreakingAlgorithm now writes to a different logger than its base class. Makes debugging easier. Some minor logging improvements to improve clarity. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396915 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed ClassCastException when retrieve-marker is used as a direct ↵Jeremias Maerki2006-04-231-0/+53
| | | | | | | | child if static-content in which case leading and trailing white space is not properly removed. Note: This is probably more a hack than anything else, but it fixes the problem for now. If anyone has a better solution, please feel free to improve. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396256 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39118:Jeremias Maerki2006-04-235-2/+352
| | | | | | | | | | | | | Initial support for page-number-citation-last (XSL 1.1). Works without problems only for page-sequence so far. Submitted by: Pierre-Henri Kraus <phkraus.at.skynet.be> Modifications to the patch by jeremias during review: - Tab character removed - Some style fixes and javadoc enhancements - Renamed some methods in AreaTreeHandler to some more speaking names - Changed the ..._basic.xml testcase so it shows a remaining problem: Forward references are not properly resolved, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396243 13f79535-47bb-0310-9956-ffa450edef68
* Adding a test case that demonstrates a problem with forward references and ↵Jeremias Maerki2006-04-122-0/+51
| | | | | | page-number-citation. The reference's width is adjusted, but not the whole line. Some code in the area tree tries to adjust word- and letter-spacing but it does not seem to be working properly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@393420 13f79535-47bb-0310-9956-ffa450edef68
* Add disabled test case to demonstrate problems with white space handling ↵Manuel Mall2006-04-102-0/+103
| | | | | | when it comes to inlines. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392965 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Allow URLs in basic-link's external-destination to be wrapped in ↵Jeremias Maerki2006-04-101-0/+43
| | | | | | "url()". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392902 13f79535-47bb-0310-9956-ffa450edef68
* List NBSP under adjustable spaces in CharUtilities.Jeremias Maerki2006-04-105-27/+134
| | | | | | | | | | Generate space elements in the area tree from spaces in fo:character. Clearly mark test cases which test for NBSP. Document failure to generate adjustable spaces from fo:character in a disabled test case. Adjust checks to the fact the fo:character can now also generate spaces. Enable block_white-space-collapse_2.xml again git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392901 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to disable the writing down of the generated PDF files.Jeremias Maerki2006-04-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392900 13f79535-47bb-0310-9956-ffa450edef68
* Fixed various white space (non)removal issues during line building. ↵Manuel Mall2006-04-087-62/+308
| | | | | | white-space-treatment is now supported properly especially for the "preserve" case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392488 13f79535-47bb-0310-9956-ffa450edef68
* Improved JUnit report creation.Jeremias Maerki2006-04-0513-0/+976
| | | | | | | | | | Added support for OutputIntent objects in PDF. When PDF/A-1b is activated OutputIntents are created and the sRGB color space is used by default (hardcoded for the moment for lack of better color infrastructure in FOP). The sRGB color profile from HP (covering sRGB IEC61966-2.1) is now embedded in fop.jar as a resource so the PDF library can embed it. The sRGB profile from the Sun JRE is much bigger. That's why it's not used. The Gladiator TrueType font (glb12.ttf) has been copied over from Batik and is used to verify PDF/A-1b's conformance checks. CMYK JPEG image added to test resources so PDF/A-1b color space checks can be performed. With the color space checks, support for PDF/A-1b is complete to the degree that FOP supports the creation of elements described in ISO 19005-1, except for the case where an embedded XMP packet is used in the fo:declarations element. In this case the metadata is not synchronized with the values in the Info PDF object which could lead to validation errors when checking for PDF/A-1b conformance. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391624 13f79535-47bb-0310-9956-ffa450edef68
* Adding dependency on XML Graphics Commons.Jeremias Maerki2006-04-043-270/+0
| | | | | | | | | | | Switching to code in XML Graphics Commons for: - PSGraphics2D - Service discovery - Codecs Removed local classes that have been ported to Commons. xmlgraphics-commons-snapshot.jar is a Trunk snapshot built with JDK 1.4.2 from today. It should work under JDK 1.3.1. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391332 13f79535-47bb-0310-9956-ffa450edef68
* Tweak: reuse the FopFactory instance.Andreas L. Delmelle2006-03-271-5/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389222 13f79535-47bb-0310-9956-ffa450edef68
* Merged Temp_API_Finalization branch back into FOP Trunk:Jeremias Maerki2006-03-279-57/+77
| | | | | | | | | | | Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign In addition to that: Deprecated the rest of the Fop constructors. Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet. Some further cleanup on the way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
* ID reference in some checks were wrong.Jeremias Maerki2006-03-251-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388765 13f79535-47bb-0310-9956-ffa450edef68
* Demonstrating negative last-line-end-indent.Jeremias Maerki2006-03-241-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388577 13f79535-47bb-0310-9956-ffa450edef68
* Corrected expectation and behaviour for the text-indent property to only ↵Jeremias Maerki2006-03-241-4/+4
| | | | | | apply to the first line area generated by a block. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388565 13f79535-47bb-0310-9956-ffa450edef68
* Confirming that last-line-end-indent works as specified in XSL 1.0.Jeremias Maerki2006-03-241-0/+94
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388536 13f79535-47bb-0310-9956-ffa450edef68
* Initial support for page-position="last". Feedback requested!Jeremias Maerki2006-03-231-0/+168
| | | | | | See also: http://wiki.apache.org/xmlgraphics-fop/PagePositionLast git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388182 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: display-align did not work if the first object in a page was a table.Luca Furini2006-03-231-0/+255
| | | | | | Testcase added, now all seems ok. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388157 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: CCITT Group 4 encoded TIFF images were not properly embedded in PDF ↵Jeremias Maerki2006-03-182-1/+9
| | | | | | files. FopPDFImage always used the bits/pixel and color space of the original image although our image adapter mostly convert all images to 24bit RGB. One day, we will need to improve the image handling. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386879 13f79535-47bb-0310-9956-ffa450edef68
* Changed the way that text-align-last is calculated. Hopefully, this is it, ↵Jeremias Maerki2006-03-161-2/+24
| | | | | | now. Should fix a bug reported last week on fop-users. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386379 13f79535-47bb-0310-9956-ffa450edef68
* Looks like we already had a test for the bug I fixed in revision 386025. ↵Jeremias Maerki2006-03-161-1/+1
| | | | | | D'oh. Adjusted the space-before to force the second page again. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386341 13f79535-47bb-0310-9956-ffa450edef68
* Added support for fixed-width spaces and kerning.Jeremias Maerki2006-03-1612-71/+618
| | | | | | | | | | | | | | Note: letter-spacing is still implemented as before. Fixing this cannot be done without looking at space resolution as a whole on inline level. The Character area tree object is now deprecated. Normal Text objects should be used to keep renderers simpler. Introduced FontResolver interface to remove the dependency of FOUserAgent into the font package. Added kerning information to the base14 fonts, Helvetica and Times. By default it is not used to keep the status-quo. Enable base14 kerning through the FOUserAgent (FopFactory after the API finalization). Restored the production of EPS images in PDF output as PostScript XObjects. Restored functionality for a more compact format for the area tree renderer to save space. LayoutEngineTester slightly changed to allow for configuration values from the XML file. For now, only enabling base14 kerning is supported. Removed duplicate offset variable in SpaceArea. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386327 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed a copy/paste error in the table layout code that caused wrong ↵Jeremias Maerki2006-03-151-0/+77
| | | | | | page break decisions when table-headers and/or table-footers are used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386025 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed an NPE that was thrown when a table was used inside a ↵Jeremias Maerki2006-03-151-0/+64
| | | | | | footnote-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386015 13f79535-47bb-0310-9956-ffa450edef68
* Test case which demonstrates that a footnote in a fo:inline is swallowed if ↵Jeremias Maerki2006-03-022-0/+52
| | | | | | hyphenation is active. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@382492 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in handling of text-align-last. Value "relative" was not the ↵Jeremias Maerki2006-02-281-0/+59
| | | | | | default and the resolved property was wrong when it was inherited. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381618 13f79535-47bb-0310-9956-ffa450edef68
* Activated refinement white-space-handling for fo:title and fo:bookmark-titleAndreas L. Delmelle2006-02-271-6/+0
| | | | | | | | (treating fo:title the same as fo:bookmark-title -- see XSL-FO 1.1 6.11.3 -> Trait derivation) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381409 13f79535-47bb-0310-9956-ffa450edef68
* Added support for page sequence title in AreaTreeParser (IF). Fixes problems ↵Jeremias Maerki2006-02-261-11/+14
| | | | | | | | in intermediate format test suite. Introduced a PageSequence area tree object to achieve the proper sequence of Renderer.startPageSequence() calls and Renderer.renderPage() calls. Otherwise, the pageSequence elements are not properly placed in the intermediate format. Doesn't really affect the other renderers because they don't really care. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381080 13f79535-47bb-0310-9956-ffa450edef68
* Linefeed treatment and white space collapse are not performed onSimon Pepping2006-02-252-1/+61
| | | | | | | fo:title. A test case to document this. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380918 13f79535-47bb-0310-9956-ffa450edef68
* InlineLM properly creates an AligmentContext for Title.Simon Pepping2006-02-252-1/+49
| | | | | | | Add 2006 to the copyright lines of my previous commit. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380917 13f79535-47bb-0310-9956-ffa450edef68
* block_break-after_2 seems to work. Don't know who/what fixed this. Does anybody?Jeremias Maerki2006-02-241-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380658 13f79535-47bb-0310-9956-ffa450edef68
* Avoid a NullPointerException when fo:title is empty.Simon Pepping2006-02-241-0/+45
| | | | | | | Let PSLM and ContentLM create LMs via LayoutManagerMaker. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380646 13f79535-47bb-0310-9956-ffa450edef68
* Testcase for the background-position shorthand.Andreas L. Delmelle2006-02-141-0/+71
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377763 13f79535-47bb-0310-9956-ffa450edef68
* Slight correction: single quoted font-family names not properly handledAndreas L. Delmelle2006-02-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377242 13f79535-47bb-0310-9956-ffa450edef68
* Added implementation for the font shorthand property (+ some checkstyle cleanup)Andreas L. Delmelle2006-02-121-0/+74
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377222 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38618:Jeremias Maerki2006-02-111-0/+36
| | | | | | | cleanup of rgb() and implementation of system-color() Submitted by: Max Berger <max.at.berger.name> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377045 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed two causes for ClassCastExceptions in BlockContainerLayoutManager.Jeremias Maerki2006-02-091-0/+48
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376235 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: padding-top and padding-bottom on list-items could lead to wrong ↵Jeremias Maerki2006-02-092-0/+165
| | | | | | | | | page break decisions and thus to overlapping text. Bugfix: break-before and break-after were ignored on list-items. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376226 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug 38507: the elements representing a non-breaking space were not ↵Luca Furini2006-02-074-79/+20
| | | | | | | | | | always correct, sometimes allowing a break. This also solves another bug concerning the incorrect suppression of a nbsp at the beginning of a line. A bit of clean-up in TextLayoutManager git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375585 13f79535-47bb-0310-9956-ffa450edef68
* Test case for Bugzilla #38507.Jeremias Maerki2006-02-042-0/+86
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374892 13f79535-47bb-0310-9956-ffa450edef68