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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2020, 09:51 AM   #1
rfog
Fanatic
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 592
Karma: 2382178
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Pages left in chapter for PDF conversion

I'm converting some ePub and mobi into PDF. I have a very custom header code to put Author and Title in even/odd pages, got from documentations with some little changes:

Quote:
<header style="justify-content: center;font-size:x-small"><div class="even_page">_AUTHOR_</div><div class="odd_page"><i>_TITLE_</i></div></header>
However, I would like to have in footer the number of remaining pages in each chapter. Something like KOReade do in its footer. I don't mind if it is <remaining>/<total> or any other format.

Is there any way to do that? Thanks in advance.
rfog is offline   Reply With Quote
Old 07-26-2020, 11:01 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,324
Karma: 16448187
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is currently no such facility though it could probably be added, open a bug report requesting it.
kovidgoyal is offline   Reply With Quote
Old 07-26-2020, 11:13 AM   #3
rfog
Fanatic
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 592
Karma: 2382178
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Done.

https://bugs.launchpad.net/calibre/+bug/1889000

Thanks a lot if you are able or have time to implement it. And if not, thanks as well to have produced this fantastic software. (And it is real).
rfog is offline   Reply With Quote
Old 07-26-2020, 03:58 PM   #4
rfog
Fanatic
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 592
Karma: 2382178
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Wow!!

You are blazing fast!!!



rfog is offline   Reply With Quote
Old 07-27-2020, 01:33 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,324
Karma: 16448187
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are welcome it was relatively easy to implement
kovidgoyal is offline   Reply With Quote
Old 07-31-2020, 12:31 PM   #6
rfog
Fanatic
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 592
Karma: 2382178
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Man, works like a charm.

Some samples.

A very easy and direct footer:
Code:
<footer><div>_TOTAL_PAGES_/_TOP_LEVEL_SECTION_PAGES_/_TOP_LEVEL_SECTION_PAGENUM_</div></footer>
Remaining pages in section:
Code:
<footer style="justify-content: center;font-size:x-small">
<div></div>
<script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ )</script>
</footer>
And the mother of all:
Code:
<footer style="justify-content: center;font-size:x-small">
<div></div>
<script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ _PAGENUM_ +" of " + _TOTAL_PAGES_ + "/" +(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ ) + " of " + _TOP_LEVEL_SECTION_PAGES_ </script>
</footer>
Attached a capture of one of my converted ebooks.

PS: Today my iMAC is going to be very bussy reconverting books.

Attached Thumbnails
Click image for larger version

Name:	Anotación 2020-07-31 182806.png
Views:	11
Size:	30.1 KB
ID:	181041  
rfog is offline   Reply With Quote
Old 08-01-2020, 02:59 AM   #7
rfog
Fanatic
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 592
Karma: 2382178
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
I did some improvements and variations for footer.

Here: https://pastebin.com/KQXkv0ke

You can find 4 variations:
  • <Current> of <total> / <current section> of <total section>
  • <Current> of <total> (% read) / <current section> of <total section> (% section read)
  • <Remaining> of <total> / <remaining section> of <total section>
  • <Remaining> of <total> (% remaining) / <remaining section> of <total section> (% remaining of section).

(Select the one you want and paste in footer conversion field).

I've built 4 variations for a same book, read with each and personally I prefer second one as it is more natural. For "remaining" variation I need to think "oh, it is remaining, not current".
rfog is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon Kindle - show pages left in chapter? koboy Amazon Kindle 35 07-24-2017 03:55 PM
How to configure how iBooks counts the pages left in a chapter. verydeepwater ePub 9 09-11-2015 12:51 PM
Number of pages left in chapter not working 3rdDegree Conversion 3 02-22-2013 09:38 PM
Pages left in chapter? bmbriefs Which one should I buy? 18 03-16-2012 09:57 AM
Tablet Pages left in chapter error? bfollowell Nook Color & Nook Tablet 4 02-22-2012 11:56 AM


All times are GMT -4. The time now is 08:38 PM.


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