Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2026, 02:40 PM   #1
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Where is the new page count stored / can it be a column?

I have just noticed there is a new "pages" number in the book info and I have seen from other posts that it is used to calculate the width of the covers in bookshelf view (nice I like that view and I wondered how it was done).

I already have the Count Pages PlugIn installed and I send the page count to my kobo as a subtitle, because I hate the kepub system of "screen count" which changes every time you change font size or font or literally anything.

So now I have 2 page count numbers and they are not the same.

Question 1. how is the new page count calculated? Presumably based on x characters = 1 page?

Question 2. where is the new page count data stored and can it be added in a column, specifically the column I currently use for the plugin ? If it can't, I will just modify the plugin to calculate the same way, if it is based on character count, so that the two agree.

I would rather have only one page count number (even if it's displayed twice) and I am not bothered which one it is but having 2 different ones is triggering my OCD.
Mister L is offline   Reply With Quote
Old 03-04-2026, 05:14 PM   #2
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: 22,464
Karma: 31000706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Added: It is a column, have a look at Preferences->Add your own columns.

To the extent that it's possible, I ignore it.

I renamed the custom column I had from 'pages/Pages' to 'cc_pages/CC Pages' and made necessary adjustments to the Count Pages plugin, Book Details settings etc. And I customised the bookshelf view settings to suit my preference for minimalism:

Click image for larger version

Name:	calibre bookshelf - settings.jpg
Views:	42
Size:	186.0 KB
ID:	221568

I wish there was a setting for shelf colour, dark brown on grey wash looks awful.

The page/Pages built in column is stored in the book-pages-link table in the metadata.db database.

BR

Last edited by BetterRed; 03-04-2026 at 05:32 PM.
BetterRed is offline   Reply With Quote
Old 03-04-2026, 05:36 PM   #3
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 664
Karma: 720026
Join Date: Dec 2017
Device: Kobo
Globaly, yes, the Calibre Pages use a system base of number characters by page, with some subtlety. Due to these minor differences, the values returned by Calibre Pages will always differ from those produced by the Pages Count plugin, and there are no plans to make them equal.

Since the Calibre Pages Count is stored in a specific and read only column (named {pages}), where the plugin store it value in a custom column of you choice, their is no conflict. It up to you to choose wich value/column to use/show.

Last edited by un_pogaz; 03-04-2026 at 05:39 PM.
un_pogaz is offline   Reply With Quote
Old 03-05-2026, 02:07 AM   #4
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,625
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The built-in pages doesn't quite work if you use dummy records (no formats or 0-byte formats) for records of non-eBooks.
ownedbycats is offline   Reply With Quote
Old 03-05-2026, 02:49 AM   #5
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 664
Karma: 720026
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by BetterRed View Post
I wish there was a setting for shelf colour, dark brown on grey wash looks awful.
There is all the tab Color. You will probaly need to search and download a wood texture background image to use.

Quote:
Originally Posted by ownedbycats View Post
The built-in pages doesn't quite work if you use dummy records (no formats or 0-byte formats) for records of non-eBooks.
What do you mean? When no format, it show a "None" message. And except for TXT file, you can't have 0-byte file for the supported formats.
un_pogaz is offline   Reply With Quote
Old 03-05-2026, 12:18 PM   #6
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Thanks everyone for the help.

I have found the column, it is called "pages", my column is called "#pages".

My subtitle page count code looks like this, in the Calibre "Configure this device" dialogue (only available when the device is connected) and also in the Kobo Utilities plugin "Update metadata in Device Library" subtitle field :

Code:
program:
	if field('#pages') then
		 template('{#pages} pages')
		fi
Is there a way for my #pages column to just copy the number from Calibre's pages column, or is there a way to use the pages column instead of my #pages column in that code ? (I think no, because it needs the # to reference it, is that right ?) I'm using the ADE algorithm and it's pretty close to the Calibre count so that would be fine for my uses.

I checked in the plugin page if there are any plans to add the Calibre count in the plugin options but it does not seem to be the case.

If it's not possible, it's not the end of the world, this is just a reference for me so I have some idea if it's a "long" book or a "short" book, but I would prefer to have the same count since both are displayed next to each other.
Mister L is offline   Reply With Quote
Old 03-05-2026, 02:32 PM   #7
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: 31,568
Karma: 62544528
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 Mister L View Post
Thanks everyone for the help.

I have found the column, it is called "pages", my column is called "#pages".

My subtitle page count code looks like this, in the Calibre "Configure this device" dialogue (only available when the device is connected) and also in the Kobo Utilities plugin "Update metadata in Device Library" subtitle field :

Code:
program:
	if field('#pages') then
		 template('{#pages} pages')
		fi
Is there a way for my #pages column to just copy the number from Calibre's pages column, or is there a way to use the pages column instead of my #pages column in that code ? (I think no, because it needs the # to reference it, is that right ?) I'm using the ADE algorithm and it's pretty close to the Calibre count so that would be fine for my uses.

I checked in the plugin page if there are any plans to add the Calibre count in the plugin options but it does not seem to be the case.

If it's not possible, it's not the end of the world, this is just a reference for me so I have some idea if it's a "long" book or a "short" book, but I would prefer to have the same count since both are displayed next to each other.
Looks like you can use the Bulk mode Metadata edit Search and replace to copy from pages to #pages source
Attached Thumbnails
Click image for larger version

Name:	CopyPages.png
Views:	20
Size:	152.8 KB
ID:	221582  
theducks is offline   Reply With Quote
Old 03-05-2026, 02:42 PM   #8
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by theducks View Post
Looks like you can use the Bulk mode Metadata edit Search and replace to copy from pages to #pages source
Thanks ! Very good to know. That will fix all the books currently in my library.

Edit: just did it, worked perfectly.


Is it possible to do that automatically somehow for new books as well ? I don't think I care enough to manually update every future book (although... we'll see how much it bothers me ).

Last edited by Mister L; 03-05-2026 at 02:51 PM.
Mister L is offline   Reply With Quote
Old 03-05-2026, 04:02 PM   #9
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,786
Karma: 245110941
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
You can create a custom pages column built from other columns and have it automatically copy the values from the calibre pages column.
Sirtel is offline   Reply With Quote
Old 03-05-2026, 05:01 PM   #10
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,839
Karma: 80512826
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Maybe I'm missing something but have you tried just hanging the #pages in the template to pages.. ie

Code:
program:

if field('pages') then

 template('{pages} pages')

fi
# is needed to reference user created columns; lack of a # means built in column
PeterT is offline   Reply With Quote
Old 03-05-2026, 05:54 PM   #11
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by PeterT View Post
Maybe I'm missing something but have you tried just hanging the #pages in the template to pages.. ie

Code:
program:

if field('pages') then

 template('{pages} pages')

fi
# is needed to reference user created columns; lack of a # means built in column
Wow. I think I have set a new personel record for over-complicating my life here That is exactly what I wanted to do, but I misunderstood / misremembered that if there is not a # in a column name you cannot reference it in the code.

THANK YOU for bringing me back to reality with the simplest possible answer to my question.

Mister L is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are column settings stored in metadata.calibre? ownedbycats Devices 3 11-03-2024 06:19 AM
Add page count, word count and reading time ZodWallop Kobo Reader 4 08-12-2024 06:56 AM
Custom column built from word count column Montana Harper Library Management 3 10-04-2018 10:57 PM
Word Count and Page Count? CrossReach Library Management 2 07-19-2018 06:44 PM
Sending books to Kindle, page count, own calculation method in the custom column Moskau123 Conversion 4 01-15-2016 08:52 PM


All times are GMT -4. The time now is 08:34 AM.


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