|
|
#31 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
The DOC!
We forget the doc >_> Oh dear, you alone on that Kovid, my english is realy not enough for that sorry. |
|
|
|
|
|
#32 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
@JSWolf Yep? Very incorect.
Try that: Code:
python:
from calibre.gui2.library.bookshelf_view import width_from_pages
def evaluate(book, context):
val = book.get('#pages')
try:
pages = max(0, int(val))
except Exception:
return '0.4'
return str(width_from_pages(pages, num_of_pages_for_max_width=1500))
|
|
|
|
| Advert | |
|
|
|
|
#33 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,399
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Now to make calibre count into the column I want. I want calibre's count to go into #pages instead o I don't need two of them {pages}. Then I can overwrite the count with Count Pages when I want. I'm also hoping to do away with {Pages} as that's an extra column that I won't need as I already have a page count column. I don't need two columns that do the same thing. Last edited by JSWolf; Yesterday at 12:22 PM. |
|
|
|
|
|
|
#34 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
I personaly recomand to use a Composite column that if no value in #pages (Count Pages), return the value in from the Calibre Page: Code:
program: ifempty($#pages, $pages) I understand that it name can be confused by your custom column if you name it "Pages", but I'm affraind that is not something that can be solve. Last edited by un_pogaz; Yesterday at 12:35 PM. |
|
|
|
|
|
|
#35 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,399
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#36 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 564
Karma: 2110015
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
I don't shit on it, I am only criticising the implementation - the opposite of good is well-meant - and I don't care about other people's use cases either, if it weren't for the unfortunate forced addition of a new column here. Make it optional please and I will never comment on this view again.
|
|
|
|
|
|
#37 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
But personaly, I don't recomend it since this field is auto filled by Calibre and so it could be unpredictable. |
|
|
|
|
|
|
#38 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,399
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is this a bug. I change the value in the column for the page count and the cover does not change the width. Is there a way to update this or do we have to restart?
|
|
|
|
|
|
#39 | |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,765
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
How on earth does the existence of a column in the database bother you? What the bloody hell is wrong with you? After this thread and the AI thread I am really sick of calibre development. |
|
|
|
|
|
|
#40 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
No sorry, my bad. Calibre Page is read only, I confused it with my own Page Count column, you can't change it.
Last edited by un_pogaz; Yesterday at 12:45 PM. |
|
|
|
|
|
#41 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,399
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would it be possible to allow the Page column to be used with Count Pages? This way I can do away with having a second page count column. I can do away with my column once Count Pages is updated to use the new column. Thanks.
Last edited by JSWolf; Yesterday at 12:58 PM. |
|
|
|
|
|
#42 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
Like I say early, you best option is to use a composite column that use dynamically Calibre Page or Page Count, wich use it own column. The all point to Calibre where create custom column is trivial, and the composite column are here to fill such niche case. |
|
|
|
|
|
|
#43 | |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 564
Karma: 2110015
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
|
|
|
|
|
|
|
#44 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,765
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I suggest you ignore both the bookshelf view and this thread. Then you wont be exposed to "uncivilised manners" and cut off titles. Objective indeed.
|
|
|
|
![]() |
|
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 |