Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2018, 01:11 AM   #1
pleiadesc
Connoisseur
pleiadesc began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Nov 2016
Device: none
How do you move back an exported book in calibre?

Hello,

Sometimes when I read exported books from calibre, I add annotations to the books (highlights and notes), I would like this annotated book to replace the book in calibre. what is the most efficient way to do this? Thanks

Thank you!
pleiadesc is offline   Reply With Quote
Old 06-01-2018, 01:20 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,705
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If you drag-drop the amended ebook-file (EPUB, PDF, MOBI, whatever) into the relevant Book Details panel (right sidebar) it will replace the existing file.

But, I'm not sure that all e-reader devices/programs embed annotations etc within the ebook-file itself, I believe some create separate files, commonly known as sidecar, companion, or buddy files. So, what format and what device/program do you use?

BR

Last edited by BetterRed; 06-01-2018 at 01:23 AM.
BetterRed is offline   Reply With Quote
Advert
Old 06-01-2018, 02:05 AM   #3
pleiadesc
Connoisseur
pleiadesc began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Nov 2016
Device: none
Thank you BetterRed, I did not know that trick, nothing fancy, I'm reading books on PCs in PDF format, the annotations are saved in the PDF, what do you do if there are sidecar files?

Also, I think I found a bug, when you press Shift Key, the label would change from copy to move but then the drag+dropped book is not moved in calibre, it just copy it. where can i report this?
pleiadesc is offline   Reply With Quote
Old 06-01-2018, 03:31 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,705
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by pleiadesc View Post
Thank you BetterRed, I did not know that trick, nothing fancy, I'm reading books on PCs in PDF format, the annotations are saved in the PDF, what do you do if there are sidecar files?
I've never used a PDF reader that didn't embed its annotations/highlights in the PDF, and the only PDF reader I know of that does that is Skim, which runs on MacOS, see Annotating PDFs in OS X w/o modifying the file

Quote:
Originally Posted by pleiadesc View Post
Also, I think I found a bug, when you press Shift Key, the label would change from copy to move but then the drag+dropped book is not moved in calibre, it just copy it. where can i report this?
That's not a bug, it's a feature

If you add a file to an existing book via the Add Books drop down option Add file to selected book record it does not and never has deleted the file. Drag-drop of a file into Book Details is the same operation.

Added: If you're reading/annotating the PDFs on the same desktop where the library is kept, why are you exporting the PDF files, why not read and annotate the PDFs in the library?

BR

Last edited by BetterRed; 06-01-2018 at 03:58 AM.
BetterRed is offline   Reply With Quote
Old 06-01-2018, 04:41 AM   #5
pleiadesc
Connoisseur
pleiadesc began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Nov 2016
Device: none
Thanks BetterRed,

I save the annotations inside the PDF, its easier to move the PDFs around.

I was hoping its a bug since its showing the word move.

I also read in a laptop computer and sometimes using library computers
pleiadesc is offline   Reply With Quote
Advert
Old 06-01-2018, 05:23 AM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,899
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by pleiadesc View Post
Thanks BetterRed,

I save the annotations inside the PDF, its easier to move the PDFs around.

I was hoping its a bug since its showing the word move.
The bug would be in showing a move operation. I can't imagine that calibre will change a long-standing policy of copying not moving (aka deleting) the files that are imported.
pdurrant is offline   Reply With Quote
Old 06-01-2018, 05:51 AM   #7
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,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC That menu comes from the OS, calibre will always copy, never move on drag and drop, regardless of what the menu shows.
kovidgoyal is offline   Reply With Quote
Old 06-01-2018, 05:55 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,016
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Copy vs Move has been an OS thing (at least) since Windows 3.x

(I never used W1 or W2. I used MSDOS 2,3,4,5 and 6)
theducks is offline   Reply With Quote
Old 06-01-2018, 07:25 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,705
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by pleiadesc View Post
I also read in a laptop computer and sometimes using library computers
Got it, hoped it must be something like that

But I'm at a loss to figure out where the word "Move" appears in a regular left button down drag and drop from a file browser into calibre's Book Details panel.

This is what a I see when I do it in Windows:

Click image for larger version

Name:	1.jpg
Views:	144
Size:	18.8 KB
ID:	164240

BR

Last edited by BetterRed; 06-01-2018 at 07:28 PM.
BetterRed is offline   Reply With Quote
Old 06-01-2018, 11:00 PM   #10
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 BetterRed View Post
Got it, hoped it must be something like that

But I'm at a loss to figure out where the word "Move" appears in a regular left button down drag and drop from a file browser into calibre's Book Details panel.

This is what a I see when I do it in Windows:
It is not at that point that pleiadesc was talking about. When you drag something in Windows, holding down the shift, ctrl or alt keys change the action. To show this, the cursor changes and any tooltip can also change. The action taken, and exactly what cursor is used, depends on the source and destination for the drag-n-drop application. For the move and link combinations of keys, calibre should strictly either show the cursor for not allowing the drop, or always show the copy icon. But, it is letting Windows show the default cursors and actions, but only ever doing a copy.
davidfor is offline   Reply With Quote
Old 06-01-2018, 11:13 PM   #11
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,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont like the idea of disallowing drops based on the proposed action. For one thing, drop events can have more than one proposed action. For another, it is confusing/unexpected.

As for changing the icons/menus/cursors, I dont think Qt has an API to do that.
kovidgoyal is offline   Reply With Quote
Old 06-02-2018, 12:47 AM   #12
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
It's ages since I did this sort of thing, so I'm a bit rusty on it. And I was using the low-level Windows and OS/2 APIs with C and C++. Or with libraries that were just wrappers for these.

I'm a bit surprised that Qt doesn't have a way to set the cursor, but, I don't think this is needed. Setting the drop action to copy on the drag enter and drag move options seems to be all that is needed. As an experiment, in gui2/book_details.py, I changed the following:
Code:
    def dragEnterEvent(self, event):
        md = event.mimeData()
        if dnd_has_extension(md, image_extensions() + BOOK_EXTENSIONS, allow_all_extensions=True) or \
                dnd_has_image(md):
#             event.acceptProposedAction()
            event.setDropAction(Qt.CopyAction)
            event.accept()
Code:
    def dragMoveEvent(self, event):
#         event.acceptProposedAction()
        event.setDropAction(Qt.CopyAction)
        event.accept()
With that, when I drag a book from explorer over the details pane for a book, the copy icon and message is shown all the time. A very quick look at the other places that have these two methods, the same change should work.

And I disagree with you about disallowing the drops. The application should be telling the user what it can do. Changing the cursor to indicate the action tells me what the application can do and maybe that I don't want to drop something on it. And this discussion was started because someone was confused because calibre had the move cursor when it actually did a copy.
davidfor is offline   Reply With Quote
Old 06-02-2018, 01:50 AM   #13
pleiadesc
Connoisseur
pleiadesc began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Nov 2016
Device: none
Thanks everyone for the input, I'm fine with copying.

@BetterRed
Its very easy, simply drag a book file into the Book Details pane, you will see a "+Copy" label, when you see this, press the shift key and the label would change to "->Move", btw I'm using windows PCs, not sure about the other OS if they will show the same.
pleiadesc is offline   Reply With Quote
Old 06-02-2018, 02:00 AM   #14
pleiadesc
Connoisseur
pleiadesc began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Nov 2016
Device: none
Quote:
Originally Posted by davidfor View Post

Code:
    def dragMoveEvent(self, event):
#         event.acceptProposedAction()
        event.setDropAction(Qt.CopyAction)
        event.accept()
Hi davidfor,

Just a question here, can we change event.setDropAction(Qt.CopyAction) into
something like event.setDropAction(Qt.MOVEAction) so it will move the book file? will that work?
pleiadesc is offline   Reply With Quote
Old 06-02-2018, 02:35 AM   #15
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 pleiadesc View Post
Hi davidfor,

Just a question here, can we change event.setDropAction(Qt.CopyAction) into
something like event.setDropAction(Qt.MOVEAction) so it will move the book file? will that work?
That would be a lot more work. When the actual drop happens, the action is coded to always do the copy action (really an "Add to calibre"). This is a design decision and doing it as a move would be a change in basic behaviour. I know Kovid would be against this. And while I can understand people wanting the source file to be removed, I tend to agree with Kovid on this.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move a book from ADE into Calibre? Razzie Calibre 7 02-15-2020 11:50 PM
Move book into Calibre dustyp Library Management 13 12-21-2014 11:02 AM
How do I move a book from Kindle for Windows 8 to Calibre? BjornHasseler Library Management 9 06-26-2013 10:01 PM
Move Kobo book from app to Calibre Kaptur Android Devices 0 12-19-2011 01:17 PM
Calibre can't import html exported by Acrobat? greenapple Calibre 0 02-11-2010 12:37 AM


All times are GMT -4. The time now is 12:43 PM.


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