Open tatarize opened 2 years ago
The element view already has a similar functionality, well, more flexible. One can group with the g element and chose with linking or declarative animation. If one needs something like a book with a viewer, that provides a functionality to switch to the next chapter, one can use usually SVG-documents within an EPUB3-archive, even in mixture with XHTML-documents and several more features to combine documents to a digital book.
That sounds like you could mimic the functionality with other external standards. At that rate you could just have different files for different pages.
This is the idea of an EPUB archive as digital book - the advantage to contain lots of documents joint together to a book.
But if you need it in one SVG file, you can use the SVG view element, the a element for links to the next view respectively some interactive declarative animation of the viewBox attribute of a view or the root svg element. Finally it is not less than to indicate pages breaks, it is more flexible instead.
Inkscape circa version 1.2 supports pages. This is a pretty reasonable feature and should be considered. This would require that
<page>
be added and containx
y
,width
,height
,id
, and optionallylabel
. This page serves as an alternative viewbox.The rest of the document remains the same.
Objects outside the viewbox are unseen (usually), so the additional information for the additional pages are generally hidden unless the viewbox is switched to the specific page.
This could permit svgs to somewhat compete with PDFs and provide general support for multiple-page documents. And in the simplest form this all operate within the same space, and page changing is merely a change in the viewbox.