Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2015, 05:45 PM   #166
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by shamanNS View Post
@JimmXinu: Is it possible to make future version of plugin copy embedded and referenced font files (CSS declaration of font-family remains in CSS after splitting, but .ttf files are left behind) or at least notify user when splitting that omnibus has some font files embedded? So that user knows that he should add those font files manually post-split.
That's a good suggestion.

Can you (or anyone else) share or point me to some epubs containing embedded fonts? I don't think I have any to experiment and test with.
JimmXinu is offline   Reply With Quote
Old 10-29-2015, 07:22 PM   #167
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
JimmXinu

2 ways I have added back fonts (for personal use) (that were commented out because of license restrictions)

@fonts is in in the:
Pagefile.css
stylesheet (for that segment) CSS


I might attack the issue by determining what is needed per Split:

1) Is there a Font-Family: value, other than generic (serif, sans-serif, monospace) used for any of the stylesheets used in the split off section. << Some anthologies use different sheets per story

2)is there a matching (set) of @fonts in any of the CSS in use that points to an embedded file << I mention this, because it might depend on a 'master' set of fonts on the reading device or the code is just left dirty
theducks is offline   Reply With Quote
Advert
Old 11-10-2015, 02:43 PM   #168
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Attached is a test version that copies all font files in the source epub into each split epub.

You can use Polish to remove unused fonts afterwards.

Last edited by JimmXinu; 05-04-2016 at 02:07 PM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline   Reply With Quote
Old 11-16-2015, 05:50 PM   #169
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
What if the book doesn't have section or chapter breaks?
MarjaE is offline   Reply With Quote
Old 11-16-2015, 07:53 PM   #170
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by MarjaE View Post
What if the book doesn't have section or chapter breaks?
Then you will probably have to use 'The Editor' if the normal Calibre Convert options offer no solution (there are books that just do not have any clearly defined divide point)

Splitting assumes you have a good starting point.

But... this PI is about splitting OUT pieces (whole files), not breaking up a large file.

If your goal is BOTH

you will need to break the book up Internally first.
A common break is files-per-chapter or file-per-story (eg anthology)
theducks is offline   Reply With Quote
Advert
Old 11-16-2015, 08:44 PM   #171
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by MarjaE View Post
What if the book doesn't have section or chapter breaks?
EpubSplit can split either on file boundaries or on ToC entries within files.

So you have to use an editing problem to either split files or insert ToC entries before you can use EpubSplit on it. Calibre's builtin editor can do that.
JimmXinu is offline   Reply With Quote
Old 11-16-2015, 08:52 PM   #172
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by theducks View Post
But... this PI is about splitting OUT pieces (whole files), not breaking up a large file.
It can split files, but only where there are ToC entries.
JimmXinu is offline   Reply With Quote
Old 11-17-2015, 12:05 AM   #173
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JimmXinu View Post
It can split files, but only where there are ToC entries.
Thank,
I have only used it a couple of times and obviously have not discovered all the features
theducks is offline   Reply With Quote
Old 11-23-2015, 04:45 PM   #174
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by JimmXinu View Post
Attached is a test version that copies all font files in the source epub into each split epub.

You can use Polish to remove unused fonts afterwards.
Soooo...

Has anyone had either success or failure using this test version?
JimmXinu is offline   Reply With Quote
Old 11-23-2015, 05:49 PM   #175
shamanNS
Guru
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 885
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
I've tested it on a dummy epub (2 html files, one paragraph in each, one referencing embedded font one not) created using Calibre Editor and for that epub file plugin works correctly, it copied .ttf file(s). But it's not working for my copy of The Malazan Book of the Dead omnibus 1-10, probably because of non standard internal directories inside of epub...

When you said "you can use Polish to remove unused fonts" were you referring to Calibre's "Polish Books" toolbar button? Because I don't see options for removing unused fonts (files, not CSS), just for embedding referenced fonts and subset-ing embedded fonts.

I'm just wandering if I'm missing out on some Calibre functionality...
I'm used to checking every book in Calibre Editor and while checking/editing CSS I always check if the book contains unwanted fonts (most often deleting Charis SIL font files )
shamanNS is offline   Reply With Quote
Old 11-23-2015, 06:15 PM   #176
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by shamanNS View Post
I've tested it on a dummy epub (2 html files, one paragraph in each, one referencing embedded font one not) created using Calibre Editor and for that epub file plugin works correctly, it copied .ttf file(s). But it's not working for my copy of The Malazan Book of the Dead omnibus 1-10, probably because of non standard internal directories inside of epub...
I don't have any epubs myself with embedded fonts except for a couple I made for testing.

Unless I can get copies of epubs to test with containing other examples, I'm not going to be able to support them...

Quote:
Originally Posted by shamanNS View Post
When you said "you can use Polish to remove unused fonts" were you referring to Calibre's "Polish Books" toolbar button? Because I don't see options for removing unused fonts (files, not CSS), just for embedding referenced fonts and subset-ing embedded fonts.
Yes, Calibre's "Polish Books" feature. Subseting embedded fonts will also remove font files that aren't used.
JimmXinu is offline   Reply With Quote
Old 02-20-2016, 06:30 AM   #177
bob_bookworm
Member
bob_bookworm began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2012
Device: Kindle
Hi, I keep getting a 'memory error' message while trying to split a massive (120MB) Epub file.
Am I doing something wrong?
bob_bookworm is offline   Reply With Quote
Old 02-20-2016, 10:30 AM   #178
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by bob_bookworm View Post
Hi, I keep getting a 'memory error' message while trying to split a massive (120MB) Epub file.
Am I doing something wrong?
I assume that you're running into a memory limit.

The biggest epub I have is ~17M and it split fine for me.

I've never tested with anything approaching 120M as even my million+ word books are <10M. I don't even know where I'd get such a thing.

Using a 64bit version of Calibre might help if you're not.
JimmXinu is offline   Reply With Quote
Old 02-20-2016, 10:39 AM   #179
bob_bookworm
Member
bob_bookworm began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2012
Device: Kindle
Quote:
Originally Posted by JimmXinu View Post
I assume that you're running into a memory limit.

The biggest epub I have is ~17M and it split fine for me.

I've never tested with anything approaching 120M as even my million+ word books are <10M. I don't even know where I'd get such a thing.

Using a 64bit version of Calibre might help if you're not.
It's a 11-book file [Story of Civilization by Will Durant], and I would be surprised if it's depending on either RAM or storing capacity because it is a Win10 64bit new and potent machine.
The same problem in both Calibre 2.50 and 2.51.

I am trying to split the file into smaller epub files because trying to convert the big file from epub to mobi is getting a similar error message.
bob_bookworm is offline   Reply With Quote
Old 02-20-2016, 10:46 AM   #180
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by bob_bookworm View Post
It's a 11-book file [Story of Civilization by Will Durant], and I would be surprised if it's depending on either RAM or storing capacity because it is a Win10 64bit new and potent machine.
The same problem in both Calibre 2.50 and 2.51.
Which is why I said 'memory limit' instead of 'running out of memory'. I suspect there's a limit somewhere in Calibre or Python (one that seemed a reasonable assumption to the writer at the time) that is being exceeded.

Quote:
Originally Posted by bob_bookworm View Post
I am trying to split the file into smaller epub files because trying to convert the big file from epub to mobi is getting a similar error message.
Which further suggests that Calibre (or Python) has some internal limitation, unfortunately.

If you run Calibre in debug mode (under Calibre's Preferences drop down), capture a log of the error message and post it here, that may help.
JimmXinu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubMerge JimmXinu Plugins 522 04-01-2024 10:25 AM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 AM
[GUI Plugin] FanFictionDownLoader JimmXinu Plugins 3985 05-08-2015 11:18 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 11:19 PM.


MobileRead.com is a privately owned, operated and funded community.