![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,416
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
CC production release V3.5.9 has been published
Change log:
Last edited by chaley; 12-07-2014 at 01:04 PM. |
![]() |
![]() |
![]() |
#2 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
I'm not sure if this is new or not, I have a column called pages which contains the page numbers in each book.
It does show the correct number in the book list, but in the book details page it just shows "%," for each book. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,416
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Sending me a debug log will help determine whether this is a problem on CC's side (i.e. I messed up the translation of python formats to Java) or a problem in the format entered into the custom column definition. |
|
![]() |
![]() |
![]() |
#4 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Sent.
My guess is that in this one case it isn't my error, or else why would it show the correct value in the List view. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,416
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
According to the debug log, the format is something like "{:,}". It could also be "%,". Both are invalid. What does calibre show in the column definition for that column for the format? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
It shows: {0:,}
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,416
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
This is indeed a CC bug, caused by my misunderstanding of format defaults. In python, "{0:,}" for any number column is equivalent to "{0:,d}" where the "d" means decimal number. I didn't account for this default in CC.
There are two possible fixes: 1) You change the column definition to {0:,d}. Of course, this will force a full metadata calibre->CC send on the next connect. 2) I change CC to detect this special case. I will do this, but it may be a few weeks before I make another release. In case it matters, {0:,} will not work correctly in calibre for floating columns because the default is to format as integer. |
![]() |
![]() |
![]() |
#8 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Well, you can change eventually it if you want, but I am happy to do a full metadata refresh to save you the trouble.
I believe that this is the default for a custom integer column, so others might run into this. |
![]() |
![]() |
![]() |
#9 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,416
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CC production release V3.5.8 has been published | chaley | Calibre Companion | 0 | 12-05-2014 04:57 AM |
Calibre Companion production release 3.3.5 | chaley | Calibre Companion | 7 | 05-24-2014 01:07 AM |
Calibre Companion production release 3.3.1 | chaley | Calibre Companion | 12 | 03-20-2014 12:11 PM |
Production Costs? | jaxx6166 | Writers' Corner | 14 | 12-08-2010 09:05 AM |
Lead time for Kindle book release ahead of print release date - experiences? | Buran | Amazon Kindle | 6 | 05-04-2009 02:29 PM |