You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct me if I'm wrong, but strictly speaking I think backslashes are not allowed in a valid URL. Have you tried running the DTBook through the dtbook-validator script?
Even if they are not really allowed, supporting backslashes sounds like a good idea because they seem to appear in the wild. For the moment I don't consider this a critical issue though.
By the way, it would be great if the dtbook-to-pef script would have input validation. See daisy/pipeline-scripts#112.
I think it is technically allowed, but not as a delimiter, so in the example above, the filename is img\image003.jpg instead of image003.jpg. In Linux I can create such filenames:
I've checked that a book with such backslashes does not pass the DTBook validator of Pipeline 1. This makes me a bit more confident in the believe that it is indeed invalid in DTBook.
The DTBook to PEF conversion crashes on an image with a src attribute with a backslash.
If the DTBook has, for example,
<img src="img\image003.jpg" alt="afbeelding"/>
The following error occurs on the server, where we run pipeline-assembly and pipeline-webui:
net.sf.saxon.trans.XPathException: Invalid replacement string in replace(): \ character must be followed by \ or $
The following error occurs in our unit test "Image test 1":
It appears that the
xprocspec-20170817095225677/images
folder has only atemp-dir
and withintemp-dir
an empty foldertemp6280585861570927296
.The text was updated successfully, but these errors were encountered: