Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2012, 12:20 PM   #1
cbaabc
Junior Member
cbaabc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2012
Device: Sony PRS-T2
Slow scrolling in converted epub (PRS-T2)

Hello,

I just got my Sony PRS-T2 and converted some walkthroughs in txt format into epubs. Problem is, with each page it scrolls slower the further I am into the epub. So on page 1 it is normal and on page 29 it takes so long, that the small loading screen pops up.

I use calibre 0.8.67 and the following options to get an epub resembling the txt as close as possible:
Look & feel
- Extra CSS: p {font-family:monospace}

txt-Input
- Paragraph style: single
- Formatting style: plain
- Preserve Spaces

rest is default.

So now my question: Are there other options to convert txt to epub without destroying the formating?
I can't use the txt as it is, as my reader won't display monospace for txt files. I could convert it into a pdf file, but I want to try epubs first.

I'm not sure if this is a problem with the reader or the conversion, so I start here.

Regards cbaabc
PS: I attached the txt file.
Attached Files
File Type: txt orochittxt.txt (139.7 KB, 469 views)
cbaabc is offline   Reply With Quote
Old 09-06-2012, 12:59 PM   #2
cbaabc
Junior Member
cbaabc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2012
Device: Sony PRS-T2
I seem to have found a solution. I changed
Epub output:
- split files larger than

to 50KB and scrolling and also searching now works a lot better. I'm not sure if this is the best thing to do, as now on every split there is a gap between the text. (half of the last page before the split can be empty)

Is there a way to tell calibre when to split the text? (splitting every 50KB is vague)

Last edited by cbaabc; 09-06-2012 at 02:59 PM.
cbaabc is offline   Reply With Quote
Advert
Old 09-07-2012, 02:09 PM   #3
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
How does your ePub differ from the plain text file?

Last edited by Agama; 09-08-2012 at 08:02 AM.
Agama is offline   Reply With Quote
Old 09-08-2012, 08:03 AM   #4
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by cbaabc View Post
So now my question: Are there other options to convert txt to epub without destroying the formating?
What formatting is getting lost when you convert to ePub?
Agama is offline   Reply With Quote
Old 09-08-2012, 08:19 AM   #5
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
You should attach the epub that is causing the problem.
frostschutz is offline   Reply With Quote
Advert
Old 09-08-2012, 08:54 AM   #6
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
I've had a play with your txt file and come up with an epub that looks pretty close. What do you think?

(v2 has top/bottom margins and 64K page splitting)
Attached Files
File Type: epub orochittxt .epub (40.3 KB, 191 views)
File Type: epub orochittxt2.epub (44.0 KB, 201 views)

Last edited by Agama; 09-08-2012 at 10:04 AM.
Agama is offline   Reply With Quote
Old 09-10-2012, 04:39 AM   #7
cbaabc
Junior Member
cbaabc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2012
Device: Sony PRS-T2
Quote:
Originally Posted by Agama View Post
I've had a play with your txt file and come up with an epub that looks pretty close. What do you think?

(v2 has top/bottom margins and 64K page splitting)
With the options I postet above, I get a similar looking epub. The slow scrolling happens with your v1, but not your v2. The Sony reader really seems to hate large epubs without splitting (while scrolling and searching).
Did you use some other conversion options as I used above and if so, could you post them?

Quote:
Originally Posted by frostschutz View Post
You should attach the epub that is causing the problem.
v1 from Agama's post has the same scrolling problem. I wonder, if it happens only on Sony readers or is a general problem for e-readers.
cbaabc is offline   Reply With Quote
Old 09-11-2012, 01:33 AM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by cbaabc View Post
I seem to have found a solution. I changed
Epub output:
- split files larger than

to 50KB and scrolling and also searching now works a lot better. I'm not sure if this is the best thing to do, as now on every split there is a gap between the text. (half of the last page before the split can be empty)
It's hard to believe the default of 260k was too large for your device, since a split this small was put in as an option specifically to accommodate the early Sony models PRS505, 300 etc...

Quote:
Originally Posted by cbaabc View Post
Is there a way to tell calibre when to split the text? (splitting every 50KB is vague)
I'm not an expert on Sigil (forum here), but I believe Sigil lets you split on chapters.

Good Luck.

Last edited by DoctorOhh; 09-11-2012 at 06:23 AM.
DoctorOhh is offline   Reply With Quote
Old 09-11-2012, 03:22 AM   #9
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by cbaabc View Post
With the options I postet above, I get a similar looking epub. The slow scrolling happens with your v1, but not your v2. The Sony reader really seems to hate large epubs without splitting (while scrolling and searching).
Did you use some other conversion options as I used above and if so, could you post them?
I don't think that Sony readers generally have a problem with large xhtml files within an ePub but I think that this is specific to the conversion used with this plain text file. I don't know if this is related to the fact that every line has become a paragraph or that there are no chapter breaks, (and therefore the reader is somehow having to process the whole book as one huge chunk.) The slow down can also be seen in ADE on a PC, though it's less obvious because the PC is a lot more powerful that the reader.

Conversion options were

TXT Input > Paragraph style > single
TXT Input > Formatting style > none
Look & Feel > Extra CSS > body { font-family:monospace }
Page Setup > Margins > Left:5pt, Top:12pt, Right:5pt, Bottom:12pt
ePub Output > Split files larger than > 64KB

The book was then given a minor tweak using calibre's Tweak Book option:

1) .calibre style was given font-size:0.8em (a better starting point on my reader which only has 3 zoom sizes).
2) .calibre1 style was removed and . . .
3) P style was added (have a play with top-margin and line-height in em).
4) All class="calibre1" styles were removed from the .html split files since they were made redundant by steps 2 and 3. (Did this just to reduce the filesizes).

(If you get more styles like .calibre2, .calibre3 etc. then these can also be removed and the styling incorporated in the P styling).

And finally

If you are prepared to spend a bit of time using Markdown with your plain text file then a better conversion could be achieved, complete with 'chapters' and a table of contents - but you may feel that it is not worth the effort. I reckon this would not show the slowdown effect. I have done many conversions of much larger plain text sources, using Markdown and a file split of 127K, and my PRS-300 shows no slowdown.

Hope this is helpful.
Agama is offline   Reply With Quote
Old 09-11-2012, 03:24 AM   #10
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by cbaabc View Post
Is there a way to tell calibre when to split the text? (splitting every 50KB is vague)
Yes, use Markdown formatting.
Agama is offline   Reply With Quote
Old 09-11-2012, 06:10 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dwanthny View Post
It's hard to believe the default of 260k was too large for your device, since a split this small was put in as an option specifically to accommodate the early Sony models PRS505, 300 etc...



I'm not an expert on Sigil (forum here), but I believe Sigil lets you split on chapters.

Good Luck.
AFAIK Sigil has no Automatic splitting.
You can do a Manual Split (Immediate)
or

you can insert a Marker by pressing Cntrl-Shift-Enter (or use the Insert Chapter Marker menu item),
Programmatically (REGEX) insert the marker(
Code:
<hr class="sigilChapterBreak" />
) I use this a lot

Then (the Biggie, The marker does almost nothing other than show as an Horizontal Rule in BV).
Press F6 (Split on Chapter Marker), once in each section that contains the marker. The split happen AND the marker is removed.

Rebuild the TOC if needed AND Flightcrew check the code (splits/deletes can make orphan links)

Last edited by DoctorOhh; 09-11-2012 at 06:24 AM. Reason: changed to -> too
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Kobo Freezes with Epub to Epub Calibre Converted Books CarlBullock Kobo Reader 0 03-08-2012 07:14 PM
Slow scrolling in main window svenlind Calibre 6 07-10-2010 03:22 AM
lack of scrolling for some downloaded epub bl1none Onyx Boox 0 05-13-2010 06:45 PM
calibre - very slow conversion, very slow on PRS cremofix Calibre 3 06-10-2009 04:21 PM
Libprs500 converted LRF super slow page changes Vash Calibre 1 03-18-2008 11:12 PM


All times are GMT -4. The time now is 11:40 PM.


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