03-12-2018, 03:39 PM | #16 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just use the CSS I modified and you won't have the large spaces that you don't want.
|
03-12-2018, 04:10 PM | #17 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
03-12-2018, 04:17 PM | #18 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
03-12-2018, 04:36 PM | #19 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Without seeing the html in question, you can't possibly know that your replacement css won't mess anything up.
And seeing as how your css replacement also takes it upon itself to "fix" other things which weren't asked about (the widows/orphans, the alignment, the text-indent, etc...), I have to assume that you're, once again, just taking the opportunity to push your own personal formatting agenda instead of simply trying to answer the question being asked. Don't offer to amputate someone's foot when they asked if their toe looks broken. Last edited by DiapDealer; 03-12-2018 at 04:38 PM. |
03-13-2018, 04:59 AM | #20 |
Connoisseur
Posts: 57
Karma: 600000
Join Date: Jan 2018
Device: Galaxy Tab S2
|
Check for CSS in the head of the HTML document. This will override your CSS if present. Another trick is to vaildate the CSS. Invalid CSS might be followed by some software, other software might ignore the rule, ADe often disregards the whole css if it is invalid. Effective CSS can be in the CSS Stylehseet in a aseparte file, in the head of each html document, inline stylesheets, or even local in your reader or other software marked with the !important clause overriding the css you think which is being used.
|
03-14-2018, 10:04 AM | #21 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
04-10-2018, 04:52 AM | #22 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
04-10-2018, 09:42 AM | #23 |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
NOPE. My "I'm not sure I need to remember this" brain is thinking "MAC." I've seen it either in exported Pages files, Pages as exported faux-Word files, OR, iAuthor.
I'm reasonably sure it's one of those. As far as the why? Dunno. I strongly suspect that iAauthor or Pages is trying to ensure that the content displays exactly as intended, without wrapping or compressing the whitespace. And it patently works in the Apple environment--but it doesn't work worth a damn, at least, not as intended, in ePUB/MOBI. Hitch |
04-10-2018, 11:07 AM | #24 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The iBooks Author (or Pages, or whatever) software adds the white-space pre-wrap css nonsense. I've no idea if it's configurable or can be suppressed within the settings of that particular software, but I don't know why it would default to including such an entry in a reflowable document to begin with. It makes no sense to me to assign it to the body of entire pages of reflowable text.
The issue with Sigil and "white-space: pre-wrap;" (or more specifically; "line-break: strict;") is this: 1) iBooks Creator outputs html that has no line breaks (again ... I've no idea if this is suppressable through preferences/settings or not). Each html file contains one giant line of html code. If left in this form, most renderers will display the epub properly (even with "white-space: pre-wrap;" and "line-break: strict;" present). But the problem RE Sigil is: 2) There is a terrible slowdown associated with large files that contain no line-breaks. If memory serves, it could be something to do with Sigil's code highlighting/line-numbering routines--but don't quote me on that. Sigil becomes nearly unusable under those conditions. 3) So Sigil adds reasonable line breaks to the html to work around this issue. With "normal," reflowable html, this presents no rendering issues whatsoever (extra white-space is always compressed and line-breaks have no influence). But with "white-space: pre-wrap;" and "line-break: strict;" css present, those line-breaks are being rendered and extra spacing is the result. Do any iBooks Author/Pages users know if there are any settings that affect "white-space: pre-wrap;" and "line-break: strict;" css output? More here: https://github.com/Sigil-Ebook/Sigil/issues/345 Last edited by DiapDealer; 04-10-2018 at 11:14 AM. |
04-10-2018, 11:12 AM | #25 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I think sometimes Calibre may introduce pre-wrap in a TXT -> EPUB conversion (?) or when trying to enforce monospaced fonts (?).
I know I've run across it a few times over the years, but can't put my finger on the exact workflow. I tend to throw pre-wrap out right away because on many ereaders, pre-wrapped text just goes flying off the page instead of reflowing correctly. |
05-24-2018, 07:34 AM | #26 |
Connoisseur
Posts: 81
Karma: 48014
Join Date: May 2011
Location: London, UK
Device: iPad Air 4, iPad mini 5, Kobo Forma, Kobo Aura One, Nook ST Glowlight
|
I've just created a book with Apple Pages from a scan, and the body of the book is indeed one huge html file. I'd like to split it into chapters but the 'File Split' button in Calibre's Book Editor doesn't do anything.
Ideas? |
05-24-2018, 08:31 AM | #27 |
Connoisseur
Posts: 81
Karma: 48014
Join Date: May 2011
Location: London, UK
Device: iPad Air 4, iPad mini 5, Kobo Forma, Kobo Aura One, Nook ST Glowlight
|
Sorted - I did an epub to epub conversion which split up the file!
|
05-24-2018, 08:34 AM | #28 | |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Also: I could be wrong, but you seem to be asking for help splitting your file with calibre's editor. This is the Sigil forum. If you're asking how you might use Sigil to split the file instead of using calibre's editor, then I would point you to the Sigil's user manual (the most updated one can be found here). Sigil has two methods for splitting files: 1) marking all of the split locations first, and then performing all of the splits at once, and 2) manually splitting at the location where the cursor is in the file. If you're asking for help getting calibre's editor to split the file the way you want, then you should ask in the calibre forums. |
|
05-24-2018, 12:37 PM | #29 |
Well trained by Cats
Posts: 29,785
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I keep a 'clip' of the Sigil split marker (code) and paste that into a S&R whenever I can establish a Search pattern.
F6 when done with the placement. Merge fractional sections (usually present if an automatic 'size' split has been used) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre paragraph spacing | ebookscovers | Conversion | 4 | 02-01-2018 09:37 PM |
Paragraph spacing | Banks | ePub | 2 | 08-09-2012 05:24 PM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |
Nook Paragraph Spacing | poppies | ePub | 3 | 04-21-2011 12:01 AM |
Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 12:14 AM |