Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2020, 07:00 PM   #1
acornty
Junior Member
acornty began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: Kindle PW3
No line space break in between persepctive shifts in narrative

Hello all,

I was hoping someone could help me with a problem. I'm reading a book (an epub) where perspectives often shift within a chapter. To do this, the book is formatted so that whenever the perspective shifts, an empty line is shown in between paragraphs. Unfortunately, on KOReader, these spaces aren't there, making things a bit confusing to read. Is there some simple fix to this I'm just not aware of? I've tried toggling the embedded style on and off and it doesn't fix the problem.

The first attached image shows the problem (there should be a an empty line after “Elder Gods embodied a host of harsh unpleasantries.”), while the second image shows how it should work (same .epub file, but opened in Calibre's ebook reader). I've also tried loading .mobi docs and have run into the same problem.

Any ideas?
Attached Thumbnails
Click image for larger version

Name:	Reader_2020-Apr-15_155111.png
Views:	147
Size:	130.7 KB
ID:	178432   Click image for larger version

Name:	Screen Shot 2020-04-15 at 4.54.21 PM.png
Views:	138
Size:	506.1 KB
ID:	178433  
acornty is offline   Reply With Quote
Old 04-15-2020, 07:19 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
We'll need the exact HTML snippet of such a scene break/PoV shift (which you can access in one of the highlighting menus, IIRC, although since you have Calibre open, that works, too ), as well as any Style tweaks you may have enabled (that's in the top menu > Document tab > Style tweaks), and whether you're actually set to honor embedded styles at all (that's in the bottom menu > Gear tab, IIRC).

Last edited by NiLuJe; 04-15-2020 at 07:22 PM.
NiLuJe is offline   Reply With Quote
Old 04-15-2020, 07:30 PM   #3
acornty
Junior Member
acornty began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: Kindle PW3
Quote:
Originally Posted by NiLuJe View Post
We'll need the exact HTML snippet of such a scene break/PoV shift (which you can access in one of the highlighting menus, IIRC, although since you have Calibre open, that works, too ), as well as any Style tweaks you may have enabled (that's in the top menu > Document tab > Style tweaks), and whether you're actually set to honor embedded styles at all (that's in the bottom menu > Gear tab, IIRC).

Ah, sorry, here you go! I have no style tweaks set. Embedded style is currently on, though I've tried turning it off, with no change to the problem. I've attached the HTML snippet.
Attached Files
File Type: zip index_split_006.html.zip (7.5 KB, 104 views)
acornty is offline   Reply With Quote
Old 04-15-2020, 07:58 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
So, that's an inline br w/ a class. What does the CSS have to say about the calibre1 class?

xref https://github.com/koreader/crengine...ment-613285591
NiLuJe is offline   Reply With Quote
Old 04-15-2020, 09:27 PM   #5
acornty
Junior Member
acornty began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: Kindle PW3
Interesting. So it sounds like it's just a bug then?
acornty is offline   Reply With Quote
Old 04-16-2020, 12:20 AM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quite likely, and one @poire-z was already working on .

Still curious about the actual content of that calibre1 class, in case it's sneakier than what we're currently aware of .
NiLuJe is offline   Reply With Quote
Old 04-16-2020, 10:41 AM   #7
acornty
Junior Member
acornty began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: Kindle PW3
Quote:
Originally Posted by NiLuJe View Post
Quite likely, and one @poire-z was already working on .

Still curious about the actual content of that calibre1 class, in case it's sneakier than what we're currently aware of .
Cool! Here's the stylesheet
Attached Files
File Type: zip stylesheet.css.zip (994 Bytes, 102 views)
acornty is offline   Reply With Quote
Old 04-16-2020, 12:06 PM   #8
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Nothing much to see there.
Code:
.calibre_1 {
    display: block;
    text-align: center;
    text-indent: 0;
    margin: 0
    }
Frenzie is offline   Reply With Quote
Old 04-20-2020, 09:41 AM   #9
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Isn't the use of the br tag for a scene break a misuse of the tag ?

https://developer.mozilla.org/en-US/...TML/Element/br says :

Quote:
The HTML <br> element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.

Note: Do not use <br> to create margins between paragraphs; wrap them in <p> elements and use the CSS margin property to control their size.
A <br> on its own isn't supposed to create an empty line, the simpler solution would be to remove the Calibre_1 classing applied to the breaks (as it might be used elsewhere) and apply a class that set a top and bottom margin to say 1em.

BobC
BobC is offline   Reply With Quote
Old 04-20-2020, 09:49 AM   #10
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Of course, but the HTML being wrong doesn't necessarily mean our rendering is right. ^_^
Frenzie is offline   Reply With Quote
Old 04-20-2020, 11:47 AM   #11
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by Frenzie View Post
Of course, but the HTML being wrong doesn't necessarily mean our rendering is right. ^_^
Understood, I was aiming to point out how the OP could overcome the problem in his book with a bit of simple editing.

BobC
BobC is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No break space and alignment roger64 ePub 40 11-24-2019 11:29 PM
Representing the no-break space roger64 Sigil 11 08-09-2017 02:09 AM
italic at end of line causes next line to start with a space ebookreadr Sigil 29 03-20-2017 11:25 AM
Narrow No-Break Space display roger64 Sigil 6 12-20-2012 02:43 PM
Is it possible to define rules for non break space? habanr Conversion 4 02-22-2011 07:36 AM


All times are GMT -4. The time now is 03:04 AM.


MobileRead.com is a privately owned, operated and funded community.