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
In the nordic epub guidelines (and possibly other EPUBs as well, I'm not sure), we always start with a <h1> in each HTML flie, regardless of the actual sectioning depth in the book. If you have a file representing the cover, a file representing the foreword, one representing the part or volume, and more files representing chapters within the part/volume, then you won't get proper nesting when concatenating the files.
I suggest we add an XSLT step to the epub3-to-pef script which can be enabled or disabled with a script option (default should probably be true). The XSLT would take the navigation document and spine documents as input, and the output would be the spine documents with the <h1>-<h6> elements renamed to their appropriate sectioning depths.
The text was updated successfully, but these errors were encountered:
We can add an option to px:html-merge to merge HTML documents based on a navigation doc and use that in px:epub3-to-pef.
On the other hand I'm also thinking about skipping the merge altogether and instead apply the CSS and XSLT stylesheets and the braille translation on each document individually, and support a sequence of documents at the input of the CSS formatter (#195). The issue with merging and other pre-processing is that you have to take these things into account in your CSS. This is also partly the reason why we need the "apply-document-specific-stylesheets" option.
I think it would be best to keep the merge as an option, and make it more configurable like you suggest, but disable it by default.
In the nordic epub guidelines (and possibly other EPUBs as well, I'm not sure), we always start with a
<h1>
in each HTML flie, regardless of the actual sectioning depth in the book. If you have a file representing the cover, a file representing the foreword, one representing the part or volume, and more files representing chapters within the part/volume, then you won't get proper nesting when concatenating the files.I suggest we add an XSLT step to the
epub3-to-pef
script which can be enabled or disabled with a script option (default should probably betrue
). The XSLT would take the navigation document and spine documents as input, and the output would be the spine documents with the<h1>
-<h6>
elements renamed to their appropriate sectioning depths.The text was updated successfully, but these errors were encountered: