ePub validation
Scott Kostyshak
skostysh at lyx.org
Sat Apr 24 04:17:04 UTC 2021
On Fri, Feb 12, 2021 at 11:39:05PM +0100, Thibaut Cuvelier wrote:
> Dear list,
>
> I can't find the exact message where this issue was raised, but it would be
> useful to check if the generated ePub files are valid. Most of the process
> relies on external dependencies, so I don't think it's really useful to
> test if several XSLT processors give the same output. However, it might be
> useful to check if the generated ePub files are valid according to the
> spec: it could also highlight errors in the dependencies.
>
> As far as I know, the most-used validator for ePub is ePubCheck (
> https://github.com/w3c/epubcheck), a Java-based application (yes, even more
> Java >_<). There is also FlightCrew (
> https://github.com/Sigil-Ebook/flightcrew), a plug-in for an ePub editor, I
> don't know if it's useable outside the Sigil editor (but it's only C++, so
> that's not a new hard dependency for running tests). In any case, deploying
> ePubCheck seems to be easier than FlightCrew (just download a load of JAR
> files from https://mvnrepository.com/artifact/org.w3c/epubcheck/4.2.4).
>
> Is there any interest in making this part of the LyX test suite?
> How should test-only dependencies be handled?
Sorry for the slow reply, Thibaut. By the way, please feel free to bump
your messages. It is common for them to fall through the cracks and it
does not indicate a lack of interest.
Thanks for thinking of this. I believe we already have dependencies that
are only relevant for the test suite. For example, see how we handle
xmllint. In any case, Kornel would know best.
It would be nice to not flip the switch on the tests until all the
introduced failures are resolved. Perhaps we could work to come up with
a patch on the list and then you can apply it locally until all tests
are correctly processed (i.e., all exports are fixed or the failures are
added to invertedTests). Or, if it is easier for you, perhaps we could
commit the patch but by default comment out the added tests. You can
uncomment locally and then we can flip the switch when no new failures
are introduced? Would that be OK for you?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210424/93db63c8/attachment.asc>
More information about the lyx-devel
mailing list