Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2014, 06:39 PM   #751
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
Quote:
Originally Posted by Hoods7070 View Post
You can. The answer is because my workflow is to insert the book title and author into a jacket. Books come with varying FN/LNs. So before I add a jacket, the author name is put into FN/LN if necessary. After the jacket has been added, I revert the author name to LN/FN - the order I prefer on my HDD.

At the moment, because I am replacing hundreds of lost tags/comments, my database, as represented in the Calibre booklist columns, has predominantly LN/FN. Although the jacket data are still IN my books, they have vanished from my book list. This means I am having to replace them in the booklist. To ensure uniformity, I am also replacing the jackets. I did ask the question in a separate thread and it seemed there was no way to automate this process. Any suggestions would be gratefully received.
OK, conventionally the Authors field would be FN LN, meaning the Author Sorts field would be LN,FN

Can't you just use whichever of these fields presents the data in the correct format for whatever task you're attempting.
DMee is offline   Reply With Quote
Old 09-03-2014, 07:59 PM   #752
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Again, why not just change Line 19 of the template.xhtml from

Code:
<td class="cbj_author" colspan="2">{author}</td>
to
Code:
<td class="cbj_author" colspan="2">{author_sort}</td>
It seems as though you are only switching to LN, FN in order to replace that chunk right there.

Last edited by eschwartz; 09-03-2014 at 08:07 PM.
eschwartz is offline   Reply With Quote
Advert
Old 09-05-2014, 03:38 AM   #753
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Quote:
Originally Posted by eschwartz View Post
Again, why not just change Line 19 of the template.xhtml from

Code:
<td class="cbj_author" colspan="2">{author}</td>
to
Code:
<td class="cbj_author" colspan="2">{author_sort}</td>
It seems as though you are only switching to LN, FN in order to replace that chunk right there.
Thanks @eschwartz and @DMee.

I am obviously being dense here, so bear with me. I fiddle with templates etc. without any in depth knowledge of html.

To reiterate, what I want is:

Desired booklist sort: LASTNAME, comma, FIRSTNAME
Desired jacket view in epub itself: author FN space LASTNAME

For any sorting of the author FN/LN order to be remotely meaningful, the entire selection of books HAS to be uniform to start with - i.e. all FN/LN, or vice versa. Otherwise you are simply reversing their order. Hence my first using the plugin to select individual books within the selected book range that are showing as LN/FN to change them to FN/LN. After inserting the jacket, I use the plugin to revert the entire selection of books to LN/FN.

The whole point here really is that there is no standard for metadata as yet, and books come with varying order of FN/LN, and my entire database is inconsistent at the moment.

With or without "sort" added in the template, the jacket created by Modify epub defaults to whatever is in the booklist view.

My tiny brain says for any sort to do anything in any database it needs to recognize delimiters of some sort. Therefore, within the Calibre column/field the comma between author FN/LN becomes a secondary delimiter.

FWIW, at my end, inserting _sort into line 19 of the original Calibre template removes the author field from the jacket entirely in the jacket ....

I hope any of this makes sense. I am utterly confused!!

Last edited by Hoods7070; 09-05-2014 at 04:08 AM.
Hoods7070 is offline   Reply With Quote
Old 09-05-2014, 04:50 AM   #754
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
OK, what's confusing everyone I think is why you are swapping the FN LN back again.

What you need to do is decide how you want every Author to show (usually FN LN), when doing this make sure that Author_Sort is correctly redone to LN, FN

Then you use whichever field you need to produce the correct output

Quality Check Plugin
- Check Metadata -> authors with commas
- Fix -> FN LN <--> LN, FN

That should get every author correct

Then select any book, CTRL-A to select all books
Edit Metadata on Toolbar
Tick Automatically set Author Sort at top

Then everything should be correct and you're good to go
DMee is offline   Reply With Quote
Old 09-05-2014, 11:47 AM   #755
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Ahah! I thought you were doing it the other way around...

You can use a custom column called #author_fn_ln which evaluates to the template:
Code:
program:

swap_around_comma(field('author'))
eschwartz is offline   Reply With Quote
Advert
Old 09-05-2014, 06:49 PM   #756
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Quote:
Originally Posted by DMee View Post
OK, what's confusing everyone I think is why you are swapping the FN LN back again.

What you need to do is decide how you want every Author to show (usually FN LN), when doing this make sure that Author_Sort is correctly redone to LN, FN

Then you use whichever field you need to produce the correct output

Quality Check Plugin
- Check Metadata -> authors with commas
- Fix -> FN LN <--> LN, FN

That should get every author correct

Then select any book, CTRL-A to select all books
Edit Metadata on Toolbar
Tick Automatically set Author Sort at top

Then everything should be correct and you're good to go
Thanks for some good suggestions. The comma checker is one I had missed.

As for "why" I do ANYTHING I do - I am beyond anal about anything on my computers. When I've exhausted my own minute brain resources I reluctantly ask for help. So thanks for all yours.
Hoods7070 is offline   Reply With Quote
Old 09-05-2014, 06:57 PM   #757
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Quote:
Originally Posted by eschwartz View Post
Ahah! I thought you were doing it the other way around...

You can use a custom column called #author_fn_ln which evaluates to the template:
Code:
program:

swap_around_comma(field('author'))
Now this sounds very useful! Can you walk me through the choices on the custom column screen please? I've never done something like this and it's not immediately obvious to me what to choose or where to add your line of code. TIA. I am beginning to feel irrationally optimistic!
Hoods7070 is offline   Reply With Quote
Old 09-05-2014, 07:10 PM   #758
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Just insert your lookup name and human-readable name, then select type "column built from other columns". Copy-paste my code into the template box.

You can edit a custom column's template by trying to edit any ebook's cell in the library view. Instead of editing the field it will pop up the template editor.
eschwartz is offline   Reply With Quote
Old 09-06-2014, 07:23 PM   #759
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Thanks for that, although I must still be missing something. However, don't worry about it further.

While this discussion has been going on I have gradually edited FN/LN my entire library the "hard" (ie slow plugin) way so from now on I will only be dealing with one or two books periodically as I buy new ones so speed issues won't BE issues.

To conclude the thread: there is no question that there is some major issue with this module of GUI PI Quality Check, albeit only for me. Every single other fix/check in that same plugin works exactly as and as fast as I'd expect it to. Swap FN/LN continues to be ridiculous to the point of stalling my entire system - i.e. can't multitask whatsoever when it's running, not even run my browser - and throwing up errors if I choose too many books (more than 20 or so) in a list selected using (say) check series gaps. It **sounds** like a RAM issue, but it can't be when everything else which is used for doing tasks just as complex in terms of database processing, including multitasking with 3-4 big programs inc Calibre running, works just fine. Anyway, I am clearly flogging a dead horse at this point so I will call it a day. One or two books at a time? I can live with it.

Thanks to everyone for suggestions and input. Much appreciated!
Hoods7070 is offline   Reply With Quote
Old 09-06-2014, 07:33 PM   #760
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: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Hoods7070 View Post
Thanks for that, although I must still be missing something. However, don't worry about it further.

While this discussion has been going on I have gradually edited FN/LN my entire library the "hard" (ie slow plugin) way so from now on I will only be dealing with one or two books periodically as I buy new ones so speed issues won't BE issues.

To conclude the thread: there is no question that there is some major issue with this module of GUI PI Quality Check, albeit only for me. Every single other fix/check in that same plugin works exactly as and as fast as I'd expect it to. Swap FN/LN continues to be ridiculous to the point of stalling my entire system - i.e. can't multitask whatsoever when it's running, not even run my browser - and throwing up errors if I choose too many books (more than 20 or so) in a list selected using (say) check series gaps. It **sounds** like a RAM issue, but it can't be when everything else which is used for doing tasks just as complex in terms of database processing, including multitasking with 3-4 big programs inc Calibre running, works just fine. Anyway, I am clearly flogging a dead horse at this point so I will call it a day. One or two books at a time? I can live with it.

Thanks to everyone for suggestions and input. Much appreciated!
Renaming an Author is disk intensive.
The library files titles in the Authors folder
Flip the name and a New folder is created:
Each Book is moved and the DB updated.
Repeats until completed
finally the old (now empty) folder is discarded
theducks is offline   Reply With Quote
Old 09-06-2014, 08:14 PM   #761
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@theducks

But - I used QC to swap FN and LN on my 7000+ book media library (612GB, repeat 612GB) - it took a few seconds. That was on an NTFS compressed, indexed, AV active, 2TB, SATA 2, drive, on a 6GB i5.

The same library takes about 2.5 hours to backup to an external USB 3.0 drive (which is faster than the internal SATA2 - same disks, 2TB WD Caviar Black).

Why the difference - the renaming, moving & deleting is done within the NTFS Master File Table (MFT), which is preallocated (and usually contiguous) space, and it operates like a database, in that 'records' don't have to be written to sector boundaries.

BR
BetterRed is offline   Reply With Quote
Old 09-06-2014, 09:08 PM   #762
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: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BetterRed View Post
@theducks

But - I used QC to swap FN and LN on my 7000+ book media library (612GB, repeat 612GB) - it took a few seconds. That was on an NTFS compressed, indexed, AV active, 2TB, SATA 2, drive, on a 6GB i5.

The same library takes about 2.5 hours to backup to an external USB 3.0 drive (which is faster than the internal SATA2 - same disks, 2TB WD Caviar Black).

Why the difference - the renaming, moving & deleting is done within the NTFS Master File Table (MFT), which is preallocated (and usually contiguous) space, and it operates like a database, in that 'records' don't have to be written to sector boundaries.

BR
You have top-o-the-line equipment

My drive is SATA2 but my MB is only SATA(1) Most renames still only take seconds.

My backup Sata WD Green 1T (in a USB/SATA case) has dead folder issues that W7 or Linux does not seem to be able to repair
theducks is offline   Reply With Quote
Old 09-06-2014, 11:52 PM   #763
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Or put more simply -- you are using a filesystem format which supports hardlinking which allows the files to be moved without rewriting the entire file to disk and then deleting the old copy.
eschwartz is offline   Reply With Quote
Old 09-06-2014, 11:54 PM   #764
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Hoods7070 View Post
Thanks for that, although I must still be missing something. However, don't worry about it further.
What did you try doing, and which part are you getting stuck on?
eschwartz is offline   Reply With Quote
Old 09-07-2014, 05:37 AM   #765
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
Quote:
Originally Posted by Hoods7070 View Post
To conclude the thread: there is no question that there is some major issue with this module of GUI PI Quality Check, albeit only for me. Every single other fix/check in that same plugin works exactly as and as fast as I'd expect it to. Swap FN/LN continues to be ridiculous to the point of stalling my entire system - i.e. can't multitask whatsoever when it's running, not even run my browser - and throwing up errors if I choose too many books (more than 20 or so) in a list selected using (say) check series gaps. It **sounds** like a RAM issue, but it can't be when everything else which is used for doing tasks just as complex in terms of database processing, including multitasking with 3-4 big programs inc Calibre running, works just fine. Anyway, I am clearly flogging a dead horse at this point so I will call it a day. One or two books at a time? I can live with it.
What errors does selecting a lot of books produce?

Just a thought - you're not storing your books in DropBox are you? (or similar)

Last edited by DoctorOhh; 09-07-2014 at 05:41 AM. Reason: Fixed ] missing from opening quote
DMee is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Search the Internet kiwidude Plugins 433 04-01-2024 05:48 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 12:02 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 01:49 PM.


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