JimmXinu / EpubMerge

EpubMerge Calibre Plugin
GNU General Public License v3.0
111 stars 15 forks source link

Possible to make style names unique? #20

Closed greenskye closed 1 month ago

greenskye commented 1 month ago

Merged ebooks don't seem to be handled well by my ereader app (moonreader) because it doesn't understand multiple stylesheets with overlapping style names. Results in the first book looking fine, but the second book might have everything in italics or everything in header size font, etc.

I can fix this by using the 'arrange into folders' function of the calibre book editor, but wasn't sure if there was anything the plugin could do to give each book unique style names?

JimmXinu commented 1 month ago

EpubMerge doesn't actually parse or change the contents of the (x)html or style sheet files from merged books--it just puts them each in a subdirectory inside the zip file.

I'm reluctant to add that much additional processing to address what is essentially a bug in another program...

greenskye commented 1 month ago

Fair, if you don't touch them that's a lot of additional work on your part. I'll see if I can get a hold of the moonreader dev...

Bluetinity commented 1 month ago

Oh man, thank you. I was looking at the same problem and didn't know how to fix it. Yeah I've had a couple of issues when combining books and moon reader completely changing the font when I get to the second book.

Edit: As a suggestion could you maybe put something about this in the dialogue box that pops up when you merge books. Maybe something like

"Tip: If your reader has problems with fonts after merging, try editing the book and applying "Arrange into folders" under "Tools" in the top menu bar".

Though that might be a bit long, but I'm almost sure that I'm going to try merging books in a while and forget this is how to fix it.