Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2016, 11:34 PM   #1
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
ePub vs KOBO ePub

I'm creating a reflowable ePub of my novel to upload through Writing Life and be available on the Kobo store.

The ePub's I download through kobo ("KOBO EPUB"s) seem to all have a fluid page-numbering system, i.e. when you change the size and spread of the text on the reader, the page numbers adjust accordingly. They also seem to have the book title as a header on each page, and consistently use all the available space on each page (see image).

I haven't been able to recreate the same features (fluid page numbers and consistent use of page space) with html code (I'm using Calibre's editing tool) and I was wondering whether it was something that was taken care of on Kobo's end, i.e. once I've uploaded my ePub to Writing Life.
Attached Thumbnails
Click image for larger version

Name:	kobo.jpg
Views:	348
Size:	119.3 KB
ID:	153519  
fen-sawn is offline   Reply With Quote
Old 12-11-2016, 11:52 PM   #2
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
ePub's use a completely different rendering engine than kePub's on Kobo devices (Adobe's RMSDK instead of Kobo's Access).

The page numbering thing has to do with the way each engine handles such things. In the Access renderer one page equals one screen. With the RMSDK pages can be handled two ways. If the ePub has a page map then the pages can be mapped to page numbers in a print edition of the book. In the absence of a page map it assumes that every 1024 bytes is a page. Either way a "page" in an RMSDK rendered book can be, and usually is, multiple screens on a device depending on screen size, font size, line spacing, etc.

NOTE: There are others here more well versed in this and some of my info may not be exact.


The spacing at the bottom of some pages with ePub's can be due to a few things IIRC (which I may not as I use sideloaded Calibre kePub's on my device for everything). One is the files widows & orphans setting and the other can have to do with the length of the paragraph. Like I said I might not be recalling this correctly, but someone will be along who is.
AnemicOak is offline   Reply With Quote
Advert
Old 12-12-2016, 12:14 AM   #3
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
Thanks for the reply.

Quote:
Originally Posted by AnemicOak View Post
In the Access renderer one page equals one screen.
So does this mean that the ePub I submit to kobo will be changed automatically into a "kePub", and have a 1:1 page numbering system as you've described? I've read before about the 1024-bytes-to-a-page rule elsewhere, is there any ereader that would actually favor this?

Also how do I disable autocorrect in the reply box here it's driving me nuts.
fen-sawn is offline   Reply With Quote
Old 12-12-2016, 12:31 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by fen-sawn View Post
Also how do I disable autocorrect in the reply box here it's driving me nuts.
I am pretty certain that's being done by your device or browser or an extension (add-on) rather than the MR website.

BR
BetterRed is offline   Reply With Quote
Old 12-12-2016, 12:36 AM   #5
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
Quote:
Originally Posted by BetterRed View Post
I am pretty certain that's being done by your device or browser or an extension (add-on) rather than the MR website.

BR
You're correct, my apologies. I don't use Safari unless I want cookies and scripts automatically.
fen-sawn is offline   Reply With Quote
Advert
Old 12-12-2016, 02:21 AM   #6
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
Also, for anyone kind enough to reply, my ePub won't justify text on iBooks or ADE.

I'm opening up in calibre edit and trying to imitate other ePubs where you have the option to justify / left align on the kobo (I have a kobo touch mini), and it automatically justify, with the option to left-align in iBooks, but I can't figure it out.

For the 1 to 3 or 4 line gaps at the bottom of my pages, I've been looking at orphans and widows, namely set to 0 or 1, in the CSS, but that isn't working for me, possibly because I'm not doing it correctly.

This is what the CSS for my first chapter looks like. All the "page-break: avoid" and "margin-bottom" commands are earlier failed attempts of mine to knock out the empty lines at the bottom of my pages when viewed on the kobo.

Code:
<style type="text/css">
  p + p {
    text-indent: 2em;
    margin-top: 0;
    padding-top: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  p {
    margin-bottom: 0;
    padding-bottom: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  h1.chapter-heading {
    text-indent: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 50%;
    margin-bottom: 2em;
  }
  p.star-break {
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  p.star-break + p {
    text-indent: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  p + p.star-break {
    text-indent: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  p.poem {
    font-size: 75%;
    text-indent: 0;
    padding-left: 2em;
    margin-top: 2em;
    margin-bottom: 2em;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  p.poem + p {
    text-indent: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: avoid;
  }
  .no-page-breaks {
    page-break-inside: avoid !important;
  }
  </style>
fen-sawn is offline   Reply With Quote
Old 12-12-2016, 03:06 AM   #7
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by fen-sawn View Post
(I have a kobo touch mini),
If you are using a Kobo Mini and haven't taken steps to update it manually then it will probably be running a very old firmware version (3.4.1) that behaves quite differently to the firmware version used by all other Kobo devices.

In particular, the Mini firmware has a bug in the Adobe ePub reader that causes long paragraphs to start on a new page, and it uses a different page numbering system for Kobo ePubs. In the current firmware that bug has been fixed, and the page numbering used for Kobo ePubs is similar to the method used in the Adobe ePub reader.
GeoffR is offline   Reply With Quote
Old 12-12-2016, 03:21 AM   #8
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
@GeoffR

Thanks for the reply. My kobo updated recently when I bought a book for the first time from kobo.

I've recently opened up some free kePubs that don't seem to have any special CSS, in fact almost none at all (Gutenberg classics) yet display on the kobo without any of the problems I've been experiencing, and I've saved them as copies without changing anything then dropped them onto my kobo, and behold: non-fluid page numbers, bottom-margin gaps, no headers.

So this indicates to me that much (if not all) of my present headaches will be solved once I've uploaded my ePub to kobo and it's put up on the store as a "kePub".

Please feel free to reply with any further suggestions I'll be following the thread just in case, thanks again to everyone who replied, you've been great.
fen-sawn is offline   Reply With Quote
Old 12-12-2016, 03:32 AM   #9
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
If you want to test how the formatting will look as a Kobo ePub (KePub), you can change the filename extension of the book from .epub to .kepub.epub before copying it to the device. That will cause it to be opened with the KePub reader instead of the Adobe ePub reader. Some things like highlighting and reading stats won't work properly, but it will give you an idea of what the formatting of the book will look like.

This should be all you need to add to your stylesheet to avoid the unsightly gaps at the bottom of the page in ePubs:
Code:
p {
  widows: 1;
  orphans: 1;
}
Edit: And beware that the KePub reader completely ignores page-break-before and page-break-after styles. The only way to force a page break in the KePub reader is to begin a new html file.

Last edited by GeoffR; 12-12-2016 at 03:37 AM. Reason: KePub reader ignores page-break styles.
GeoffR is offline   Reply With Quote
Old 12-12-2016, 04:12 AM   #10
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
@GeoffR

Huge, huge help, thank you.
fen-sawn is offline   Reply With Quote
Old 12-12-2016, 05:00 AM   #11
fen-sawn
Junior Member
fen-sawn began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2016
Device: kobo touch
Also what hyphenation settings would you recommend and what would it look like as CSS? Mine has apparently no hyphenation, but it's justifying the lines too much to be attractive.
fen-sawn is offline   Reply With Quote
Old 12-12-2016, 05:32 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by GeoffR View Post
In particular, the Mini firmware has a bug in the Adobe ePub reader that causes long paragraphs to start on a new page, and it uses a different page numbering system for Kobo ePubs. In the current firmware that bug has been fixed, and the page numbering used for Kobo ePubs is similar to the method used in the Adobe ePub reader.
No, the per-chapter page numbering is still there for kepubs. They added the per-book numbering as an option in the settings.
davidfor is offline   Reply With Quote
Old 12-12-2016, 08:02 AM   #13
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by fen-sawn View Post
Also what hyphenation settings would you recommend and what would it look like as CSS? Mine has apparently no
hyphenation, but it's justifying the lines too much to be attractive.
Other than turning hyphenation off, I don't think you can control it in the book. And turning it off would probably make it worse. Changing the font, font size or margins on the device will change the spacing.

Personally, I don't want things like this added to the book. Let the user and device handle it. Same goes for justification. Leave it off in the book and allow the reader to turn it on or off as they prefer.

Also, you probably have what you need. But, https://github.com/kobolabs/epub-spec is what Kobo put out about preparing an epub for publication publication as a kepub. I would hope it is available in the Writing Life site, but I don't have access to it.
davidfor is offline   Reply With Quote
Reply

Tags
fluid page numbering, page numbering, page-break;css, unwanted page breaks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub to ePub conversion for Kobo Touch — some questions/observations, etc. theboyk Conversion 13 10-02-2012 04:11 AM
Kobo epub direct download or sideload epub RareBird Kobo Reader 11 03-30-2012 11:19 AM
Touch Kobo Freezes with Epub to Epub Calibre Converted Books CarlBullock Kobo Reader 0 03-08-2012 07:14 PM
Different cover between Kobo ePub and Adobe ePub Julien Pham Kobo Reader 12 12-16-2011 01:18 AM
ePub/Kobo Touch: determine which page ePub opens on? theboyk Conversion 2 12-05-2011 10:19 AM


All times are GMT -4. The time now is 04:41 PM.


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