bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: images subdirectories in epub


From: Patrice Dumas
Subject: Re: images subdirectories in epub
Date: Wed, 3 Aug 2022 23:01:19 +0200

On Wed, Aug 03, 2022 at 12:16:04PM -0700, Per Bothner wrote:
> 
> 
> On 8/3/22 11:48, Patrice Dumas wrote:
> > On Wed, Aug 03, 2022 at 09:13:31AM -0700, Per Bothner wrote:
> > > On 8/3/22 05:22, Patrice Dumas wrote:
> > > > In EPUB, the images are copied to a directory, such as
> > > > my_manual_epub_package/EPUB/images/
> > > > The manual files are in
> > > > my_manual_epub_package/EPUB/xhtml/*.xhtml
> > > > and the paths to images in the XHTML files have ../images/ prepended.
> > > 
> > > Why?  I don't see any such requirement in
> > > https://www.w3.org/publishing/epub3/epub-ocf.html
> > 
> > I am just describing how things are, not that there are any constraints
> > on where they should be.  The issue is not the requirement, simply the
> > implementation.
> 
> Again - why? More specifically: why are you putting the html/xhtml file in a
> separate xhtml subdirectory?  If you get rid of that, it seems you avoid the 
> problem.

No, the problem is not avoided, because the additional image
subdirectory is still not created.

As to why the xhtml file is not put directly in the EPUB directory
(which could be named differently), it is to have a structure that I find
cleaner.  That way in the EPUB directory, there are only the opf file and
directories, xhtml for the manual files, images for the images and
something like js for the javascript (and css for specific CSS files,
but I am not sure it is used like that in practice, but it would fit well
in this setup).  I actually mimicked the structure of The EPUB 3.0
specifications in EPUB 3.0 format from
https://idpf.github.io/epub3-samples/30/samples.html.

However, if this structure is not right, I can change it, it is in no
way dictated by the standard, but I would like to have more substantive
arguments.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]