09-07-2014, 07:40 AM | #766 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
@eschwartz - all I got when I tried following what you said was an extra column which shows the code you gave me against every book. Not sure WHAT it's suppose to do and I do realise I am just being dense. My headspace is pretty poor at the moment ...
@DMee - it's a long rambling one I can't duplicate at will. What does happen consistently is that an error box tells me it can't do anything because the files are open in another process - this being when I am working on a bunch of files already selected with Check Series. When I return to Calibre it has usually processed a decent percentage of the books despite complaining. Seriously guys, I don't want anyone to waste any more of their time on this as tidying up my library was a once-off procedure I hope never to have to do again. Backups, maintenance etc. will be diligently done!! If OTOH you are interested at an academic level, I'm happy to keep the thread going. |
09-07-2014, 02:47 PM | #767 |
Ex-Helpdesk Junkie
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)
|
guilty as charged academics.
What happens when you doubleclick a book cell in the custom column? Do you get the template editor? If so, try repasting in everything in the box. Note: often, people new to templates do not realize that "program:" is itself part of the template. It is what triggers general program mode, which allows arbitrary combination of functions. If I had to guess, this is what tripped you up. I have mistakenly failed to introduce the concept in multiple threads this week. In other words, the template is NOT: Code:
swap_around_comma(field("author")) Code:
program: swap_around_comma(field("author")) Last edited by eschwartz; 09-07-2014 at 02:52 PM. |
Advert | |
|
09-07-2014, 03:11 PM | #768 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Remember that if you are using calibre 2.2, you can also add the "Template tester" to either a menu or the right-click on book menu, and enter and test templates out that way.
|
09-08-2014, 07:12 AM | #769 | |
Zealot
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
|
Quote:
Usual suspects - over zealous antivirus prog - disable it whilst doing intensive Calibre stuff another is Dropbox - if you store book files in Dropbox - eg. to use Calibre2OPDS to access your files whilst out and about - then Dropbox will keep trying to resave the files as Calibre updates them and the two don't play happily together - again - disable / exit whilst using Calibre Or... might be something else Whats running on your system? |
|
09-08-2014, 03:58 PM | #770 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
Everything on my entire system slows down - i.e. forget trying to use a browser or whatever while the plugin is beavering away. Dropbox is "on" in a ready state in the system tray, but not running. To ascertain everything was vanilla as far as I can, I turned off my AV entirely and closed Dropbox. It made no difference. |
|
Advert | |
|
09-08-2014, 04:08 PM | #771 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
Got me stumped, I tell ya! When @Red talks about processing about 7000 books in a few seconds I can only shake my head. Running @eschwartz's column code took just under a minute for 4500 books. Using FN/LN takes about the same length of time to process 20 books. The column code interferes with the plugin - it (the plugin) returns the "other process running" error as mentioned elsewhere. Last edited by Hoods7070; 09-08-2014 at 04:12 PM. |
|
09-08-2014, 04:53 PM | #772 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Hoods7070 - longshots
Did you run a chkdsk on the library drive - with the fix option? Did you try Windows in Safe Mode? How many calibre_parallel processes are running when the swap is running. BR |
09-08-2014, 05:06 PM | #773 | |
Ex-Helpdesk Junkie
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:
I take it that means you got it working? It was just missing the "program:"? What do you mean when you say the column interferes with the plugin? |
|
09-08-2014, 05:09 PM | #774 | ||
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
Quote:
So, now I have two columns, and have hidden the custom column. Your script redoes all 4500 books in seconds as the plugin **used** to work!! Aside: With the plugin, maybe it is a hard disk thing. Higher up, Ducks and Red (I think it was) were talking about drives, copying to another drive etc. I'm not sure what speed my HDD runs at, but the system info tells me it's an ATA (!!!!). However, I copied the library to a USB3 portable (Seagate, 1.75TB) in under an hour, which was fine - just walk away. I haven't had any issues with the disk speed using other things that are notoriously disk-intensive. Unfortunately this successful column template is only half a victory. Whilst it admirably deals with the name-swap speed issue, however, the two means of inserting a jacket with FN/LN - either GUI PI Modify epub or Polish - insert the default Author column LN/FN data even if the original author column is hidden. An obvious work around for that is for me to use the custom column by default, sorted to LN/FN (my preference for everything OTHER than the jacket) and hide the default column, set to FN/LN. Alternatively: I again tried adding _sort to author in the template, but with that addendum/suffix whatever you call it the jacket loses the author line entirely as it did before when I tested it. Any thoughts? Because going via the jacket template really does seem the obvious and easy was to do things, doesn't it? (As originally suggested.) Other purely academic questions for you to sink your teeth into: 1) If I were to use the custom column when choosing books for "jacketing", is there any way to limit the column script to run for just a **selection** of books rather than switching names for all the books? Not that it matters with the quickness. It *IS* all academic unless that =true. 2) Is there a way to get the jacket modifying PIs to return data from the CUSTOM column rather than the default column? What fun. Later I will pick brains about why my own modified template looks glorious in the book viewer but my e-reader/s don't like it. It sucks not fully understanding all that stuff. . Last edited by Hoods7070; 09-08-2014 at 05:15 PM. |
||
09-08-2014, 06:11 PM | #775 |
Ex-Helpdesk Junkie
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)
|
The book jacket can use custom columns, using an underscore instead of the hash symbol that usually prepends it. You cannot use functions or tests of any sort, which is why we use them in a custom column and then use the custom column in the jacket.
That is, given custom column "#some_column", the jacket template expects to see "_some_column". (template.xhtml should have some comments describing this.) You MUST edit the template.xhtml in order to use different column ids in the metadata jacket. What criteria would you use to determine which books get the default LN, FN in the template? We are using general program mode anyway, we might as well throw in a few frills and acrobatics. Last edited by eschwartz; 09-08-2014 at 06:17 PM. |
09-08-2014, 06:22 PM | #776 |
Ex-Helpdesk Junkie
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)
|
|
09-09-2014, 11:47 PM | #777 | ||
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
Quote:
HOWEVER, now that I know (roughly) how to add custom columns I might have a little fiddle with some other stuff after some further reading of the code. I do love a good fiddle. I do use basic regex in Sigil but only the most basic and obvious of editing commands. BTW perhaps this screen shot will make what I do more meaningful. As you can see, I tailor covers with my own originals much of the time, but always add series info to them. Very helpful. The inset is of the customised jacket as it shows in ebook viewer. Last edited by Hoods7070; 09-09-2014 at 11:57 PM. Reason: Add image |
||
09-10-2014, 12:17 AM | #778 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
09-11-2014, 02:38 AM | #779 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
|
|
09-12-2014, 08:57 PM | #780 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
@ BetterRed: Ta for all your help with the plugin BigRed. It was starting to embarrass me how long it was dragging on. Anyway, I can live with things the way they are now that I have done a marathon (hours) sort of Authors to LN/FN using the plugin. Having Modify Epub applying the FN/LN (column is hidden) sort and metadata in one process is brilliant - wish I'd got that far at the beginning. Anyway, many thanks for that one.
@ everyone else: I have exhausted every possibility/probabilty with running processes etc. etc., safe mode, fixed database blah blah, and whilst I concede it obviously is a problem with MY setup, whatever I do have running by default is essential to my other software. So thanks guys for all assistance offered. |
|
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 |