08-30-2023, 04:00 PM | #46 | |
Bibliophagist
Posts: 40,603
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The work flow is:
The total elapsed time is about 10-15 minutes. I prefer to read left justified (AKA ragged right) so remove any text-align: justified bits. Since Vellum uses a class for indented paragraphs, I live with that though my personal preference is the default paragraph is indented since there are so many more of them in most ebooks. Code:
body { display: block; font-size: 1em; margin: 0 0 0 0; padding: 0 0 0 0; text-indent: 0; widows: 1; orphans: 1; } p { text-indent: 0; margin: 0 0 0 0; padding: 0.1em 0 0 0; } p.subsq { text-indent: 4%; } Last edited by DNSB; 08-30-2023 at 04:04 PM. |
|
08-30-2023, 08:38 PM | #47 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I dump all <p class="someuselessclass"> and make it <p>. I then go through the HTML looking at the classes and seeing what needs to be fixed. It can be pretty quick at times.
|
08-31-2023, 01:24 PM | #48 |
Evangelist
Posts: 461
Karma: 7897546
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
I absolutely hate those naming conventions, for so many reasons:
|
08-31-2023, 02:21 PM | #49 |
the rook, bossing Never.
Posts: 12,379
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
See, there are things we completely agree on, like meaningful names for stuff. And these folk probably never had to suffer CP/M, ISIS and DOS short filenames.
OTOH if the epub is entirely automated creation using Calibre from a properly styled docx, then the only time the "creator" sees the CSS is to edit the properties of a few image classes. With meaningful names! Last edited by Quoth; 08-31-2023 at 02:24 PM. |
08-31-2023, 02:32 PM | #50 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But yes, a lot of CSS have really meaningless class names and Vellum gives really long names that are less then meaningless. |
|
08-31-2023, 04:38 PM | #51 | |
Bibliophagist
Posts: 40,603
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
inline-image inline-image-after-section-begin inline-image-flow-within-text inline-image-flow-left inline-image-flow-within-text inline-image-flow-right |
|
08-31-2023, 06:01 PM | #52 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-01-2023, 10:36 AM | #53 | |
Evangelist
Posts: 461
Karma: 7897546
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
As far as I know, there aren't any WYSIWYG editors that allow you to create a "box" and use relative margins on a group of paragraphs. Even ones that are designed for eBook editing don't have this feature. And, you can only apply one style to a paragraph in the DOCX format, so you can't take advantage of class="indent spacebefore", so you end up with way too many individual paragraph styles. Even I'm guilty of this a bit, because most of my EPUBs were targeted at my first reader (Onyx Boox), and it couldn't handle multiple classes in the attribute. So, I have both "indent" and "indentspacebefore" classes. |
|
09-01-2023, 10:39 AM | #54 | |
Evangelist
Posts: 461
Karma: 7897546
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
The img tag gets special treatment by too many readers to be sure it will do what you want. |
|
09-01-2023, 11:47 AM | #55 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
SVG doesn't always work. In fact, it works less then the way I do it with CSS, div, and img.
|
09-01-2023, 12:16 PM | #56 | |
the rook, bossing Never.
Posts: 12,379
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
You are giving yourself extra work by obsessing over what is possible than simply using what works very very well. Excessively complex use of CSS box model leads to errors and maintainability issues. It's not even needed for ebooks and has to be flattened to process to make a version to edit for paper. It's purely a shorthand. Ebooks are not web pages/sites. They just happen to use some of the same technology. Also even a lot of web sites are now a bit broken because of people wanting latest browser feature and rating appearance higher than usability (such as grey text, unfolding or zooming as you "move" down the page etc). Last edited by Quoth; 09-01-2023 at 12:19 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking to CSS stylesheet | mossman26 | Sigil | 2 | 07-16-2020 03:38 PM |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-25-2017 12:10 AM |
stylesheet.CSS anyone? | ProDigit | ePub | 81 | 12-26-2015 02:43 PM |
Converting cm to em in css stylesheet | roger64 | ePub | 41 | 06-13-2014 02:00 PM |
Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 03:12 PM |