09-12-2024, 09:21 AM | #16 |
Evangelist
Posts: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
The one book I've edited with a Vellum CSS was the most ridiculously complex CSS I've ever seen. How anyone thought that was a sensible way to proceed is beyond me. They could have gotten the same appearance with a much simpler CSS.
|
09-12-2024, 05:18 PM | #17 | |
Bibliophagist
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Vellum's market is mostly indie authors who write their document in Word or other program generating .docx output and then feed the .docx file into Vellum to generate various flavours of ePub output (ePub2/ePub3, Apple, Kindle, Kobo, Nook, Google, generic) with an option for mobi for local testing on Kindle ereaders/apps. For non-ebook uses, you can generate an print ready output file. As a group, the authors that I have dealt with are more concerned with generating output that will work without requiring them to know about stylesheets, ebook structure, etc. They do care about not generating masses of complaints. |
|
09-12-2024, 07:44 PM | #18 | |
Evangelist
Posts: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Last edited by foosion; 09-12-2024 at 07:46 PM. |
|
09-12-2024, 08:05 PM | #19 |
Bibliophagist
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For me, I have a collection of saved searches in Sigil that clean up most of the cascaded divs. They also remove almost all of the media queries from the media stylesheet since they are not needed for most ePub ebooks and clean up a good chunk of the unneeded bits in the styles stylesheet. I also dump dropcaps in this process and convert the ornamental breaks to a single <p>
The workflow is:
Looking at my saved search names, call me boring. |
09-12-2024, 08:16 PM | #20 |
Evangelist
Posts: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Not a trivial number of changes. If I run into another Vellum monstrosity I may bother you for a copy of your saved searches and automations, if that's not a problem.
Dropcaps should be dropped. I don't mind "* * *" breaks or something equally inoffensive. |
09-12-2024, 10:43 PM | #21 |
Gentleman and scholar
Posts: 11,360
Karma: 110455811
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara BW; Nook ST w/Glowlight, Paperwhite 3
|
For my own adjustment, I have taken some PDFs from Open Library and have converted them to ePubs. Having done this, I've generated my own stylesheet. Considering I'm self taught, I think I've done pretty well.
|
09-13-2024, 12:19 AM | #22 |
Wizard
Posts: 1,442
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Maybe we need a "share your e-book cleanup scripts" thread of some kind.
|
09-13-2024, 07:54 AM | #23 |
Evangelist
Posts: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
|
09-13-2024, 10:04 AM | #24 |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A lot of eBooks are different enough that a cleanup script may not work well enough.
Last edited by JSWolf; 09-13-2024 at 10:09 AM. |
09-13-2024, 11:27 AM | #25 | |
Evangelist
Posts: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Run check, do auto cleanup and anything obvious Remove unused CSS Fix HTML Go through file browser, hitting at least each file type (title page, copyright, chapter, etc.). If you don't like appearance, figure out what's causing it and change. Have a set of rules, such as non-massive headings (1.4em), less empty space above and below headings and sections (margin: 0.5em 0), left justify, no dropcap or the like, 1.4em indent, 0 left right margins. Eliminate unwanted files (more praise for). Possibly move intro to end. Edit TOC to conform. Repeat run check, remove, fix. This time through put more effort into fixing errors. Focus on nice book appearance rather than clean code. Some of this could probably be scripted. |
|
09-13-2024, 01:08 PM | #26 | |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I run Modify ePub until it says there is nothing left to modify. That's 1-3 runs before the next run says nothing needs to be modified. I check the cover and if the cover is correct and hi-res, it's good to go otherwise, I'll try to download a good hi-res cover from Amazon, Google, Apple, or Kobo. I'll copy the cover and once I open the book in the editor, I'll replace the cover and size it for my screen. I'll check other graphics and see if they need resizing. Once done, I'll give the graphics a lossless recompress of 70. I edit the OPF to remove any crud and the description unless that is correct meaning no advert junk and it's complete. Then I'll go though the HTML files and delete the ones I don't want such as list of other books, review blurbs, previews, adverts, etc. I'll then link the stylesheet to all the HTML files so it's there and correct. If there are any fonts, I'll delete the ones I don't want. If any of them are sans-serif, I'll change the font families to sans-serif. The others can go. Then I'll remove unused classes and add in my classes that I use. There's not many of them so it's not a problem. I will delete the ones that are duplicate (the original ones in the CSS) and I'll edit any of mine if need be based on the original class. Then I use diaps editing toolbag to drop the <p class="some repetitive paragraph style"> to just <p> as that will then use my style. I'll also clean up any unused <span> and <div>. I'll also use the tolbag to remove any divs I don't want as in vellum code. I'll change the titles to <h2> so that again uses my style. I'll then search for class=" so I see what classes are where. I make any changes needed. I do change the smaller text so it's all 1em unless it's supposed to be larger. I'll also change any section breaks to what I prefer. When done, I also change em-dash to have no space before or after. I'll also change en-dash to an em-dash. I'll also change an ellipse to have no space before or after. If it's three periods with or without space, I'll change them to an ellipse character. When I am done, I will run the calibre error checker. Any unused graphics I will delete. Any errors I will fix except for font names as that's not an error. I'll then run epubcheck and when that comes up with no errors, I'm done. This sounds like a lot more work then it really is. |
|
09-13-2024, 01:14 PM | #27 | |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-13-2024, 01:47 PM | #28 |
Grand Sorcerer
Posts: 11,562
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I don't care about pretty code, I only care about how the book looks like on my ereaders. So I do much less than many others here. I don't check before editing, as there is always something I want to change.
After fixing the metadata I open the book in the editor. First, I delete all the unwanted files - ads, samples/excerpts from other books, praise, recommendations and the like. Then I remove unused css, check some of the html files and edit what I don't like. No huge headings, no margins, line-height, unusual font size or any font family in the body text. No spaces between paragraphs. Text indents 1em. Fully justified. Hyphenation disabled. Widows and orphans 1. Nice blockquotes with even left and right margins. I save my edits and look at the book in the viewer. I also check the TOC and fix/create it if needed. If everything is ok, I'll run the page count plugin. An existing page count means I've edited the book. I don't bother with any error checking, as most of them are harmless and will be ignored by my ereaders. Only rarely there is something that makes my Kobo choke. I fix those as they happen. As I said, that's rare. |
09-13-2024, 02:06 PM | #29 | |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-13-2024, 02:09 PM | #30 |
Grand Sorcerer
Posts: 11,562
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
font-family in <body> HTML or body{} CSS? | enuddleyarbl | ePub | 22 | 10-14-2022 11:52 PM |
Preferred Publisher Font for Body Text? | DreamWriter | Amazon Kindle | 12 | 07-25-2012 05:15 AM |
Change body text font from bld to normal | Jackdusty | Conversion | 4 | 03-17-2011 02:21 PM |
Pixel Qi 10" display will be sold as USB powered Secondary Display | Dulin's Books | News | 8 | 09-28-2010 07:15 PM |
Installed Dingbat font won't display in Firefox | autumnmoon | Workshop | 3 | 12-22-2009 11:57 AM |