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

Help creating book from existing epub and m4b files #33

Open
seannymurrs opened this issue Sep 24, 2024 · 1 comment
Open

Help creating book from existing epub and m4b files #33

seannymurrs opened this issue Sep 24, 2024 · 1 comment

Comments

@seannymurrs
Copy link

I'm trying to use syncabook to create a read aloud epub. I already have an epub copy of the book as well as an m4b copy of the audiobook. From looking at the direcctions, it seems like I need the ebook in xhtml format. I know I can get the xhtml files from the epub (by renaming the epub to a zip and extracting the xhtml files). Can I use those xhtml files to sync the book, or do I need to convert the epub to a txt file and then use syncabook to convert the txt to xhtml? If I can use the xhtml files from the epub, should I manually separate them into sync_text and no_sync_text folders?

@r4victor
Copy link
Owner

@seannymurrs

syncabook identifies text fragments in XHTML files by looking for tags with attributes of the form id="f[0-9]+" (see an example). If you use the to_xhtml command to produce XHTML files from plaintext, they will contain the proper tags automatically. If you use your own XHTML files, you'll need to modify them to contain the tags with id attributes.

So, theoretically, you could use XHTML files from an existing EPUB, but those XHTML files need to be modified to contain proper id tags.

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

No branches or pull requests

2 participants