![]() |
#376 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
#377 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
|
|
![]() |
![]() |
#378 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
I like the new chapter sections for highlights. But I wonder if it is possible to prepend the name of the parent sections to the name, or (even better) have the chapters nested within collapsible parent sections - as is the case with the Table of Contents.
Here's a few highlights that I have from one book that is organized into 4 Parts, each with dozens of chapters. Other than the order there's no indication to know which Part the chapter is from. |
![]() |
![]() |
#379 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@nixsee yes there is, hover your mouse over the chapter name.
|
![]() |
![]() |
#380 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Ah, great! I didn't realize that was there. Thanks very much for all the hard work and openness to feedback from the peanut gallery!
|
![]() |
![]() |
#381 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
I found a bug - highlights aren't always being attributed to the correct chapter. It seems to have to do with the viewer thinking that as soon as the next chapter's title is within view that you are in that chapter. I assume this only applies to Flow Mode, and even then only applies to certain books (as most books seem to only flow until the end of a chapter, whereas this one doesn't do that - I assume there is something off with the chapter tags, but don't know how to (or even want to) fix this for every book that might have this problem.
Here are highlights when the next chapter is not in view. And when you scroll down so that it is in view (note Chpater 12 being bolded in the TOC). Even stranger: when I add a new highlight above the previous ones, it registers in chapter 12 because the viewer thinks I'm in that chapter now. Last edited by nixsee; 09-12-2020 at 06:06 PM. |
![]() |
![]() |
#382 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Other changes: it
|
|
![]() |
![]() |
#383 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
Traceback (most recent call last): File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 633, in safe_format File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 598, in evaluate File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 522, in _eval_program File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 319, in program File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 324, in expression_list File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 424, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 422, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 348, in do_node_if File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 424, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 422, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 365, in do_node_func File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 424, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 422, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 400, in do_node_raw_field File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 392, in do_node_raw_field File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 311, in error ValueError: Interpreter: Unknown field #pages Error evaluating column named: #pages1777625035779470211 And for a test column, using the templates: Code:
{:'raw_field('#pages')'} Code:
program: raw_field('#words') Code:
Traceback (most recent call last): File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 633, in safe_format File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 598, in evaluate File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 522, in _eval_program File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 319, in program File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 324, in expression_list File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 424, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 422, in expr File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 400, in do_node_raw_field File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 392, in do_node_raw_field File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 311, in error ValueError: Interpreter: Unknown field #pages Error evaluating column named: #story_length |
|
![]() |
![]() |
#384 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released version 4.99.16 with the following changes:
- Reduced indentation in tree views - The highlights panel in the content server viewer now also groups by chapter and shows color swatches - Fix momentum scrolling not working in the cover grid - Workaround for Firefox bug that broke searching backwards across file boundaries - More accurate detection of current toc section when creating highlights - Improvements to the template parser as detailed by chaley |
![]() |
![]() |
#385 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Neither fail for me using an integer column. Would you be willing to send me your metadata.db so I can debug this? If so, send it to calibre at charleshaley dot org. EDIT: never mind. I installed the newest version of the calibre binary and it fails for me too. Don't know why yet. Last edited by chaley; 09-13-2020 at 09:10 AM. |
|
![]() |
![]() |
#386 | |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
|
Quote:
Another small thing would be that when you open the search page on the Content Server, the search field should be selected automatically. Is it possible? Last edited by jony08; 09-13-2020 at 09:05 AM. |
|
![]() |
![]() |
#387 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
#388 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
|
The annotations are not synchronized with the main view from the server and vice versa. Am I doing something wrong? I tried clicking on the Sync button in the controls.
Last edited by jony08; 09-13-2020 at 09:23 AM. |
![]() |
![]() |
#389 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
It failed as well. The traceback was common enough that I decided to be lazy. And was to lazy to mention that
![]() Quote:
But, it looks like it fails if there isn't a value in the column. This was with a test library and there were a lot of books without either the word or page counts. When I set them for a book, the value in the template column was displayed correctly for the book. |
|
![]() |
![]() |
#390 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you are willing, try using this code: Code:
def do_node_raw_field(self, prog): try: name = self.expr(prog.expression) res = getattr(self.parent_book, name, None) if res is not None: if isinstance(res, list): fm = self.parent_book.metadata_for_field(name) if fm is None: return ', '.join(res) return fm['is_multiple']['list_to_ui'].join(res) return unicode_type(res) except ValueError as e: raise e except: self.error(_('Unknown field {0}').format('parse error')) EDIT: Kovid accepted the change. It is in source now. Last edited by chaley; 09-13-2020 at 10:01 AM. |
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beta testers needed | kovidgoyal | Calibre | 75 | 08-18-2019 07:00 PM |
Beta testers for calibre 3.0 needed | kovidgoyal | Calibre | 598 | 07-09-2017 10:26 PM |
Beta testers needed | kovidgoyal | Calibre | 54 | 05-20-2016 12:34 PM |
Windows beta testers needed | kovidgoyal | Calibre | 19 | 02-08-2016 04:38 PM |
Beta testers for calibre 2.0 needed | kovidgoyal | Calibre | 142 | 05-08-2015 04:44 AM |