|  05-24-2014, 05:12 AM | #676 | 
| Ebook-Fan            Posts: 398 Karma: 698564 Join Date: Feb 2011 Device: PRS T1 | 
			
			In many ebooks i found font face entries for fonts not available in the ebook. It there a way to remove this entries with Modify EPUB? If not, is it possible to add such a feature to this tool? Thank you very much for reading and considering this. And thank for your great tool, which saves me much time! :-) Last edited by samy2; 05-24-2014 at 05:16 AM. | 
|   |   | 
|  05-24-2014, 09:14 AM | #677 | 
| Grand Sorcerer            Posts: 6,268 Karma: 16544702 Join Date: Sep 2009 Location: UK Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 | 
			
			Have you tried the option 'Remove embedded fonts'? I think it's supposed to remove the font files (if any) and the @font-faces.
		 | 
|   |   | 
|  05-24-2014, 09:25 AM | #678 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 embedded fonts and which have @fonts (you will probably want to tag each case so you can the do a search for those with @fonts, but no embedded fonts. Select all results Now the Modify can remove the @fonts | |
|   |   | 
|  05-24-2014, 02:43 PM | #679 | 
| Ebook-Fan            Posts: 398 Karma: 698564 Join Date: Feb 2011 Device: PRS T1 | 
			
			I don't wanna remove any font. I just wanna remove font face entries which referring to fonts not available in the ebook. The calibre editor shows this entries but i have to remove it manually. Some have embedded fonts, which i don't wanna remove. But still there some wrong entries in font face. I want "quality check" just remove very wrong wrong entry. If I have too look beforehand if there are embedded fonts, I just can remove those entries by myself with the editor. I just thought there is a more convenient way. Last edited by samy2; 05-24-2014 at 02:56 PM. | 
|   |   | 
|  05-24-2014, 03:19 PM | #680 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 That is what the steps I explained do. Without doing those,you run the risk of removing @fonts from books WITH fonts Once you select the results of the combined search, Modify EPUB can remove the @fonts from the CSS of selected files | |
|   |   | 
|  06-09-2014, 05:16 PM | #681 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
				
				BUG REPORT
			 
			
			I found a bug... Code: calibre, version 1.39.0 ERROR: Modify ePub failed: No ePub files were updated Modify ePubs Logfile for book ID 12248 (The Silver Spike / Glen Cook) 12248 Modifying: C:\Users\Jon\AppData\Local\Temp\calibre_2aeddf\onhui4_modify_epub\12248.epub Parsing xml file: OEBPS/package.opf Parsing xml file: OEBPS/toc.ncx Looking for broken links in the NCX Changing playOrder from: 0 to: 1 Changing playOrder from: 0 to: 2 Changing playOrder from: 0 to: 3 Changing playOrder from: 0 to: 4 Changing playOrder from: 0 to: 5 Changing playOrder from: 0 to: 6 Changing playOrder from: 0 to: 7 Changing playOrder from: 0 to: 8 Changing playOrder from: 0 to: 9 Changing playOrder from: 0 to: 10 Changing playOrder from: 0 to: 11 Changing playOrder from: 0 to: 12 Changing playOrder from: 0 to: 13 Changing playOrder from: 0 to: 14 Changing playOrder from: 0 to: 15 Changing playOrder from: 0 to: 16 Changing playOrder from: 0 to: 17 Changing playOrder from: 0 to: 18 Changing playOrder from: 0 to: 19 Changing playOrder from: 0 to: 20 Changing playOrder from: 0 to: 21 Changing playOrder from: 0 to: 22 Changing playOrder from: 0 to: 23 Changing playOrder from: 0 to: 24 Changing playOrder from: 0 to: 25 Changing playOrder from: 0 to: 26 Changing playOrder from: 0 to: 27 Changing playOrder from: 0 to: 28 Changing playOrder from: 0 to: 29 Changing playOrder from: 0 to: 30 Changing playOrder from: 0 to: 31 Changing playOrder from: 0 to: 32 Changing playOrder from: 0 to: 33 Changing playOrder from: 0 to: 34 Changing playOrder from: 0 to: 35 Changing playOrder from: 0 to: 36 Changing playOrder from: 0 to: 37 Changing playOrder from: 0 to: 38 Changing playOrder from: 0 to: 39 Changing playOrder from: 0 to: 40 Changing playOrder from: 0 to: 41 Changing playOrder from: 0 to: 42 Changing playOrder from: 0 to: 43 Changing playOrder from: 0 to: 44 Changing playOrder from: 0 to: 45 Changing playOrder from: 0 to: 46 Changing playOrder from: 0 to: 47 Changing playOrder from: 0 to: 48 Changing playOrder from: 0 to: 49 Changing playOrder from: 0 to: 50 Changing playOrder from: 0 to: 51 Changing playOrder from: 0 to: 52 Changing playOrder from: 0 to: 53 Changing playOrder from: 0 to: 54 Changing playOrder from: 0 to: 55 Changing playOrder from: 0 to: 56 Changing playOrder from: 0 to: 57 Changing playOrder from: 0 to: 58 Changing playOrder from: 0 to: 59 Changing playOrder from: 0 to: 60 Changing playOrder from: 0 to: 61 Changing playOrder from: 0 to: 62 Changing playOrder from: 0 to: 63 Changing playOrder from: 0 to: 64 Changing playOrder from: 0 to: 65 Changing playOrder from: 0 to: 66 Changing playOrder from: 0 to: 67 Changing playOrder from: 0 to: 68 Changing playOrder from: 0 to: 69 Changing playOrder from: 0 to: 70 Changing playOrder from: 0 to: 71 Changing playOrder from: 0 to: 72 Changing playOrder from: 0 to: 73 Changing playOrder from: 0 to: 74 Changing playOrder from: 0 to: 75 Changing playOrder from: 0 to: 76 Changing playOrder from: 0 to: 77 Changing playOrder from: 0 to: 78 Changing playOrder from: 0 to: 79 Changing playOrder from: 0 to: 80 Changing playOrder from: 0 to: 81 Changing playOrder from: 0 to: 82 Changing playOrder from: 0 to: 83 Changing playOrder from: 0 to: 84 Changing playOrder from: 0 to: 85 Changing playOrder from: 0 to: 86 Changing playOrder from: 0 to: 87 Changing playOrder from: 0 to: 88 ePub not changed after 0.22 seconds Last edited by JSWolf; 06-09-2014 at 07:03 PM. | 
|   |   | 
|  06-09-2014, 06:55 PM | #682 | |
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 Now, can you come up with a mod to change those <span class="italics">, <span class="italic">, or <span class="bold"> into proper <em> and <b> of course with the proper close? That would solve one other pet peeve I have. | |
|   |   | 
|  06-09-2014, 07:01 PM | #683 | |
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  06-09-2014, 07:02 PM | #684 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			The idea here is to remove something like "font-family: Times-Roman, serif;" where there is no embedded font for Times-Roman thus leving all the properly embedded font code in place.
		 | 
|   |   | 
|  06-09-2014, 11:00 PM | #685 | ||
| Wizard            Posts: 1,760 Karma: 9918418 Join Date: Feb 2013 Location: Here on the perimeter, there are no stars Device: Kobo H2O, iPad mini 3, Kindle Touch | Quote: 
  I'd suggest, right off the bat, making sure the output file isn't write-protected or otherwise a bad destination. If that's good, there may be other problems with the NCX file that changing the PlayOrders is not enough to fix. Perhaps if you could extract and attach that NCX file...? Quote: 
 In short, we'd be adding a lot of code for a minimal actual benefit, which really demonstrates the law of diminishing returns in dramatic ways. Such a feature would be more appropriate to an actual ebook editing program than a "simple touch-ups" plugin, and even there it's a perk that should come below many other CSS optimization features. I would truly enjoy having such a program, but I do not know of one in existence. | ||
|   |   | 
|  06-10-2014, 03:02 PM | #686 | |
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 Any chance you could maybe have a look at it and see where it goes wrong? Or for that matter, can anyone have a go at it? | |
|   |   | 
|  06-10-2014, 03:07 PM | #687 | |
| Wizard            Posts: 1,760 Karma: 9918418 Join Date: Feb 2013 Location: Here on the perimeter, there are no stars Device: Kobo H2O, iPad mini 3, Kindle Touch | Quote: 
 Plus, y'know, it's his code. He understands it better.   | |
|   |   | 
|  06-10-2014, 05:29 PM | #688 | |
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  06-10-2014, 06:52 PM | #689 | |
| Wizard            Posts: 1,760 Karma: 9918418 Join Date: Feb 2013 Location: Here on the perimeter, there are no stars Device: Kobo H2O, iPad mini 3, Kindle Touch | Quote: 
 The plugin generally uses a variable called "Dirtied" to indicate whether changes need to be written, but in this case it uses a dual test. My fix is to add a line at the end of that dual test to force "Dirtied" to be set to true, which I think will fix everything elegantly. EDIT: The original fix didn't work, apparently because the error was coded in two places and I only found it in one. I've removed the first attempt from here and will post a new message with the new attempt. Last edited by Rev. Bob; 06-10-2014 at 08:04 PM. | |
|   |   | 
|  06-10-2014, 08:05 PM | #690 | 
| Wizard            Posts: 1,760 Karma: 9918418 Join Date: Feb 2013 Location: Here on the perimeter, there are no stars Device: Kobo H2O, iPad mini 3, Kindle Touch | 
			
			Dirty little bug... Let's see if this two-line fix does the trick. It looks like it works on this end, but I want outside verification... | 
|   |   | 
|  | 
| Tags | 
| modify epub | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1277 | 10-21-2025 10:04 AM | 
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM | 
| [GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 03:07 PM | 
| Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |