11-09-2020, 07:32 PM | #16 | ||
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
Quote:
|
||
11-09-2020, 07:44 PM | #17 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
I was using blockquote, following what StandardEbooks does but someone pointed to me that that's semantically incorrect. Reading the spec you almost should always have a cite with a blockquote. |
|
Advert | |
|
11-09-2020, 07:52 PM | #18 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
The only thing that matters to me is that I can use html5. And there isn't much of html5 that I use but it's nice to not be stuck with the old html the old epub uses. I used to go buck wild and use things like section, header, footer, and whatnot but I eventually felt like it was being fancy for no other purpose than to be fancy. I think the only html5 thing I use is header; sometimes there is poetry or a quote after a chapter title and I wrap both the h2 and poetry/quote in a header.
|
11-09-2020, 07:56 PM | #19 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
Code:
article, aside, figcaption, figure, footer, header, main, nav, section { display: block; } address, article, aside, blockquote, canvas, dd, details, div, dl, dt, figcaption, figure, footer, h1, h2, h3, h4, h5, h6, header, hr, li, main, nav, ol, p, pre, section, summary, ul { margin: 0; padding: 0; line-height: inherit; font-style: normal; font-weight: normal; } a, abbr, b, bdi, bdo, cite, code, data, del, dfn, em, i, ins, kbd, mark, q, rp, rt, rtc, ruby, s, samp, small, span, strong, sub, sup, time, var { font-size: inherit; vertical-align: baseline; font-style: inherit; font-weight: inherit; color: inherit; text-decoration: none; } |
|
11-09-2020, 09:03 PM | #20 | |
Bibliophagist
Posts: 35,944
Karma: 145678910
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If I recall correctly, an epub2 renderer is supposed to disregard any elements and attributes it doesn't understand. The problem there is that if you are using the epub3 element for a purpose, now it doesn't happen and that can lead to an ugly rendering of the page. To fix this, you can end up with workaround code which is a pain to maintain since it may not render even close to the same on multiple devices/apps. |
|
Advert | |
|
11-09-2020, 09:52 PM | #21 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
When I upload them here I only upload the epub and I figure if someone's looking for the book in kindle format they can download the epub and convert it in calibre. That's rather cavalier and they probably don't realize that they should look in both the kindle and epub book lists. I've wondered if I could put a stub in the kindle books forum pointing to the epub book with a note saying that they can convert the epub to kindle, but I'm not sure that would fly with the moderators. Then that got me to thinking that mobileread could provide that service (and encourage people to only upload epubs); there are web sites that do conversions and are using calibre on the back end. |
|
11-09-2020, 11:23 PM | #22 | |
Bibliophagist
Posts: 35,944
Karma: 145678910
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Hmmm.... KQN notices? Isn't KQN Kindle Quality Notice so I'm being redundant? Like the old SUB building at UBC? SUB is student union building. Though this discussion had me going back to SlushPile Hell for a quick revisit. Time to get some sleep. 27 hours is too long. Last edited by DNSB; 11-09-2020 at 11:28 PM. |
|
11-12-2020, 12:04 AM | #23 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
.noindent { text-indent: 0em; } to this: .noindent { text-indent: 0; } When the value is 0, you never add the "em." It should work fine after you delete the "em." You should also change the <p> for the nonindented paragraphs to something like: <p class="noindent"> and don't use the <div> line at the top. It's best to assign a class to each kind of paragraph, etc. One for indents (the common indent is 1.2em, not 2em) and one for nonindents. Then you won't need the <div> lines, which only adds clutter to your file. Last edited by deback; 11-12-2020 at 12:07 AM. |
|
11-12-2020, 12:43 AM | #24 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
|
11-12-2020, 12:45 AM | #25 | |
Resident Curmudgeon
Posts: 74,346
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
11-12-2020, 12:51 AM | #26 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
Code:
p { margin: 0; padding: 0; text-indent: 2em; } dl + p, hr + p, header + p, p:first-child, table + p { margin-top: 1.0em; text-indent: 0em; } Last edited by hobnail; 11-12-2020 at 12:56 AM. |
|
11-12-2020, 12:56 AM | #27 | |
Resident Curmudgeon
Posts: 74,346
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
11-12-2020, 09:44 AM | #28 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I'm pretty sure it won't work if you include the "em" when the value is 0. That is, the intended effect for that class will not happen if you include the "em" when the value is 0.
|
11-12-2020, 09:53 AM | #29 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
Well, I like to keep it simple, so I use a different class for each type of paragraph or item for each of the pages. I use names that are easy to remember and use a template file that I can quickly copy and paste into a CSS file (all pasted over the .calibre class) for classes, such as: desc, desc1, epi, epi1, acks, acks1, contents, contents1, chapter, chapter1, ni, text, title, author, publ, etc. This makes it very easy and quick when editing an ePub file. I use find and replace a lot when cleaning up the messy codes that I find so often in poorly formatted files. |
|
11-12-2020, 11:35 AM | #30 | ||
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Code:
p { text-indent: 0em; } Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
css question | ralphiedee | Sigil | 74 | 12-23-2012 06:29 AM |
CSS Question | jackibar | Sigil | 24 | 03-01-2012 09:12 AM |
CSS question | crutledge | Workshop | 17 | 12-17-2011 07:52 AM |
CSS Question | AppleTard | Calibre | 1 | 06-12-2011 12:07 AM |
Question for the CSS experts | crutledge | Sigil | 8 | 06-10-2011 04:13 PM |