New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to add FOP/PDF build/test to P5 Tests #1559
Comments
This shows how to call FOP from ant: https://xmlgraphics.apache.org/fop/2.1/anttask.html so something like this would be added to P5/Test/antruntest.xml. |
…ts to the antruntest.xml file, but haven't yet set up a specific test to run.
In commit ef53914 I've added a shell script, P5/Test/testfo.sh, which calls the ODD to PDF conversion stuff on the testbasic.odd ODD file and triggers the errors that need to be addressed in the Stylesheets, starting with this one:
These issues now probably need to be raised and dealt with one by one in the Stylesheets repo, so I'll raise that first one. When all Stylesheets issues are dealt with and the transformations work OK, work can move back into this ticket, so we can decide how/whether to integrate FO testing into the TEI build process. I notice that although antruntest.xml includes code for testing LaTeX transformations, it is never called during the build process. |
@martindholmes Where do things stand with this issue? |
@hcayless The bad bugs in the FO/PDF transformation are fixed in Stylesheets. There's more cosmetic work that needs to be done, but nothing fails at this point. I've built a more comprehensive set of tests for FOP into my Stylesheets/Test2 work, and one of the tests involves an Exemplar ODD from the TEI repo. I think I was probably wrong to think that this stuff should be tested in the P5 repo, but Council should probably decide. If I was wrong to raise it here, we can back out of those commits I made and remove the stuff I added. I'm not absolutely sure what should be tested in which repo. |
@martindholmes, @sydb - is this still a question in which repo this should be tested? |
I'm now more convinced of the value of Test2 and the irremediable mess that is Test, and I already have an FO test in Test2, which both generates the FO and builds it to PDF. I don't think it matters what happens in Test. Feel free to close this ticket unless someone objects. |
We've been bitten by bugs in transformation of ODD to PDF in TEIC/oxygen-tei#15, and it's mainly because none of our tests currently do much with FO/PDF transformation.
We should:
Add the FOP 2.1 jar and its dependencies to the
P5/Utilities/lib/
folder. This will involve either a) checking for conflicts between the jars FOP needs and the jars that we already have, and resolving version issues, or b) putting all the FOP stuff together in a separate folder. b) is simpler, but a) is more sensible.Adding to P5 Tests a conversion from one of our test ODDs to PDF using FOP. This will break the build initially, because it will fail due to multiple bugs such as the one linked above.
After fixing the test so we can build, adding a couple more tests to be sure.
The text was updated successfully, but these errors were encountered: