Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2022, 06:04 PM   #1
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Reader is throwing a page when not needed

I have come across a weird problem with my Sony PRS-350. All the books I have read have been fine but the latest one has a format problem where at one point it throws a page when the page is only half full.

It is an epub generated by Calibre, as are all my other books. When I look at the epub through Calibre it is fine and there are no strange characters inserted which might cause this to happen. I have a second PRS-350 and the same happens on that one so I don't think the reader is faulty.

I have even used the old Sony library to copy the book across just to see if this caused the same error. It did, so it is something within the reader and not Calibre doing this.

I am baffled as to why this should be and just wondered if anyone had come across this. Does anyone have any idea why this might be happening?
lizzielou is offline   Reply With Quote
Old 09-06-2022, 10:23 AM   #2
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
This is just a guess, but I wonder if the data is split between two files at that point? There is a maximum file size of roughly 300kB for older versions of the RMSDK, so larger structures are split into chunks smaller than that. If so, maybe you could recombine the data and split it yourself between chapters so that you don't notice the page break.
rkomar is offline   Reply With Quote
Advert
Old 09-06-2022, 11:45 AM   #3
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Thank you for your reply.

The epub file is 674 kb in Calibre and also on the reader. I have looked at the file on the reader and there is only one file. I have had books much larger with no problem. I am completely baffled.
lizzielou is offline   Reply With Quote
Old 09-06-2022, 02:35 PM   #4
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
The epub itself can be larger than 300kB, but no html file inside it can be larger than that. Epubs are just zip files, so you can look inside them if you want to see what is in there. If you open a copy of the epub with Calibre's ebook-edit program, you can look at the data files inside and see if one of them ends right at the page where you have a problem on the ereader. If so, then you know it has to do with that. If not, then the problem is elsewhere.
rkomar is offline   Reply With Quote
Old 09-06-2022, 03:41 PM   #5
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
I have changed the type to zip and extracted the html files but the largest one of these is 56k. All the text in the chapter in question is within one of the files so I am stuck.

If anyone else has come across this I would love to know
lizzielou is offline   Reply With Quote
Advert
Old 09-06-2022, 04:10 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lizzielou View Post
I have come across a weird problem with my Sony PRS-350. All the books I have read have been fine but the latest one has a format problem where at one point it throws a page when the page is only half full.

It is an epub generated by Calibre, as are all my other books. When I look at the epub through Calibre it is fine and there are no strange characters inserted which might cause this to happen. I have a second PRS-350 and the same happens on that one so I don't think the reader is faulty.

I have even used the old Sony library to copy the book across just to see if this caused the same error. It did, so it is something within the reader and not Calibre doing this.

I am baffled as to why this should be and just wondered if anyone had come across this. Does anyone have any idea why this might be happening?
The version of RMSDK used on the 350 is old. It's not very tolerant of errors. To me is sounds like there is an error or what RMSDK perceives is an error.

Make sure you have the epubcheck plugin installed. Load the ePub into the Calibre editor and using epubcheck, check for errors and any found, fix them. That should solve the problem.
JSWolf is offline   Reply With Quote
Old 09-07-2022, 04:21 AM   #7
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Thank you for your reply.

I have run epubcheck and I get four errors like this:-

Unknown property 'panose-1'. [page_styles.css]
page_styles.css (line: 8 column: 4)

the lines in the css file referred to are the panose line below:-

@font-face {
src: url(fonts/Book-Antiqua.ttf);
font-family: "Book Antiqua";
panose-1: 2 4 6 2 5 3 5 3 3 4
}

Sadly, I don't know anything about css language, however, I have now run this on all my epub books that I have read over the years and they all show this error but display correctly so I don't think this is causing the error in this particular book.

I am still baffled.
lizzielou is offline   Reply With Quote
Old 09-07-2022, 06:56 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lizzielou View Post
Thank you for your reply.

I have run epubcheck and I get four errors like this:-

Unknown property 'panose-1'. [page_styles.css]
page_styles.css (line: 8 column: 4)

the lines in the css file referred to are the panose line below:-

@font-face {
src: url(fonts/Book-Antiqua.ttf);
font-family: "Book Antiqua";
panose-1: 2 4 6 2 5 3 5 3 3 4
}

Sadly, I don't know anything about css language, however, I have now run this on all my epub books that I have read over the years and they all show this error but display correctly so I don't think this is causing the error in this particular book.

I am still baffled.
In the editor, look at the chapter that does not fully display. Please post two paragraphs before the disappearing text and two after so we can maybe see what's going on. But you do have to post the chapters with the HTML code.

Aso, click the icon in the toolbar that looks like a bug. That's the built-in error checker. See what you get there.
JSWolf is offline   Reply With Quote
Old 09-07-2022, 07:25 AM   #9
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,154
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Put - at panose
Quote:
@font-face {
src: url(fonts/Book-Antiqua.ttf);
font-family: "Book Antiqua";
-panose-1: 2 4 6 2 5 3 5 3 3 4
}
Then epub checks will ignore it, but anything that needs it will still work.

That's not the issue!
Quoth is offline   Reply With Quote
Old 09-07-2022, 11:42 AM   #10
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Thank you for your reply. I think this is what you were asking for:-

Last few paragraphs of chapter
------------------------------
<p class="calibre4">Prospero took no interest in courtesy. He simply turned, opened the door, and left the room, leaving all the farewells to his companion. Caliban had to hurry just to keep up with him.</p>
<p class="calibre4">Fredda watched them go, and found herself once again wondering about Prospero. She did not understand what went on behind those glowing eyes. There was something not quite right about a robot that—that secretive. She shook her head as she crossed the room. Not much point in worrying about it now. She sealed the door shut behind them and scrambled the keypad. Only she and Caliban and Prospero knew the door's keypad combination.</p>
</div>
<div class="s1">
<p class="calibre4">And there were times she thought seriously about taking at least one name off that list.</p>
</div>
</div>
<div class="calibre1">
<div class="s"><div class="calibre3" id="calibre_pb_3"></div>
</div>
</div>
</div>
</body></html>

First few paragraphs of next chapter
------------------------------------
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="http://calibre-ebook.com"/>
<title>Utopia</title>
<meta name="author" content="Roger MacBride Allen"/>
<meta name="creation-time" content="2019-2-23"/>
<meta name="revision-time" content="2022-9-6"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<div class="calibre1">
<div class="calibre1">
<div class="s">
<h1 id="calibre_toc_4" class="calibre2">Chapter 2</h1></div>
<div class="s1">
<p class="calibre4">Caliban followed Prospero down the tunnel. It ran for about a hundred meters, and deposited them at the base of a ravine that was otherwise quite inaccessible to the house. Their aircar was hidden there.</p>
<p class="calibre4">"I would like to know what all that was about," Caliban said as they emerged from the tunnel into the cool of the evening.</p>

-------------------------------
The last paragraph in the first chapter beginning 'And there were times' should just be on a new line and not a new screen. I notice there is a class=S1 line before it but don't understand html so not sure what it is. However, I have removed that line in the editor and the one above it and tried again but this still shows on a new screen. Also, I edited the panose line as suggested but it made no difference to the display.

Last edited by lizzielou; 09-07-2022 at 11:46 AM.
lizzielou is offline   Reply With Quote
Old 09-07-2022, 05:40 PM   #11
Martinoptic
Bibliolater
Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.
 
Martinoptic's Avatar
 
Posts: 4,762
Karma: 2600000
Join Date: Dec 2021
Location: England
Device: none
I think we need to see your css insofar as what is class=“s1” defined as. It looks as if it might be forcing a new page?
Martinoptic is offline   Reply With Quote
Old 09-08-2022, 04:59 AM   #12
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,154
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Those extra divs, especially class="s" are suspect. You can use the tools in Calibre editor to remove all div with a class="s"

The panose edit was just to make epubcheck happy and has no effect on display.
This is more normal:
Quote:
<p class="calibre4">Prospero took no interest in courtesy. He simply turned, opened the door, and left the room, leaving all the farewells to his companion. Caliban had to hurry just to keep up with him.</p>
<p class="calibre4">Fredda watched them go, and found herself once again wondering about Prospero. She did not understand what went on behind those glowing eyes. There was something not quite right about a robot that—that secretive. She shook her head as she crossed the room. Not much point in worrying about it now. She sealed the door shut behind them and scrambled the keypad. Only she and Caliban and Prospero knew the door's keypad combination.</p>
<p class="calibre4">And there were times she thought seriously about taking at least one name off that list.</p>
</body></html>
If each chapter starts in a new HTML file then they don't affect each other. Best anyway.

Last edited by Quoth; 09-08-2022 at 05:03 AM.
Quoth is offline   Reply With Quote
Old 09-09-2022, 06:51 AM   #13
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Thank you again for your help. I am new to Calibre conversion having always used BookDesigner and lrfs so I am learning as I go along. For some reason I had heuristic option set on but that caused another problem with another book which has been corrected when I switched it off.

Now I reconverted this book but the same happened but the break was at a different place a few lines earlier - 'Only she and Calaban' then split to the next page. I don't think it is a particular sentence that is causing the page throw, it always appears at exactly the same place on the screen - half way down. After the few lines are displayed on the next screen there is a correct page throw to the next chapter.

This is the html / css from the latest conversion without the heuristic option:-

---------------------- first html
think of my reasons for doing so," she said, "I must ask you again to leave, by the back way. Our next appointment is in three days, is it not?"</p><p class="calibre4"> "Yes," said Prospero. "We have several other appointments that will take up the intervening time."</p><p class="calibre4"> "Fine then. Return in three days, in the afternoon, and we will conclude our business."</p><p class="calibre4"> Caliban nodded his head towards her, in what was almost a bow. "Very well," he said in a most courteous tone. "We will see you at that time."</p><p class="calibre4"> Prospero took no interest in courtesy. He simply turned, opened the door, and left the room, leaving all the farewells to his companion. Caliban had to hurry just to keep up with him.</p><p class="calibre4"> Fredda watched them go, and found herself once again wondering about Prospero. She did not understand what went on behind those glowing eyes. There was something not quite right about a robot that—that secretive. She shook her head as she crossed the room. Not much point in worrying about it now. She sealed the door shut behind them and scrambled the keypad. Only she and Caliban and Prospero knew the door's keypad combination.</p></div><div class="s1"><p class="calibre4"> And there were times she thought seriously about taking at least one name off that list.</p></div></div><div class="calibre1"><div class="s"><div class="calibre3" id="calibre_pb_3"></div>
</div></div></div></body></html>
---------------------- next html
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="http://calibre-ebook.com"/>
<title>Utopia</title>
<meta name="author" content="Roger MacBride Allen"/>
<meta name="creation-time" content="2019-2-23"/>
<meta name="revision-time" content="2022-9-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<div class="calibre1">
<div class="calibre1">
<div class="s">
<h1 id="calibre_toc_4" class="calibre2">Chapter 2</h1></div><div class="s1"><p class="calibre4"> Caliban followed Prospero down the tunnel. It ran for about a hundred meters, and deposited them at the base of a ravine that was otherwise quite inaccessible to the house. Their aircar was hidden there.</p><p class="calibre4"> "I would like to know what all that was about," Caliban said as they emerged from the tunnel into the cool of the evening.</p><p class="calibre4"> "I spoke the truth," Prospero said coolly. "It was in part merely a test to see how she would react to such an accusation. Surely you would agree it is worth knowing if she is capable of betraying us." Prospero climbed into the pilot's station.</p><p class="calibre4"> Caliban followed, climbing into the forward
-----------------------------------
page style css

@page {
margin-bottom: 0;
margin-top: 0
}
@font-face {
font-family: "Book Antiqua";
panose-1: 2 4 6 2 5 3 5 3 3 4;
src: url(fonts/Book-Antiqua.ttf)
}
@font-face {
font-family: "Book Antiqua";
panose-1: 2 4 7 2 5 3 5 3 3 4;
src: url(fonts/Book-Antiqua-Bold.ttf);
font-weight: bold
}
@font-face {
font-family: "Book Antiqua";
panose-1: 2 4 5 2 5 3 5 10 3 4;
src: url(fonts/Book-Antiqua-Italic.ttf);
font-style: italic
}
@font-face {
font-family: "Book Antiqua";
panose-1: 2 4 7 2 6 3 5 10 2 4;
src: url(fonts/Book-Antiqua-Bold-Italic.ttf);
font-style: italic;
font-weight: bold
}
----------------------
stylesheet css

.calibre {
display: block;
font-family: "Book Antiqua", serif;
font-size: 1.08333em;
line-height: 1.2;
padding-left: 0;
padding-right: 0;
text-align: left;
margin: 0 5pt
}
.calibre1 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em
}
.calibre2 {
display: block;
font-size: 1em;
font-weight: bold;
line-height: 1.2;
margin: 0.67em 0
}
.calibre3 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em
}
.calibre4 {
border-bottom: 0;
border-top: 0;
display: block;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em;
margin: 0
}
.none {
font-style: italic;
font-variant: normal;
font-weight: normal;
text-decoration: none
}
.s {
border-bottom: 0;
border-top: 0;
display: block;
font-weight: bold;
margin-bottom: 0;
margin-top: 0;
text-align: center;
padding: 0
}
.s1 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-top: 0;
text-align: left;
text-indent: 1.5em;
padding: 0
}
--------------------------

I am sorry to perservere with this but I have converted all my books using Calibre and, apart from losing real page numbers, have been very happy with epubs but this is puzzling. I have a prs-300 and the same thing happens with that.

It would be really nice to know what is causing this and not put it down to one of life's little mysteries.
lizzielou is offline   Reply With Quote
Old 09-12-2022, 12:06 PM   #14
lizzielou
Connoisseur
lizzielou began at the beginning.
 
lizzielou's Avatar
 
Posts: 65
Karma: 10
Join Date: Nov 2009
Location: No longer near a beach in Spain - back in the UK
Device: Sony PRS-505, 300, 350 & 650
Amazing ! Miracles do happen !

I have created a new Calibre library (I use a portabe one) and now everything works. I have no idea why and how but it is all ok now

One of life's mysteries.
lizzielou is offline   Reply With Quote
Old 09-12-2022, 02:10 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lizzielou View Post
Amazing ! Miracles do happen !

I have created a new Calibre library (I use a portabe one) and now everything works. I have no idea why and how but it is all ok now

One of life's mysteries.
It could have been something in the settings of your library (before you created the new library).
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is @page needed in an ebook? DyckBook ePub 3 11-05-2021 08:28 PM
Advice needed on full-page images and auto-rotating readers doubleshuffle Workshop 12 10-26-2017 12:39 PM
Advice/Help needed on Cover Image and First Page when converting files on Calibre abzde Calibre 4 09-17-2013 09:39 PM
Just Throwing It Out There.... Shopaholic Sony Reader 37 06-27-2011 01:01 PM
DR800 Page rotate and some other needed features penartur iRex 3 09-10-2010 05:30 AM


All times are GMT -4. The time now is 10:58 PM.


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