Skip to content
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

Integrate epub reader scripts and book beautifier scripts that convert text into code by patterns #6

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adilnaut
Copy link
Collaborator

Integrate epub reader scripts and book beautifier scripts that convert text into code by patterns

…ifier to export function to react project. Modify App.jsx to load book content. Modify Tabbar to read global book object. Modify editor to parse newline (quick fix to be changed).
@migamic
Copy link
Owner

migamic commented Mar 31, 2024

@adilnaut Is this ready to merge or still WIP?

@adilnaut
Copy link
Collaborator Author

adilnaut commented Apr 2, 2024

@migamic : there is at least 1 degradation in this PR:

  1. As full chapter is loaded into memory printing token one-by-one get really slow and lags behind typing. For debug purposes 'r' - reveals next 10K tokens and 'h' hides all.
  2. Current parser only works for certain epub content structure as I did manual parsing for demo. As xml formats of both chapters and Table of content vary significantly probably using js epub reader is needed https://github.com/futurepress/epub.js

I would be open to finish it up given your opinions on the above or to hand it down to anyone who wants to wrap it up!

It should work now for Project Gutenberg ebooks like:

test_book.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants