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

Add word count to the section table #6

Open
andrasfuchs opened this issue Apr 10, 2023 · 1 comment
Open

Add word count to the section table #6

andrasfuchs opened this issue Apr 10, 2023 · 1 comment

Comments

@andrasfuchs
Copy link

Some sections in some books are really short or just placeholders, and it would be great to have the ability to skip them on the "Select Sections to Split Off" screen. It could be done easily if we had a new column with the approximated number of words in each section.

image

@JimmXinu
Copy link
Owner

Adding a column is easy; actually counting the words in each section is more difficult.

Each 'Section' is a TOC entry (or file start) that may be a complete file or an anchor inside a file. Look inside most Gutenberg epubs for examples of the later. The only way to define when a section ends with anchor entries, is where the next section begins.

To use the Calibre word count routines I have available, EpubSplit would effectively have to split every section into a new ebook first. The existing 'Get Size' button does basically that--it generates the split epub to determine the size.

A byte count for sections that are files might be more feasible.

I'll leave this open for now, but I don't anticipate implementing it.

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