![]() |
#16 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
My next struggle is line breaks or emphasis within block quotes. Here are two examples:
Error: 28, 79: Error while parsing file: text not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg") 28, 100: Error while parsing file: element "br" not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg") Here is the code: <blockquote class="calibre8">Come hither, my lads, with your tankards of ale,<br class="calibre4"/> Error: 26, 94: Error while parsing file: text not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg") 26, 114: Error while parsing file: element "em" not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg") Here is the 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> Thank you all again! |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,278
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,257
Karma: 57979022
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 |
|
![]() |
![]() |
![]() |
#19 |
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! |
![]() |
![]() |
![]() |
#20 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,233
Karma: 89531599
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 05:01 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,233
Karma: 89531599
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. |
|
![]() |
![]() |
![]() |
#22 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,652
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#23 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,828
Karma: 153006036
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 09:11 PM. |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Or maybe, use an editting tool like sigil to create the epub.
|
![]() |
![]() |
![]() |
#25 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
|
|
![]() |
![]() |
![]() |
#26 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#27 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,652
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,652
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#29 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,828
Karma: 153006036
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. |
![]() |
![]() |
![]() |
#30 |
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! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
EpubCheck Error | gstock97 | Editor | 7 | 07-23-2021 08:58 AM |
EPUBCheck error | gsosigil | Sigil | 3 | 03-21-2021 06:24 PM |
Epubcheck misses error | exaltedwombat | Sigil | 12 | 09-24-2019 04:02 PM |
Error epubcheck | Buble | ePub | 43 | 08-15-2014 01:53 AM |
Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 03:17 AM |