Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-13-2020, 09:41 AM   #391
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by jony08 View Post
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.
You need to tell the viewer which server user to sync with in the miscellaneous section of the viewer preferences.
kovidgoyal is offline  
Old 09-13-2020, 09:55 AM   #392
jony08
Connoisseur
jony08 began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
You need to tell the viewer which server user to sync with in the miscellaneous section of the viewer preferences.
I understand. Can the local calibre user be the default if no user has been set even if another user logged in to the server? Could the setting be a dropdown menu? I think it would make it less confusing for other users as well.

Last edited by jony08; 09-13-2020 at 09:57 AM.
jony08 is offline  
Advert
Old 09-13-2020, 10:04 AM   #393
jony08
Connoisseur
jony08 began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
Quote:
Originally Posted by jony08 View Post
Bug 2: If you select an image, the image will be blue.
The images still turn blue when selected, can this be fixed?
jony08 is offline  
Old 09-13-2020, 10:08 AM   #394
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by jony08 View Post
The images still turn blue when selected, can this be fixed?
That's how browsers behave.
kovidgoyal is offline  
Old 09-13-2020, 10:15 AM   #395
jony08
Connoisseur
jony08 began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
That's how browsers behave.
OK, I understand.

Is it possible that you could add the option to delete/export all annotations from the selected book in the Browse annotations window?

And add the option to delete all annotations from a chapter in the Browse annotations panel.

Last edited by jony08; 09-13-2020 at 10:26 AM.
jony08 is offline  
Advert
Old 09-13-2020, 10:21 AM   #396
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaley View Post
Found it, I think. The inlined raw_field didn't handle None-valued fields properly.

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'))
It goes in utils.formatter.py, replacing the existing method starting at line 387.

EDIT: Kovid accepted the change. It is in source now.
I updated the source, and it no longer gives an error. But, with the column template as just "{:'raw_field('#pages')'}", I get the word "None". I was expecting an empty string, but, I don't remember what it was before.
davidfor is offline  
Old 09-13-2020, 10:24 AM   #397
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
I updated the source, and it no longer gives an error. But, with the column template as just "{:'raw_field('#pages')'}", I get the word "None". I was expecting an empty string, but, I don't remember what it was before.
That is what it did before. I have considered changing it but that could break a lot of stuff.
chaley is offline  
Old 09-13-2020, 01:06 PM   #398
jony08
Connoisseur
jony08 began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
I do not know if I fully understand the complexity of annotations, but if there is no way to do this: please add an option to the User accounts on the Content server to always see annotations taken by the local user. I thinks that it would also be useful to be able to share annotations between different users. Maybe it is too much work to implement to see other users' annotations at the same time, can it instead be possible to copy/move annotations to other users?

I tested and found that the annotations are always saved for the local user and that you can choose to save the annotations to another user as well, can this be extended to save for more users or all users? Is it possible to only show an annotation once in the Annotation browser list when the same annotation is also saved to another user?

Last edited by jony08; 09-13-2020 at 04:07 PM.
jony08 is offline  
Old 09-13-2020, 01:08 PM   #399
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
When I start reading a (good) book, I tend to do a lot of highlighting, which I then aim to make more concise when I go back and re-read/grapple with the book. Perhaps this is a foolish process (and I'm open to any suggestions of better methods), but it is what I do.

As such, sometimes I have highlights that are back-to-back. Right now, they appear as one large highlight. So, it would be great if there were some sort of markers to demarcate them. My suggestion is to make use of the existing "Annotation White Dot" to signify the start and/or end of a highlight, and a colored dot to signify the start/end of an annotation. An example is in the attachment below, where it would otherwise be impossible to know whether it is 1, 2, or 8 separate highlights.

Click image for larger version

Name:	start end highlight.png
Views:	195
Size:	159.1 KB
ID:	181924

On second thought, it would be better with just a single trailing dot - as it is currently implemented for the white annotation dot.

An alternative would be to remove the margin/padding for the highlights so that there are no blank spaces between lines. But this is likely to be messy with indents and line endings, so I prefer the dots.

Click image for larger version

Name:	highlight no padding.png
Views:	158
Size:	158.9 KB
ID:	181931

Last edited by nixsee; 09-13-2020 at 01:58 PM.
nixsee is offline  
Old 09-13-2020, 03:10 PM   #400
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
Another request/suggestion: could there be some settings to change the font that is used in the annotation pop-up? I'd like a smaller font size and no monospacing. For that matter, I'd like to be able to increase the font size in the secondary Edit Notes window as well.

Last edited by nixsee; 09-13-2020 at 03:48 PM.
nixsee is offline  
Old 09-13-2020, 03:16 PM   #401
jony08
Connoisseur
jony08 began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jun 2016
Device: Kobo Aura
Bug 1: Making a new highlight that overlap an existing highlight will remove the existing highlight.

Bug 2: When removing a highlight by selecting it and clicking remove in the selection bar, the handles will be kept at the same place where the highlight was but the only the last part of the the text between the handles will be selected.
jony08 is offline  
Old 09-13-2020, 10:14 PM   #402
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by jony08 View Post
Bug 1: Making a new highlight that overlap an existing highlight will remove the existing highlight.
Not a bug. You cant have overlapping highlights.

Quote:
Bug 2: When removing a highlight by selecting it and clicking remove in the selection bar, the handles will be kept at the same place where the highlight was but the only the last part of the the text between the handles will be selected.
Will be fixed.
kovidgoyal is offline  
Old 09-13-2020, 10:17 PM   #403
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@nixsee: There is no monospaced font and no you are not going to get a config option to control the font size of individual UI elements, ever. There are limits to how much configurability I am willing to implement.

As for not knowing where one highlight starts and another begins, use different colors. Adding margin/dots whatever is both expensive and looks ugly, as it change the size of the text, thereby causing reflow.

@jony08: Annotations cannot be copied between different users, except by export and import. I am not going to implement automatic copying that's insanely confusing.
kovidgoyal is offline  
Old 09-14-2020, 05:22 AM   #404
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
I updated the source, and it no longer gives an error. But, with the column template as just "{:'raw_field('#pages')'}", I get the word "None". I was expecting an empty string, but, I don't remember what it was before.
New version of the formatter pushed. This one fixes an incompatibility between the infix compare operators and the cmp function. Cmp turns undefined into zero then compares, where the infix ops used to turn any compare involving undefined into False.

Thanks much for helping find the corner cases!
chaley is offline  
Old 09-14-2020, 08:56 AM   #405
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
Quote:
@nixsee: There is no monospaced font and no you are not going to get a config option to control the font size of individual UI elements, ever. There are limits to how much configurability I am willing to implement.
That's fine regarding no font size configuration, but it definitely looks like monospaced font to me, and a web-based Font Identifier tool concurs... See picture below:

Click image for larger version

Name:	Untitled.png
Views:	191
Size:	58.5 KB
ID:	181947

And here is how it looks for me with the secondary Edit Notes window - the font is not monospaced and is a considerably smaller size.

Click image for larger version

Name:	Edit Notes.png
Views:	183
Size:	10.0 KB
ID:	181948

At the very least, could the font style be consistent between the two, and the size perhaps somehow tied to your general viewer settings?


Quote:
As for not knowing where one highlight starts and another begins, use different colors. Adding margin/dots whatever is both expensive and looks ugly, as it change the size of the text, thereby causing reflow
Using different colors for adjacent highlights is not a solution at all, because colors/styles have meaning in my system. If dots are too ugly (which I don't find to be the case whatsoever - they're quite an elegant solution that you came up with for this problem) or too expensive, why did you implement them to begin with for annotations?

I agree, changing the margins would indeed be uglier. But it wouldn't be expensive. It was simply an alternative.

So, given that dots are already implemented for annotations (which I'm grateful for), I don't see any reason not to implement a different-colored dot for non-annotated highlights.

Last edited by nixsee; 09-14-2020 at 09:11 AM.
nixsee is offline  
Closed Thread


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:41 AM.


MobileRead.com is a privately owned, operated and funded community.