|
|
#301 | |||
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,499
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Quote:
As for changing the Column header value for built-in columns? That way lies madness. |
|||
|
|
|
|
|
#302 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,499
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Just to help answer/confuse the question of whether the ADE synthetic page number algorithm is truly the be all and end all of page count techniques, I've attached an ePub originally created over a decade ago. Basically, it is the images from my font test ePub stored using Base64 encoding instead of JPG/GIF/PNG binary encoding.
|
|
|
|
|
|
#303 | ||||
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,138
Karma: 30317706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It doesn't default, it suggests. Quote:
Quote:
Please answer my "Why would anyone…?" question Quote:
You and others have have correctly stated that its the value in Lookup name that matters not the value in Column header… in which case why not let the user change them… given they will have the ability to duplicate them. BR Last edited by BetterRed; Today at 01:54 AM. |
||||
|
|
|
|
|
#304 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,448
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
|
|
|
|
|
#305 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,499
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If I disable one, the other one is the only one that shows. If I disable both, neither showed. If I enable both, both show. This was tested making the changes and then restarting calibre 5 times for each variant. This is running calibre from source updated yesterday. No commits appear to have been done in the last 2 days. |
|
|
|
|
|
|
#306 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,499
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Odd, when I installed the beta, the Pages builtin column was created. No suggestion about it.
Quote:
Given that you could not create a custom column with a header duplicating another column until a change to calibre was made very recently, the old saw about a tempest in a teapot comes to mind. As to why someone would want to do this? I lack the ability to understand why someone would want to duplicate headers. That this happened was likely due to the lack of knowledge that a column header used by a plugin was being duplicated. My reason for not wanting to have builtin column header to be changeable is simply that some utilities I use use the column header and not the lookup name. That I could, in theory, open a library database and rename all the custom columns in custom_columns to 'Custom' is not very useful. |
|
|
|
|
|
|
#307 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,776
Karma: 7927573
Join Date: Sep 2020
Device: none
|
|
|
|
|
|
|
#308 | |||||||
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,138
Karma: 30317706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
BR |
|||||||
|
|
|
|
|
#309 | ||||
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 561
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
But from now, use the button "Use a custom pages column", select any column, then open the template editor and set the correct lookup name. Quote:
Quote:
Unless you use a custom template, rather than on from the button "Use a custom pages column", if so please share you template. Quote:
So put a priority ordre is not a problem once that the all the library scan is perform, you just need to wait that it done. In the beta their is a issue that pages count queue can be frozen when reopen a library, but their also a fix in the master for that https://github.com/kovidgoyal/calibr...cba2f2b4bb1fc3 Also, unlike PC plugin, Calibre Page Count perform the rescan of a book only if their size is different from when the previous scan was perform, leading that rescan the all library is even faster on book already scanned (average twice faster). Last edited by un_pogaz; Today at 08:26 AM. |
||||
|
|
|
|
|
#310 | ||
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 561
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
And above all, what serious issue you want to solve by? Until now, excuse me for this lack of politeness, but your best argument was Quote:
Because, at no point you did raise real and serious issues that was more greater than "annoying". So we could argue that of because of the Pages Count plugin, their is a lot of librarys that already contain a "Pages" column... But that's not enough. Because it's far too easy to rename a custom column create by the user to reflect their real use of it. Okay right, that annoying, that need a bit work from the user that fall in this situation, but that the better we can do. So, unlike you proposes a real solution, a solution that will be discussed and may or may not be accepted, you words are not matter. In addition, we do not know the actual statistics on the number of people who have installed the Pages Count plugin, or even less the people that use a column named "Pages", but thousands of users on the 2,000,000 calibre one? That less than 1%. Thousands seem a lot, but on a more wider view, is not enough affected user to realy start to envisaged to rename it on something else. And a warning on the changelog will be good enough. Unless someone puts real arguments and real issues tha matter on the table, I consider the subject of the namming of the Calibre Pages closed. Last edited by un_pogaz; Today at 08:14 AM. |
||
|
|
|
|
|
#311 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,539
Karma: 150265873
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Also, I do think many people who are using Count Pages have Pages as the display name of their page count column. So would it be easier for all of those people to change their column name or for Kovid to change his column name? |
|
|
|
|
|
|
#312 | |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,448
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
|
|
|
|
|
#313 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 561
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
The template require a decimal value bettwen 0.0 to 1.0 (min/max), so put it a raw field dosn't work. {pages} work because Calibre detect it as a special field and do a transform behind. To use a custom column use the button "Use a custom column" and select the one you want (or pick anyone and open the editor to set the correct field) You should end up with this as your template: Code:
python:
from calibre.gui2.library.bookshelf_view import width_from_pages
def evaluate(book, context):
val = book.get('#pagecount')
try:
pages = max(0, int(val))
except Exception:
return '0.3'
return str(width_from_pages(pages, num_of_pages_for_max_width=1500, logarithmic_factor=2))
The "logarithmic_factor" parameter is here for give more width to book that bellow the average, so that the render spine was not all too narrow. Bigger is, bigger the small book have bigger width. Tweak this if you want, but their is not recomendation for that (advanced settings) |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calibre 5: Beta testers needed | kovidgoyal | Calibre | 497 | 09-29-2020 01:58 AM |
| Beta testers needed | kovidgoyal | Calibre | 75 | 08-18-2019 08:00 PM |
| Beta testers for calibre 3.0 needed | kovidgoyal | Calibre | 598 | 07-09-2017 11:26 PM |
| Beta testers needed | kovidgoyal | Calibre | 54 | 05-20-2016 01:34 PM |
| Beta testers for calibre 2.0 needed | kovidgoyal | Calibre | 142 | 05-08-2015 05:44 AM |