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

Allow markdown for generating XHTML files #28

Open
smhmd opened this issue Dec 14, 2023 · 4 comments
Open

Allow markdown for generating XHTML files #28

smhmd opened this issue Dec 14, 2023 · 4 comments

Comments

@smhmd
Copy link

smhmd commented Dec 14, 2023

Right now, my process to generate files is: get an epub, covert it to a txt file, run it through syncabook, make it an epub again. By doing this, I lose a lot of information from the original epub like italicized and bold text, links, images, etc. I imagine we can instead of converting from epub to txt, convert to markdown to retain some of that info. Ofc, parsing txt for sentences isn't the same as parsing markdown, so this is probably not a straightforward feature, I imagine.

Would love to hear your thoughts on this.

@sjabsr
Copy link

sjabsr commented Dec 18, 2023

+1 same situation here.
MD seems too limited though; there could be data we want to retain from the original ebook's xhtml that would be lost. A direct tagging of the epub's xhtml files would be an incredible functionality !

@sjabsr
Copy link

sjabsr commented Dec 20, 2023

@smhmd Have a look at this issue, archived for people to check this solution of directly tagging xhtml files with a python script, instead of using syncabook to_xhtml. I haven't tried it yet, but I guess you can then put them in the /sync_text folder and execute the syncabook sync directly.
-> Use existing xhtml files for syncabook #21

@r4victor
Copy link
Owner

r4victor commented Jan 2, 2024

If you need an "epub + audiobook => epub with media overlays" conversion, you may consider a syncabook alternative: https://smoores.gitlab.io/storyteller/.

I haven't tested it. They claim syncing take significantly more time (compared to syncabook) but the quality should be good.

@sjabsr
Copy link

sjabsr commented Jan 2, 2024

I have very good results with syncabook actually ! This issue is more about having to start over from the bare text.
But it's always interesting to see what other products are available in case they fit better our need. E.g. we'd ideally need a word level sync, not sentence level. Which might also be solved with "custom manual tagging" of the xhtml files, as described in issue #21, isn't it ?
Thanks for the info, I'll check storyteller out.

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

3 participants