-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an HTML renderer that generates multiple files #8
Comments
Following my comments on Twitter, I've made a first tentative to make a standalone HTML file that use JavaScript to enable chapter pagination. Many improvements should be done, but it's a first step. It requires some changes in the HTML output, i.e. in |
Looking into it! |
Any news ? |
Had a bit less time for this project. Still looking at it. My current thoughts:
|
That was exactly my goal.
It is on my todo list, but waiting your validation of the current work.
There is no obvious icon for that. Maybe a two states button : a book icon when on chapter will make the page display the whole text, a sheet icon when on book mode will page the page display only one chapter (but which one ?)
It must also be text-based for accessibility purposes.
Yes.
You should maintain a translation table and add languages when possible, so Crowbook will be able to handle it automatically. If the user use a language that is not currently supported, Crowbook should throw a warning suggesting the use of an option to force the text to use, and fall-back to english. The option, if set, should override the translation even if available.
This was not my goal. I thought your current implementation for displaying multifile content was sufficient and I was not aware that you planned to propose both functionalities. However, it makes sense. |
What I expect from you at this point : change the HTML output, and externalize the JavaScript in a dedicated file so I can improving it on my fort and pull request. |
Made a new branch for that: https://github.com/lise-henry/crowbook/tree/newjs Some modifications have been made, but the navigation menu doesn't work yet (needs more changes than I thought). The script can be modified either at compile time by modifying |
Navigation menu now works |
I'll switch to this branch and implement the "view all" feature next week I think. |
Currently, the only HTML renderer (besides EPUB, which is technically HTML too) generates a standalone file. For long texts, it might make more sense to give the possibillity to generate a multiple file, probably in a directory with one file by chapter. This could be an additonal option
output.html_dir
that would operate in a similar manner to the EPUB renderer: generate one file by chapter in this directory, generate a CSS files and copy linked images in this directory.The text was updated successfully, but these errors were encountered: