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 06-13-2019, 01:51 PM   #481
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
I have copied what's in calibre into the csv which means that it should match exactly?

I changed that specific tag around in the csv file and now it recognizes it in Calibre although they are backwards. I thought they were supposed to be sorted in the same order as Calibre does it? Attached is yet another log-file and csv.
Attached Files
File Type: zip Update Metadata.zip (4.1 KB, 155 views)
Tanjamuse is offline   Reply With Quote
Old 06-13-2019, 01:53 PM   #482
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
I will look at it.
DaltonST is offline   Reply With Quote
Advert
Old 06-13-2019, 01:54 PM   #483
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thank you so much for all your patience, help and work.
Tanjamuse is offline   Reply With Quote
Old 06-13-2019, 02:40 PM   #484
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Tanjamuse:

Try the attached zip. I ensured that any sorting is done like Calibre, which is to say it ignores case.

Test it using the original "d'Artagnan Romances, Three Musketeers (Books)" and then again with it swapped. Both should work.


DaltonST

Last edited by DaltonST; 06-13-2019 at 03:15 PM.
DaltonST is offline   Reply With Quote
Old 06-13-2019, 02:50 PM   #485
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
It now works with the original "d'Artagnan Romances, Three Musketeers (Books)", but doesn't work with the swapped version.

Do I still need to have no-space after the comma, because I have space between Hobbit, Homecoming of Beorhtnoth Beorhthelm’s Son as you can see in the csv-file and it still recognizes it in Calibre.
Tanjamuse is offline   Reply With Quote
Advert
Old 06-13-2019, 03:02 PM   #486
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
[1] Good. I will publish that version, which works the way Calibre works now.

[2] It works because I added code to auto-correct user errors. If you look at the debug log, it prints that it was wrong but fixed it anyway.



DaltonST
DaltonST is offline   Reply With Quote
Old 06-13-2019, 03:04 PM   #487
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thank you, then I don't have to double-check every combination I make.
Tanjamuse is offline   Reply With Quote
Old 06-13-2019, 03:14 PM   #488
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Version 1.0.159 Import CSV to Update Metadata: technical changes

Version 1.0.159 - 2019-06-13 Import CSV to Update Metadata technical changes.

If you downloaded the last beta test version, you must update this one manually since it will not appear to Calibre that it is new.


DaltonST
DaltonST is offline   Reply With Quote
Old 06-20-2019, 06:28 AM   #489
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
I don't know if it's because you changed the python coding but I just discovered another little thing. When " are a part of the tag it doesn't change it.

I've attached a Rules test csv and the debug-log
Attached Files
File Type: zip Rules test.zip (2.4 KB, 146 views)
Tanjamuse is offline   Reply With Quote
Old 06-20-2019, 10:12 AM   #490
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Double-quotes are what define a text column in the JS CSV file. If you look at the CSV in a simple text editor, you will see what I mean. DQs can cause parsing errors. I will look at it, but you should avoid DQs; change them to Single Quotes. If you use double quotes in Tags in Calibre, you should search & replace them to single quotes if you want to match them via a CSV upload.

An attachment shows the ToolTips from the Scrub Tags sub-menu within the JS menus. The .xlsx/.ods files have all of the details for the tool and each of its rule table CSV formats.



DaltonST
Attached Thumbnails
Click image for larger version

Name:	2019-06-20 09_03_08-.jpg
Views:	171
Size:	140.9 KB
ID:	171994   Click image for larger version

Name:	2019-06-20 09_07_15-Window.jpg
Views:	159
Size:	766.5 KB
ID:	171996  

Last edited by DaltonST; 06-20-2019 at 12:29 PM.
DaltonST is offline   Reply With Quote
Old 06-20-2019, 01:01 PM   #491
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Test Version for Double-Quotes in Scrub Tags CSV "Tag" Columns

Tanjamuse:

Is this what you wanted to see in the JS Tag Scrubbing Audit Log for table Tag Rules? Test the attached .zip and let me know.

Code:
JS Tag Scrubbing Audit Log

Choose Rules to Execute  (Sequence is Important):  Tag Rules  
  
Tag/Tag-Like Column Available to be chosen:   Scrub: All Tags & Tag-Like Custom Columns   
Tag/Tag-Like Column Available to be chosen:   Scrub: Tags   
Tag/Tag-Like Column Available to be chosen:   Scrub: #genre   
Tag/Tag-Like Column Available to be chosen:   Scrub: #lcead   
  
Choose Tag/Tag-Like Column:   Scrub: Tags  
  
.......................................................................................  
Applying ruleset:   Tag Rules    for: tags
Target Tables to be scrubbed:   tags   books_tags_link
Tag/Tag-Like Tags Found:   1107   for table: tags
  
Tag Purge Rules Being Applied to:   tags   books_tags_link
Scrub Tags: Purged:   0   for: tags  
  
Tag Change Rules Being Applied to:   tags   books_tags_link
  
Amidala69's "Turn and Face the Strange" Universe -->Harry Potter       new tag added to: tags
  
 Harry Potter   Inserted newtag to replace oldtag for book: 891 old: Amidala69's "Turn and Face the Strange" Universe  new: Harry Potter
Amidala69's "Turn and Face the Strange" Universe  Deleted oldtag for book: 891 old: Amidala69's "Turn and Face the Strange" Universe
Scrub Tags: Changes completed for:  tags   books_tags_link
..............................................................................................................................................................................

Last edited by DaltonST; 06-21-2019 at 09:34 AM. Reason: Version 1.0.160 Released
DaltonST is offline   Reply With Quote
Old 06-21-2019, 06:51 AM   #492
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Sorry it took me so long to test, but yeah, that's exactly what I wanted.
Tanjamuse is offline   Reply With Quote
Old 06-21-2019, 09:32 AM   #493
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Version 1.0.160 Various Enhancements & Changes

Version 1.0.160 - 2019-06-21 Tag Scrubbing: Tag values (only) in CSV upload files with double-quotes now supported; Customize Tag Browser Icons: @User-Category sub-categories will be ignored; Python 3 performance improvements.



DaltonST
DaltonST is offline   Reply With Quote
Old 07-01-2019, 02:23 PM   #494
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,275
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Hey there!

Was wondering if you could add a feature that could create a copy/paste file with selected column names in the format needed to add to tweaks or other areas where the need for column names in the format of u'#column_name',

The user can select the characters to add before and after the column names.

Makes it easier to fill in plugins, tweaks, and custom columns.
Rellwood is offline   Reply With Quote
Old 07-01-2019, 10:00 PM   #495
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Tweaks > Plugins: Implicitly Unicode

Quote:
Originally Posted by Rellwood View Post
Was wondering if you could add a feature that could create a copy/paste file with selected column names in the format needed to add to tweaks or other areas where the need for column names in the format of u'#column_name',.
You never need to put the Python 2 Unicode prefix u in front of a plugin's tweak. You should not even see that. Users should never be expected to deal with such a thing.

Apparently the recent changes to Calibre for Python 3 have caused some corruption of what a user sees in Preferences > Tweaks > Plugins. Never before did the u exist.

This is what my Calibre 3.44 Plugins > Tweak for "Library Specific Auto-Add Directories" now looks like:


Code:
job_spy_auto_add_directory  = {u'CalibreJobSpyTest5': u'x:/auto_add_dir5', u'CalibreJobSpyTest4':  u'x:/auto_add_dir4', u'CalibreJobSpyTest1': u'x:/auto_add_dir1',  u'CalibreJobSpyTest3': u'x:/auto_add_dir3', u'CalibreJobSpyTest2':  u'x:/auto_add_dir2'}
It used to never have the u's. The values were previously implicitly Unicode. For some reason they are now being shown by Calibre as explicitly Unicode. That is fine; they still work. However, users need specify only a simple '#column_name' without the leading explicit Unicode u prefix, then click "Save".



DaltonST
DaltonST is offline   Reply With Quote
Reply

Tags
author aka, author pen name, colors, toolbag, toolbox, tools


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Ex Libris AlPe Plugins 87 10-10-2020 03:10 PM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) DurgaPrasad Calibre 0 10-16-2013 06:50 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 08:00 AM.


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