Thread: Kobo H2O bug
View Single Post
Old 03-10-2018, 09:57 PM   #34
PKFFW
Wizard
PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.PKFFW ought to be getting tired of karma fortunes by now.
 
Posts: 3,791
Karma: 33500000
Join Date: Dec 2008
Device: BeBook, Sony PRS-T1, Kobo H2O
Sorry to revive this thread but I thought maybe someone who knows stuff about code could help out with this one.

I hope I'm not breaking any rules by posting a short bit of the Sigil code for reference, if I am, please report it to the mods and they can delete this post.

Firstly, just for clarity, this is about the second issue I raised in this thread, to recap, here's the issue in short.....
The issue occurs on both my wife's Sony PRS-T2 and my Kobo H2O
Whenever there is an "ornamental break" in the page it messes with how the pages display.
With this particular example posted below, here are the problems;
1: With font size set to minimum, when Chapter 43 ends and you turn the page it jumps to the ornamental break and doesn't even load up the start of Chapter 44.
2: If font size is set to any other level when turning the page from the end of Chapter 43 it will load up from the start of Chapter 44. However much text can fit on the page is displayed and then when you next change the page it jumps to the "ornamental break". Depending on the size of the font it may be missing anything from a line or two up to a paragraph or more.
3: There was an SVG file titled "vellum-created.svg" in the images directory. However, in an attempt to fix the problem I used Calibre to change it from the original epub to a new epub. Now there is no such file in the images.

ETA: The "ornamental break" appears to be a simple *** between one scene and the next.


Here's the code in question......

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>Chapter Forty-Four</title>
<meta content="urn:uuid:be6c1b7e-f650-475a-ab7a-c1c07c0e535a" name="Adept.expected.resource" />
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css" />
</head>

<body class="cover">
<section epub:type="chapter" id="chapter-forty-four">
<div class="heading" id="chapter-forty-four-heading">
<div class="title-page-contributor-primary-block">
<div class="title-page-contributor-primary-block">
<div class="element-number-block"></div>

<div class="title-page-contributor-primary-block">
<h1 class="title">Chapter Forty-Four</h1>
</div>

<h3 class="subtitle">Ryan</h3>
</div>
</div>
</div>

<div class="title-page-contributor-primary-block" id="chapter-forty-four-text">
<p class="first"><span><span>D</span>amn!</span> A fire alarm at this time of night? I was still up, of course, concerned about Ruby. Where was she? I opened the door to our room. People were congregating in the halls, trying to get to the stairwells. It was a giant <span class="last-word">clusterfuck</span>.</p>

<p class="first">I sniffed. No smoke. It had to be a hoax. Some kid probably thought it was funny to pull the alarm. High school bullshit. I went back into the room and shut the door. I wasn’t <span class="last-word">leaving</span>.</p>

<p class="first">Quickly I checked my phone. Nothing. I paced the living area, most likely leaving a trail on the thin hotel carpeting. Her apartment hadn’t yielded any clues other than the book and the paper, but neither of those gave me any idea where she might <span class="last-word">be</span>.</p>

<p class="first">I couldn’t lose her. Not now. Not <span class="last-word">ever</span>.</p>

<p class="first">I thought back to our first walk on the beach in Jamaica in the <span class="last-word">moonlight</span>.</p>
<hr class="ornamental-break" />

<p class="first"><i class="calibre2"><span><span>H</span>er eyes were</span> the clearest blue. Amazing I could see them in the dark, but they were <span class="last-word">mesmerizing</span>.</i></p>

Last edited by PKFFW; 03-10-2018 at 10:15 PM.
PKFFW is offline   Reply With Quote