![]() |
#31 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
|
![]() |
![]() |
![]() |
#32 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
|
Quote:
![]() I use the GitDen EPUB reader because of my good experience for HTML, CSS, JavaScript and Video support. What versions 2 and 3 of your EPUB example share is that my GitDen app quits every time. I've experienced that before while testing "What Can't and What Can Do" in an EPUB. I don't feel the need to say anything to the already given value judgment of the CSS file given by others. Certainly in an EPUB reader environment where a minimal implementation of the EPUB standard is unfortunately more the rule than the exception, I would rather opt for a "Less is more beauty" approach. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | ||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
Spoiler:
Quote:
Anyway, thanks again for your time. |
||
![]() |
![]() |
![]() |
#34 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
edit: I ran your epub through epubcheck which had no issues with it. OTOH, validating your stylesheet through the W3C checker came up with multiple errors. Some of them I would disregard but there were several that caused issues on my ereaders. Code:
1 This profile has a very specific syntax for @charset: @charset followed by exactly one space, followed by the name of the encoding in quotes, followed immediately by a semicolon. @charset "UTF-8"; 37 Parse Error [epub|type~="toc"] ol] 41 Parse Error [epub|type~="landmarks"]] 41 Parse Error [epub|type~="page-list"]] Last edited by DNSB; 08-20-2021 at 02:20 PM. |
|
![]() |
![]() |
![]() |
#35 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
I'm attaching the ePub for your review if you (or anybody else) have time for it. Thanks. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
|
Quote:
Let's first look if the orphan and windows behavior has something to do with print media setting. For the screen media display, you specify the body an orphan and window value of 2 lines. No orphan and window value for print media is specified. Code:
@media print { body { widows: 2; orphans: 2; } } |
|
![]() |
![]() |
![]() |
#37 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,075
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
2 is default usually if nothing is set, though it may depend on App or brand of ereader.
Does @media print etc even work at all on all ereaders (or only some) or does any change of windows or orphans from 2 need set in other classes that are in the HTML for various styles in use? |
![]() |
![]() |
![]() |
#38 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
|
Quote:
I actually suspect that when loading the EPUB via a kind of print flow. This flow converts the reflowable EPUB to a (form of) fix-page layout. I'm basing that on the PDF in this post, showing the page numbers. If it turns out that splitting over several pages after recording the @media print has an effect, that doesn't say anything about the support on an EPUB reader when the uploaded file is downloaded to the E-Reader. That's something we should test in the next test step |
|
![]() |
![]() |
![]() |
#39 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
My CSS has this now Code:
body { font-family: 'Literata'; font-size: 100%; font-weight: normal; text-align: justify; line-height: 1.35; margin: 0; padding: 0; -webkit-hyphens: none; hyphens: none; widows: 1; orphans: 1; } @media print { body { widows: 1; orphans: 1; } } |
|
![]() |
![]() |
![]() |
#40 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Hitch |
||
![]() |
![]() |
![]() |
#41 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,075
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Below tested in LO Writer using and EXTRA save As in docx, but edit as ODT. Paragraph Styles in Wordprocessor Docx (From Word or LO Writer) created as css by Calibre that work on nearly anything, even mostly KF7/Mobi: Paragraph top margin Paragraph bottom margin Left indent Right indent First line indent. You can copy the regular paragraph style and have 2nd style with this as zero for after anything centred. Left, centred, right or fully justified: Centred is good for headings, right for marginalia and Left for poems / lyrics Font size, normal, bold, italic and bold+ italic. A box and text spaced in it (one paragraph, but Newline via Shift Enter works). Line width works. Surprised me Underline works. But only have it automatically for links Colours / shades work, but madness. Use Level1, Level2 for headings in TOC/NCX. Use text level for all other headings as more than two levels may not work. Becomes H1, H2 in CSS/HTML. Use Page Break before in any paragraph style that needs to start on a new page. Might only work with H1 and H2 in mobi. Images can be centred, left or right. Best as a separate paragraph and embedded as a character. Relative width is possible. Avoid big. Line height works, but is a bad idea, especially for the main content / body Things that are problems: Choosing your own fonts works on KF8 and epub2 on ereaders that support "Publisher font". You need to embed and subset in Calibre Conversion and you may need to select Embed Fonts in wordprocessor properties, especially if a different computer is used for Calibre. Mobi-KF7 will support monospace (Courier), sans-serif and serif on a good day depending on your WP choices. But if you upload epub2 to Amazon, the resultant download in mobi-KF7 for ancient eink should be doing monospace (Courier), sans-serif and serif if the epub2 CSS makes sense. But there is NO assurance that the user will select Publisher font. Test on a Kindle (KF8) and Kobo epub2 (Not kepub) that NOT using the publisher font is still readable. Footnote support is erratic and they are evil to edit in WP as a note can vanish if you delete the reference. Simulate footnotes with link to anchor of the note and an anchor at source and link back. Put them either in an intermediate chapter at the end of a chapter or all at the end in an appendix chapter. Flowing text around and image only works on some ereaders and formats. A small image in a line won't resize when people change the font size so should be avoided. Small caps might not work. Drop caps can be images with flowed text or "real" drop caps. The images and the font versions are quite likely to sit up on the base line on many formats and models and apps. Avoid. It's a publisher ego thing that slows people reading. Users won't miss them. Animated images, video, sound or interactive works on hardly anything. Only a handful of epub3 apps. Better to write an app. You can't fill in forms on most things. Right to Left and Vertical languages may not work. Last edited by Quoth; 08-23-2021 at 08:24 AM. Reason: User selection |
|
![]() |
![]() |
![]() |
#42 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,075
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Really bad Android ePub apps might ignore CSS. Lithium, Aldiko Classic and KOReader are OK, but the user can overide almost anything with KOreader.
|
![]() |
![]() |
![]() |
#43 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,075
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
But Hitch and Tex are the gurus on this stuff.
I'm lazy so I only edit the CSS & HTML (as little as possible) of the PD books and sometimes books I buy. I only edit the LO Writer "odt", Save As docx and convert to epub2 in Calibre for our own. Any new LO style is tested on the real ereaders and Apps and if not "good", the LO style is edited, not the CSS/HTML. New styles are now rare. |
![]() |
![]() |
![]() |
#44 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And I have customers that want this or that, b/c it's like that in their print book, so I end up involved in it and learn that we can't do this, or we can do that. Tex is the real guru. I'm...along for the ride. :-) Hitch |
|
![]() |
![]() |
![]() |
#45 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,778
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1) Reasily 2) Gitden 3) PocketBook 4) Lithium 5) Overdrive The difference between 1-3 are tiny; I use mainly PocketBook because it has features not present in Reasily or Gitden (for example, Reasily doesn't have TTS nor hyphens). But the support for css3 in ereaders 1-3 is very good (to my surprise, they even support calc and custom variables). |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display Google Play ebook purchases? | ChipAHoy | Amazon Kindle | 2 | 10-24-2017 10:49 PM |
Loading eBooks to Google Play Issue | SamL | Android Devices | 3 | 02-15-2014 02:48 PM |
Nested lists with paragraphs | sdm1130 | Kindle Formats | 4 | 11-22-2011 06:32 PM |
Nested Ordered Lists | andyd273 | Conversion | 9 | 11-17-2011 12:05 PM |
Classic Nook Nested Lists | ldespain | Barnes & Noble NOOK | 0 | 08-08-2011 04:06 PM |