|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#2 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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: 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. |
|
|
|
|
|
#3 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#4 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#5 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 664
Karma: 720026
Join Date: Dec 2017
Device: Kobo
|
Quote:
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. |
|
|
|
|
|
|
#6 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
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.
|
|
|
|
|
|
#7 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
|
|
|
|
|
#8 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
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. |
|
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,787
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.
|
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
|
|
|
|
#11 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
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.
|
|
|
|
|
![]() |
|
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 |