05-20-2024, 04:25 PM | #16 |
Wizard
Posts: 1,361
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
05-20-2024, 05:37 PM | #17 | |
Well trained by Cats
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
If you need to style it, then use span |
|
Advert | |
|
05-20-2024, 05:48 PM | #18 |
Enthusiast
Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
Interesting, since I had just used <em> in HTML and Calibre added the class. So if I just did <em> and </em>, would that work? Weirdly, this only seems to be an issue in blockquote and not elsewhere (there are italics sprinkled throughout the book).
Thank you! |
05-20-2024, 05:58 PM | #19 |
the rook, bossing Never.
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Exporting from LO Writer via Save As docx would give something like
Code:
<p class="quote">“—the vastness, profundity, and unsearchableness of His works, <span class="emp">which have a depth in them greater than the well of Democritus.</span>”</p> Any change within <hn>, <p> or <blockquote> is always needing a <span> Consider editing odt files in LO Writer using paragraph styles and an "export" via Save As in docx for Calibre (don't open the docx in LO Writer). All the paragraph styles map 1:1 to <p> with 1:1 CSS and all character styles map 1:1 to <span> I use Edit Span & Divs tool to fix back any <p class="some heading" etc to be <h2 class="some heading" etc, less than a minute. Last edited by Quoth; 05-20-2024 at 06:01 PM. |
05-20-2024, 06:04 PM | #20 | |
the rook, bossing Never.
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Blockquote isn't really needed at all if it has a class setting margins, indents, padding, font etc. A <p class="whatever" is fine. KISS principle. Don't multiply entities unless needed. |
|
Advert | |
|
05-20-2024, 07:20 PM | #21 |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-20-2024, 10:08 PM | #22 |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Code:
<blockquote class="calibre8">Come hither, my lads, with your tankards of ale,<br class="calibre4"/> Code:
<blockquote class="calibre8">“—the vastness, profundity, and unsearchableness of His works, <em class="calibre6">which have a depth in them greater than the well of Democritus.</em>”</blockquote> When I repeated running epubcheck using epub2, I needed to add a block tag inside the blockquotes which oddly is what first error message posted for both was complaining about. I tested with <div> and <p>, any of the others would likely work. Code:
<blockquote class="calibre8"><p>Come hither, my lads, with your tankards of ale,<br class="calibre4"/></p></blockquote> <blockquote class="calibre8"><p>“—the vastness, profundity, and unsearchableness of His works, <em class="calibre6">which have a depth in them greater than the well of Democritus.</em>”</p></blockquote> Last edited by DNSB; 05-20-2024 at 10:11 PM. |
05-21-2024, 01:01 AM | #23 |
Grand Sorcerer
Posts: 12,760
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Or maybe, use an editting tool like sigil to create the epub.
|
05-21-2024, 04:35 PM | #24 |
Enthusiast
Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
|
05-21-2024, 04:52 PM | #25 |
Grand Sorcerer
Posts: 12,760
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
05-21-2024, 05:02 PM | #26 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-21-2024, 05:04 PM | #27 |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-21-2024, 05:52 PM | #28 |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
calibre's conversion has some issues with the ePub standards since ePub implements a subset of the CSS2/3 and enforces some html/xhtml bits that have been deprecated for many browsers. For instance, most browsers do not require the <!DOCTYPE> anymore while the ePub specifications still mandate this.
My process when I must convert HTML to ePub is to do the conversion in calibre since it gets rid of much of the header cruft that is not used/needed for an ePub. After this I open the ePub in Sigil and do the cleanup and any editing in there. Sigil as an ePub editor is a lot more concerned with being ePub specification compliant than calibre and that makes my life a bit easier. The other posters here who suggest using either Microsoft Word or LO Writer saving as docx and then converting that with calibre or importing to Sigil as being the easier path are correct as long as the author is careful to use styles to format the document (header, paragraph, etc.). I've received some .docx files where the author treated the screen as a glass typewriter and they are a pain to deal with. With those, the easiest route I've found is to save the file as a text file and then add the styling in Sigil. |
05-23-2024, 12:05 PM | #29 |
Enthusiast
Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
Thank you all for the thoughts; I really appreciate it.
I am curious why you all are saying Sigil is easier to use for editing than Calibre. They both seem about the same to me, so I wonder if Sigil has a feature I am not taking advantage of. I tried "Mend Code" but that did not seem to do anything. Honestly, all of the HTML functions just fine as HTML - it's just a matter of not knowing the proper epub syntax for some of it. It seems that <div> </div> works in the blockquotes in place of the line break, though in Sigil with the Flightcrew plugin, I then received this error, which I had not gotten with epubchecker - "Error schema not satisfied : no character data is allowed by content model near column 157". This just refers to a </blockquote> tag, so I am really not sure what the issue is: <blockquote class="calibre8">“—the vastness, profundity, and unsearchableness of His works, which have a depth in them greater than the well of Democritus."</blockquote> Also, <span> did not work inside the blockquotes for italics. I think I am just going to drop the italics from any blockquotes and call it a day. Maybe it would have been cleaner to just do this all in Word from the beginning using styles, but I thought the HTML would have been better. But at this point, with over 6000 lines of HTML, I think it is going to be easier to just fix the errors than start from scratch on the formatting. Most of it works fine. Next time, I'll use a paragraph style instead of the <blockquote> tag! |
05-23-2024, 12:50 PM | #30 |
Enthusiast
Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
Actually, I discovered a much easier and cleaner way to fix all the blockquote issues. Since Calibre had converted the blockquote into a style, I just replaced every "blockquote" with "p" (leaving in the calibre style reference) and that looks like it may have done the trick.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EpubCheck Error | gstock97 | Editor | 7 | 07-23-2021 09:58 AM |
EPUBCheck error | gsosigil | Sigil | 3 | 03-21-2021 07:24 PM |
Epubcheck misses error | exaltedwombat | Sigil | 12 | 09-24-2019 05:02 PM |
Error epubcheck | Buble | ePub | 43 | 08-15-2014 02:53 AM |
Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 04:17 AM |